Esa's Google Maps API experiments. |
|
Adding markers like in MyMapsClick a marker above map and move mouse on map. follow() function is triggered. Marker is created by 'mousemove' GEvent on map. Turning flag 'mousemove' returns GLatLng() point of cursor which moves the marker by .setLatLng() method. Moving is stopped by 'click' GEvent on map. Flag Marker is draggable and it is deleted by dragging off the map. The script is at the bottom of the source code.
|
|
|
|