MediaWiki:Wikiminiatlas.js: Difference between revisions

currently only google maps is supported
No edit summary
(currently only google maps is supported)
Line 210: Line 210:
  },
  },
   
   
  // jump straight to the preferred map-service  
  // fill in the map-service templates
  qlURL : function( lat, lon, zoom )
  qlURL : function( lat, lon, zoom )
  {
  {
   var url = wikiminiatlas.config.quicklinkurl;
   var url = wikiminiatlas.config.quicklinkurl;
   url = url.replace( /\{latdegdec\}/g, lat );
   url = url.replace( /\{latdegdec\}/g, lat );
   url = url.replace( /\{londegdec\}/g, lon );
   url = url.replace( /\{londegdec\}/g, lon );
   url = url.replace( /\{span\}/g, Math.pow( 2.0, zoom) / 1500.0 );
 
  var span = Math.pow( 2.0, zoom) / 150.0;
   url = url.replace( /\{span\}/g, span.toFixed(4) );
 
   return url;
   return url;
  },
  },
Anonymous user