jquery - clone google map instance -
i have map on page displays several places markers , infowindows. i'd put fullscreen button , load map jquery-ui dialog, i've got problems.
is there way copy google map instance i've created in 1 div, other div?
or other workaround, changing div associated map... science-fiction??
i don't think google maps support such manipulation.
although seems moving map quite simple. map has method getdiv returns node containing map. using jquery can manipulate dom:
var mapnode = that.map.getdiv(); $('#destinationdiv').append(mapnode); it moves map div destinationdiv. tested in chrome , firefox , worked well, i'm not sure if works (if map's functionality isn't broken) in main browsers.
but wasn't successful in copying map. utilizing jquery's clone method produces broken copy of map. if need copy it, guess way might create new map , create objects scratch.
Comments
Post a Comment