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

can't access container from javascript #179

Closed olivier-rey closed 8 years ago

olivier-rey commented 8 years ago

Hi, I try to access the map container in order to add filters on markers. i configured the map variable: $map->setVariable('my_map'); but when i try to access it : map = my_map_container; i get a ReferenceError: my_map_container is not defined

Any idea how to solve this ?

Thanks in advance, Olivier

olivier-rey commented 8 years ago

Solved... I had to wrap it in window.onload function to make it work.