Hi, I'm new to Google maps. My Objective is to display Branch of
'Deutsche Bank' in specific land mark. Followinf code I wrote I'm not
getting multiple results.
<script type="text/javascript">
var map;
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById
("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
function mapSetCenter() {
var selected = "Deutsche Bank," + document.getElementById
('landMark').options[document.getElementById
('landMark').selectedIndex].text;
var latLong = document.getElementById('landMark').options
[document.getElementById('landMark').selectedIndex].value.toString
().split(",");
//map.setCenter(new GLatLng(latLong[0], latLong[1]), 13);
var geocoder = new GClientGeocoder();
geocoder.getLocations(selected, showAddress());
}
function showAddress(response) {
if (!response || response.Status.code != 200) {
alert("Status Code:" + response.Status.code);
} else {
place = response.Placemark[0];
point = new GLatLng(place.Point.coordinates[1],
place.Point.coordinates[0]);
map.openInfoWindowHtml(point,
'<div>Thank you, I am back !! :-)' +
'<strong>----</strong>' +
place.address +
'</div>');
}
}
</script>
Please let me where I'm making mistake.
Regards,
Liju
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-api?hl=en.