13,055,047 members (61,176 online)
Rate this:
See more:
hi.......

i have drawn some area in a map and giving some name to that area saved in data base.now iam getting that name into dropdownlist and i want to display that drawn area into map when click that name.plz help me..
Posted 27-Feb-12 19:39pm

Rate this:

## Solution 1

Get the longutide and latitude coordinates from your database, and the zoom level. Place those data into their respective positions of the URL.
rajasekhar57 28-Feb-12 6:44am

I think this code for getting the particular area where u want
Rate this:

<title>

Rate this:

## Solution 3

<html xmlns="http://www.w3.org/1999/xhtml">
<title></title>
type="text/javascript"></script>
<body>
<form id="form1" runat="server">
<div id="map" style="width: 500px; height: 400px;"></div>
<script type="text/javascript">
var locations = [['Bondi Beach', -33.890542, 151.274856], ['Coogee Beach', -33.923036, 151.259052], ['Cronulla Beach', -34.028249, 151.157507], ['Manly Beach', -33.800128, 151.282085], ['Maroubra Beach', -33.950198, 151.259302]];
var map = new GMap2(document.getElementById('map'));
var i; map.setCenter(new GLatLng(-33.92, 151.25), 10);
for (i = 0; i < locations.length; i++)
{
var marker = new GMarker(new GLatLng(locations[i][1], locations[i][2]));
{
marker.openInfoWindowHtml("hi");
});
}
</script>
</form>
</body>
</html>

Top Experts
Last 24hrsThis month
 Graeme_Grant 183 OriginalGriff 140 Jochen Arndt 120 Bryian Tan 100 Karthik Bangalore 95
 OriginalGriff 5,731 RickZeeland 2,014 ppolymorphe 1,883 F-ES Sitecore 1,646 Dave Kreskowiak 1,494