summaryrefslogtreecommitdiff
path: root/api_openlayers.js
diff options
context:
space:
mode:
authorcos <cos>2018-05-16 13:59:40 +0000
committercos <cos>2018-05-16 14:02:38 +0000
commit6563cce41ffcec1adcd489877d7189dc4275664a (patch)
tree377b47bae5b9290f9e7cc61caabeedfd06f62403 /api_openlayers.js
parent6eedc501b773fc42b2def0fa66304ddee70e35b1 (diff)
downloadRunnerUpLive-6563cce41ffcec1adcd489877d7189dc4275664a.zip
Remove non-functional geoipfix/remove_geoip
As stated on https://dev.maxmind.com/geoip/legacy/javascript/ "Note: On October 31, 2017, we discontinued our legacy GeoIP JavaScript services, which used the endpoints http://js.maxmind.com/js/country.js and http://js.maxmind.com/js/geoip.js." How to migrate to using GeoIP2 is documented at link above, yet it is not fully trivial.
Diffstat (limited to 'api_openlayers.js')
-rwxr-xr-xapi_openlayers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/api_openlayers.js b/api_openlayers.js
index 3fa08fe..2383582 100755
--- a/api_openlayers.js
+++ b/api_openlayers.js
@@ -74,8 +74,8 @@ function init() {
'http://3.tiles.ump.waw.pl/ump_tiles/${z}/${x}/${y}.png']);
map.addLayer(ump);
}
- var position = new OpenLayers.LonLat(geoip_longitude(),geoip_latitude()).transform(wgs84, mercator);
- var zoom = 6;
+ var position = new OpenLayers.LonLat(0, 0, mercator);
+ var zoom = 1;
map.setCenter(position, zoom);
// init layers
layerTrack = new OpenLayers.Layer.Vector('Track');