Merge pull request #224 from Fragger/more-portal-link-fixes

More updates to url links to be compatible with stock intel map
This commit is contained in:
Jon Atkins
2013-05-01 07:46:32 -07:00
5 changed files with 19 additions and 8 deletions

View File

@ -407,6 +407,11 @@ function boot() {
window.setupBackButton();
// read here ONCE, so the URL is only evaluated one time after the
// necessary data has been loaded.
urlPortalLL = getURLParam('pll');
if(urlPortalLL) {
urlPortalLL = urlPortalLL.split(",");
urlPortalLL = [parseFloat(urlPortalLL[0]) || 0.0, parseFloat(urlPortalLL[1]) || 0.0];
}
urlPortal = getURLParam('pguid');
// load only once