# YM4R/GM-Plugin: Events on Markers

**URL:** <https://www.ruby-forum.com/t/ym4r-gm-plugin-events-on-markers/107226>\
**Category:** Rails\
**Created:** [June 19, 2007, 12:01pm UTC](https://www.ruby-forum.com/t/ym4r-gm-plugin-events-on-markers/107226 "2007-06-19T12:01:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier\_CH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Post date:** [June 19, 2007, 12:01pm UTC](https://www.ruby-forum.com/t/ym4r-gm-plugin-events-on-markers/107226/1 "2007-06-19T12:01:07Z")

</div>

I don’t like ('cause I don’t know) Javascript, that’s why I’m trying  
to figure out how to implement the whole GoogleMaps-part of my  
application using Ruby/Rails.

I’ve a problem registering events on markers:

[http://pastie.textmate.org/71697](http://pastie.textmate.org/71697)

The event-listener works for map-events if i use ‘@map’ instead of  
‘@my\_marker’ on line 15.

The big picture:  
I’d like to read latitude and longitude as soon as the user drags the  
marker to a location on the map.

Saludos  
Javier
