So I have a form with just a select field. Depending on what the user selected markers will get rendered through AJAX on the map. The thing is how to initialize the function and create the map.
I just found that people are doing it this way:
google.maps.event.addDomListener(window, 'load', initialize);
So the map is initialized when a full page reload finishes. What I need is to call the initialize function and create the map when an ajax request is done performing. How can one achieve this? :)