Closed steveo7 closed 11 years ago
I'll do some refactoring as soon as I can. Thanks for considering this pull request!
Okay Ben, I removed the two unnecessary edits and made marker with label conditional with a :marker_with_label marker option. Let me know if you think it needs more work. Chao!
Sorry guys I've completely changed the gem in v2.
Your code isnt lost though, you'll see you can inject your own builders to adapt to what you really need
Thanks
Added support for the
markerWIthLabel
library from Google Maps Utility Library V3. See this link for a reference. http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1.8/docs/reference.htmlexample: http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1.8/examples/basic.html
I added access to
labelContent
andlabelClass
marker properties to set from controller code like so;In your view, turn on by adding
:marker_with_label
to your marker options then you can add other markerWithLabel properties using the raw option like so;