diff --git a/api_gmaps.js b/api_gmaps.js
index 2ca65f7..3d42bd0 100755
--- a/api_gmaps.js
+++ b/api_gmaps.js
@@ -33,7 +33,7 @@ function init() {
strokeWeight: 2
}
mapOptions = {
- center: new google.maps.LatLng(geoip_latitude(),geoip_longitude()),
+ center: new google.maps.LatLng(init_latitude,init_longitude),
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP,
scaleControl: true
diff --git a/api_openlayers.js b/api_openlayers.js
index 7795a5b..1dc0882 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(init_longitude,init_latitude).transform(wgs84, mercator);
+ var zoom = 8;
map.setCenter(position, zoom);
// init layers
layerTrack = new OpenLayers.Layer.Vector('Track');
diff --git a/config.php b/config.php
index b623cca..534dd3b 100755
--- a/config.php
+++ b/config.php
@@ -34,6 +34,10 @@ $layer_osmapa = 1;
// UMP (0 = no, 1 = yes)
$layer_ump = 1;
+// default coordinates for initial map
+$init_latitude = 52.23;
+$init_longitude = 21.01;
+
// you may set your google maps api key
// this is not obligatory by now
//$gkey = "";
diff --git a/index.php b/index.php
index f64a792..71ba1d2 100755
--- a/index.php
+++ b/index.php
@@ -137,10 +137,10 @@ print
var layer_mq = "'.$layer_mq.'";
var layer_osmapa = "'.$layer_osmapa.'";
var layer_ump = "'.$layer_ump.'";
+ var init_latitude = "'.$init_latitude.'";
+ var init_longitude = "'.$init_longitude.'";
-
-
-
+
';
if ($mapapi == "gmaps") {
print