I was hoping for some clarification on when and where you can call certain methods.
@hash = Gmaps4rails.build_markers(@events) do |event, marker|
(Do all of the builders work here?)I'm sure I'll have more, as I keep using it... but these should get me moving nicely.
update
new question...
In 2.0.4 you can do handler.removeMarkers(array)
and handler.removeMarker(marker)
only useful if you create your own builder, you can access the same method thanks to the primitives, or write it with plain google maps commands: do you really need to abstract on your level?
@hash = Gmaps4rails.build_markers(@events) do |event, marker|
(Do all of the builders work here?)It's just a convenient way to create json. If you need custom json, build it with your own json builder.
This is an abstraction in the gem: as an injected dependency it lets me test easily. You can use it, but its not required.