2009年4月2日 星期四

How to use ym4r drag and move marker in google map

Esa's Google Maps API examples
Integrating Google Maps into Your Web Applications
google map api
[Ym4r-user] marker event listeners
A port of the YM4R-GM plugin for rails

If we want to drag or move a marker, we should set the global variable for marker when we create a marker or this marker would be anonymous one


application.js


這樣會生出這樣的script


下面就是如果沒有@map.overlay_global_init(@gmarker, "gmarker"), 沒有給marker 指定變數的結果

沒有留言: