How to keep the Google place after coming back from another page?
I am using google autocomplete textbox and a map to show the place entered
in the textbox. following code will work on button click to show map.
function SetStreet() {
$('#map-canvas').fadeIn('slow', function() {
google.maps.event.trigger(map, 'resize');
if (checkPlace == "placeselected") {
map.setCenter(place.geometry.location);
map.setZoom(15);
marker.setPosition(place.geometry.location);
marker.setVisible(true);
}
});
}
When i navigate to another page and comes back, currently map not showing
the place.Is there any way to keep the
place.geometry.locationand to show the place in map again with out
triggering google maps textbox.
No comments:
Post a Comment