Closed jonathanng closed 10 years ago
Yep, came to say that too. How could we fix this ? is it a round problem or an ImageMarker problem ?
This is documented here: https://github.com/apneadiving/Google-Maps-for-Rails/blob/master/vendor/assets/javascripts/gmaps/objects/handler.coffee#L5
Before you change it, be aware of its use: people sometimes provide a vague address, like only zip code or only city. In this case, when several people do that, you end up with overlapping markers. Thats why I randomize them slightly.
to remove this do:
handler = Gmaps.build 'Google', { builders: { Marker: RichMarkerBuilder}, markers: { maxRandomDistance: null } }
Cool. I added changes to the readme.
Great thanks!
I changed to
handler = Gmaps.build 'Google', { markers: { maxRandomDistance: null } }
and it works. With the builders
options set the map was blank (all white).
I find that the marker moves after every refresh. I hard coded the longitude latitude but I'm still getting inconsistent placements.