Closed fluke closed 10 years ago
view helpers do not exist anymore.
It's only available at the handler level now: https://github.com/apneadiving/Google-Maps-for-Rails/blob/master/vendor/assets/javascripts/gmaps/objects/handler.coffee#L5
Because if you need it only for some markers, I guess your api can arrange it :)
So it's handler.setOptions({ markers: { maxRandomDistance: 10 } });
?
or directly:
handler = Gmaps.build('Google', { markers: { maxRandomDistance: 10 } })
Ah okay. Thanks a lot. You should a disclaimer on the Wiki to indicate it's out of date. Got quite confused.
You checked v1 section, main page tries to make it clear.
Please edit wiki if not.
And clise your issue :)
Sent from my iPhone
On 11 juil. 2014, at 12:26, Kartik Luke Singh notifications@github.com wrote:
Ah okay. Thanks a lot. You should a disclaimer on the Wiki to indicate it's out of date. Got quite confused.
— Reply to this email directly or view it on GitHub.
Looking through the documentation, randomize is set in the view helper
<%= gmaps %>
. How do I set it with the handler.buildMap function? Or maybe I have to set something while using the addMarker function?