summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xapi_gmaps.js4
-rwxr-xr-xapi_openlayers.js4
-rwxr-xr-xindex.php1
3 files changed, 4 insertions, 5 deletions
diff --git a/api_gmaps.js b/api_gmaps.js
index 52dfc61..2b69bd6 100755
--- a/api_gmaps.js
+++ b/api_gmaps.js
@@ -33,8 +33,8 @@ function init() {
strokeWeight: 2
}
mapOptions = {
- center: new google.maps.LatLng(geoip_latitude(),geoip_longitude()),
- zoom: 8,
+ center: new google.maps.LatLng(0, 0),
+ zoom: 1,
mapTypeId: google.maps.MapTypeId.ROADMAP,
scaleControl: true
};
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');
diff --git a/index.php b/index.php
index 62475d7..d6e21d5 100755
--- a/index.php
+++ b/index.php
@@ -144,7 +144,6 @@ print
var layer_ump = "'.$layer_ump.'";
</script>
<script type="text/javascript" src="main.js"></script>
- <script language="javascript" src="http://j.maxmind.com/app/geoip.js"></script>
';
if ($mapapi == "gmaps") {