remove now paid geoip api, initial coordinates in config
This commit is contained in:
parent
ed979e37c7
commit
5b97b46abc
@ -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
|
||||
|
@ -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');
|
||||
|
@ -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 = "";
|
||||
|
@ -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.'";
|
||||
</script>
|
||||
<script type="text/javascript" src="main.js"></script>
|
||||
<script language="javascript" src="http://j.maxmind.com/app/geoip.js"></script>
|
||||
|
||||
<script type="text/javascript" src="main.js"></script>
|
||||
';
|
||||
if ($mapapi == "gmaps") {
|
||||
print
|
||||
|
Loading…
x
Reference in New Issue
Block a user