> delete map; > inside the click function that closes the modal doesnt seem to work.
What were you expecting it to do? Destroying the javascript object won't necessarily un-render the map from screen. Shouldn't matter if you are hiding its div anyway. > Even if i dont incude "var" while declaring map to make it global. That on its own may not make it global, if you do not 'var' it in global scope <script ... > var map ; // not inside of any function at all. function blah () { map = whatever( some parms) ; // give the existing map object some values } That would ensure 'map' is global in scope. -- 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...@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.