I've stumbled and tripped to wrap my heads around javascript and the google maps api v3 and have been successful but the solution to this problem has completely eluded me.
I've designed an application that displays water quality parameter data. One way I'm displaying this data is through a geographic trend map which is were the api comes into play. The number of parameters on display can vary. For this reason I call a javascript function within a php loop that passes a given parameter and iteration index to the javascript function which creates the map and calls a php script to get the information necessary to plot markers on the map. The map is rendering but I'm running into problems resizing the map b/c of the known issue with using display none. The show/hide functionally is desired to save page real estate due to the large number of parameters that are available for display. The link below only uses 3 parameters but there are many many more. Based on this method, my map variable is overwritten each time the function is called. I would use a global map variable but I have no idea how many different maps there will be because it varies depending on what the end user wants to see. With that said, how am I to reference the map that I need to apply the map resizing fix? i.e.: google.maps.event.trigger(map, 'resize'); map.setZoom( map.getZoom() ); http://bccmws.coastal.edu/enteroview/report_test.php -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.