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

Json buildier, why no "marker.position [0,0]" function? #367

Closed Thermatix closed 11 years ago

Thermatix commented 11 years ago

I've tried doing "position = [0,-400]" but it just makes all the map markers vanish, why can't i just do marker.position to do any marker position offset?

or is there way to deal with marker offset due to custom map marker graphics within the json builder that i'm not aware of?

I'm trying to do all that I need within the controller, this is one of the things that is bugging me.

apneadiving commented 11 years ago

Don't waste your time with the gmaps4rails block then. You can create the json the way you want, just respect the keys.