summaryrefslogtreecommitdiff
path: root/map3.js
diff options
context:
space:
mode:
Diffstat (limited to 'map3.js')
-rw-r--r--map3.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/map3.js b/map3.js
index f07829f..5eea77b 100644
--- a/map3.js
+++ b/map3.js
@@ -91,12 +91,10 @@ function onAddOverlay(overlay) {
}
}
-function onMapClick(overlay, point)
+function onMapClick(mouse_event)
{
- if(!overlay) {
- map.setCenter(point);
- setNewMarker(point);
- }
+ map.setCenter(mouse_event.latlng);
+ setNewMarker(mouse_event.latlng);
}
//##//function onData(data, responseCode) {