apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Rich marker seems to be undefined #329

Closed andrea-ale-sbarra closed 11 years ago

andrea-ale-sbarra commented 11 years ago

In model I define this method (as specified in doc) def gmaps4rails_marker_picture {"rich_marker" => "

It works!
"} end

But in the page i got this error: Uncaught ReferenceError: RichMarker is not defined

Can't figure it out

andrea-ale-sbarra commented 11 years ago

just figured out what I was missing.. Thanks anyway!

MatayoshiMariano commented 11 years ago

What was that? I have the same error.

Thanks!

andrea-ale-sbarra commented 11 years ago

I was using a helper for this and i figured it out with this configuration:

gmaps markers: { data: objects.to_gmaps4rails, options: {rich_marker: true} }, map_options: options

hope this helps!

MatayoshiMariano commented 11 years ago

I was missing the richmarker option. Thanks El 30/09/2013 03:57, "andrea" notifications@github.com escribió:

I was using a helper for this and i figured it out with this configuration:

gmaps markers: { data: objects.to_gmaps4rails, options: {rich_marker: true} }, map_options: options

hope this helps!

— Reply to this email directly or view it on GitHubhttps://github.com/apneadiving/Google-Maps-for-Rails/issues/329#issuecomment-25340764 .

kjakah08 commented 9 years ago

Hello, I have the same issue. Where in the docs does it outline the RichMarker option?

kjakah08 commented 9 years ago

It turned out I did not load the Javascript:

from: https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Change-handler-behavior

amitojha01 commented 1 year ago

I have the same issue