apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 383 forks source link

a better way to integrate with cartography stylesheets #237

Closed holden closed 12 years ago

holden commented 12 years ago

Found something like this... maybe there's a better way?

http://stackoverflow.com/questions/11356128/gmaps4rails-integration-with-stamen-maps

http://maps.stamen.com/#toner/2/21.0/-259.1

holden commented 12 years ago

got it to work, but i'm sure there's got to be a better way to do it than this:

  @js << "#{gmap_id}.initialize();"
  @js << "#{gmap_id}.createStamenMap();"  #new

https://github.com/holden/Google-Maps-for-Rails/blob/master/lib/gmaps4rails/js_builder.rb

apneadiving commented 12 years ago

I think I should add some callback after map initialization

holden commented 12 years ago

That would be perfect! Thanks.