You can destroy the map on your own with three steps:

Eliminate all references to the map but one.
Call delete(map); where map is the last reference to your map.
Remove the children from the parent element.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:
[email protected]

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On Aug 10, 2011, at 12:17 AM, Chris Broadfoot wrote:

> Unfortunately, there is no functionality to do this in the Maps API. Could 
> you please tell us a bit more about your use case?
> 
> The closest thing to what you want is achieved by deleting the DOM element 
> used as the container.
> 
> Chris
> 
> --
> http://twitter.com/broady
> 
> 
> 
> On Sun, Aug 7, 2011 at 9:53 PM, Saint Byte <[email protected]> wrote:
> I have web application with google maps api v3/ i make map like:
> 
> var myOptions = {
>                        zoom: 5,
>                       center: new google.maps.LatLng(60.397,59.644),
>                        mapTypeId: google.maps.MapTypeId.HYBRID
>                        };
> var map = new google.maps.Map($('photoimg'), myOptions);
> 
> And for ofter task i need back div ( $('photoimg') ) . How destroy
> map ?
> 
> --
> 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.
> 
> 
> 
> -- 
> 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.

-- 
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.

Reply via email to