From 1b31889382cf05c88218446919a18b377b17a96b Mon Sep 17 00:00:00 2001 From: fisharebest Date: Sat, 30 Oct 2010 19:40:24 +0000 Subject: --- modules/googlemap/places_edit.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'modules/googlemap/places_edit.php') diff --git a/modules/googlemap/places_edit.php b/modules/googlemap/places_edit.php index be92f4c1fd..bc35dfa2b6 100644 --- a/modules/googlemap/places_edit.php +++ b/modules/googlemap/places_edit.php @@ -290,10 +290,10 @@ if ($action=="add") { longitude = longitude * -1; document.editplaces.NEW_PLACE_LONG.value = longitude; } - if(document.editplaces.LATI_CONTROL.value == "PL_S") { + if (document.editplaces.LATI_CONTROL.value == "PL_S") { latitude = latitude * -1; } - if(document.editplaces.LONG_CONTROL.value == "PL_W") { + if (document.editplaces.LONG_CONTROL.value == "PL_W") { longitude = longitude * -1; } @@ -336,19 +336,19 @@ if ($action=="add") { Map_type.prototype.refresh = function() { - if(this.map.getCurrentMapType() != G_NORMAL_MAP) + if (this.map.getCurrentMapType() != G_NORMAL_MAP) this.button1.className = 'non_active'; else this.button1.className = 'active'; - if(this.map.getCurrentMapType() != G_SATELLITE_MAP) + if (this.map.getCurrentMapType() != G_SATELLITE_MAP) this.button2.className = 'non_active'; else this.button2.className = 'active'; - if(this.map.getCurrentMapType() != G_HYBRID_MAP) + if (this.map.getCurrentMapType() != G_HYBRID_MAP) this.button3.className = 'non_active'; else this.button3.className = 'active'; - if(this.map.getCurrentMapType() != G_PHYSICAL_MAP) + if (this.map.getCurrentMapType() != G_PHYSICAL_MAP) this.button4.className = 'non_active'; else this.button4.className = 'active'; @@ -478,9 +478,9 @@ if ($action=="add") { GEvent.addListener(map, "moveend", function() { document.editplaces.NEW_ZOOM_FACTOR.value = map.getZoom(); }); - + map.setCenter(new GLatLng( , G_NORMAL_MAP ); - + map.setCenter(new GLatLng( , G_NORMAL_MAP ); @@ -623,7 +623,7 @@ if ($action=="add") { if (!response || response.Status.code != 200) { alert(""); } else { - if(response.Placemark.length>0) { + if (response.Placemark.length>0) { for (i=0;i - value="" /> + value="" /> - value="" /> + value="" /> - value="" /> + value="" /> - value="" /> + value="" /> - value="" /> + value="" /> - $GOOGLEMAP_PRECISION_4) echo "checked=\"checked\""; ?> value="" /> + $GOOGLEMAP_PRECISION_4) echo "checked=\"checked\""; ?> value="" /> -- cgit v1.3