how to show different map on one button click

Posted by Shanky11 under ASP.NET on 6/3/2013 | Points: 10 | Views : 973 | Status : [Member] | Replies : 1
i am working on a project . 4 that i have created a page on that page i need that whenever i click on diff. link the map should come for different place.
see the below link .i just want like this


Posted by: Allemahesh on: 6/13/2013 [Member] [MVP] Silver | Points: 25

You can do this by below process.

1. When you click on link, you need to write a javascript function and pass the lat and long to that function as a parameter.
2. On this function, you can clear the map by calling initialize() method.
3. You can use the below function to draw the maker my passing the mylatlng.

function createMaker(myLatLng)
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: 'Hello World!'

Link for marker is :

Hope this will help you.

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response