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

replacePolylines polygon equivilant? #286

Closed madhermit closed 10 years ago

madhermit commented 11 years ago

Hello!

I apologize if this has been addressed somewhere else. From the documentation I have found you can use Gmaps.replacePolylines to dynamically (ajax) update a set of polylines, but is there an equivalent for dynamically updating/replacing polygons? If not, is there a technical reason for this? replacePolylines almost fits the bill, but I’d like to use fillColor which is only available for polygons.

Thanks!

apneadiving commented 11 years ago

I didn't code it because I didn't need it...

Feel free to push code!