egeloen / IvoryGoogleMapBundle

Google Map API v3 integration for your Symfony2 project.
https://github.com/egeloen/ivory-google-map
MIT License
217 stars 152 forks source link

get the map_53efd in javascript #49

Closed dupuchba closed 11 years ago

dupuchba commented 11 years ago

Hello all,

I need to change the setCenter option if the user click on a certain element. Do any of you know how to get the map as it has a name that change on every reload?

Thx folks!

Baptiste

dupuchba commented 11 years ago

For any of you who are interested, you can acces the map object in js by doing {{map.javascriptVariable}}.setZoom() for example which is a little tricky but it works!