Hi there, You need to add an eventHander on the select element: <select id="duration" onChange="updateMarkers()">
and extract the code of the updateMarkers() function from the load() function. It should contain the downloadUrl code and some additional code to clean the previous markers. This means that when you create a marker, you have to keep it in an array somewhere to be able to delete it in a second time. The updateMarkers function will be called in AJAX mode, which means that the html page is not loaded again and the map shouldn't change at all and preserve mapcenter and zoomlevel. Regards, Davide 2010/5/27 Beach Bum <[email protected]> > sorry, i should have mentioned after logging in, click on the link 'My > Fishing Map' to go to the mapping page. > > -- > 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 > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
