diff options
author | Christian Pointner <equinox@ffgraz.net> | 2013-12-29 18:11:37 +0000 |
---|---|---|
committer | Christian Pointner <equinox@ffgraz.net> | 2013-12-29 18:11:37 +0000 |
commit | 4981a449a05fc97549f4d1db1585248985fabce6 (patch) | |
tree | 8607cdbfbd5fbc1e3410feac9ecdaa4324782a1b /map3.js | |
parent | a2c2b9a163cb7190aa70ec3c342c5ef4afe2638c (diff) |
fixed new marker now?
Diffstat (limited to 'map3.js')
-rw-r--r-- | map3.js | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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) { |