function pageLoad() {
var markers = JSON.parse('<%=ConvertDataTabletoString() %>');
var mapOptions = {
center: new google.maps.LatLng(markers[0].lat, markers[0].lng),
zoom: 15,
mapTypeId: google.maps.MapTypeId.ROADMAP
// marker:true
};
var infoWindow = new google.maps.InfoWindow();
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
for (i = 0; i < markers.length; i++) {
var data = markers[i]
var myLatlng = new google.maps.LatLng(data.lat, data.lng);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: data.title
});
(function(marker, data) {
// Attaching a click event to the current marker
google.maps.event.addListener(marker, "click", function(e) {
infoWindow.setContent(data.description);
infoWindow.open(map, marker);
});
})(marker, data);
}
}
i'm using this script in page load
when i'm click another button this script is not working
please help me
it's important to me
prathyushaPosted Aug 2, 2013, 6:30 AM
for map button i'm using OnClientClick="return mapinitialize()"
if i remove that on map is not displayed
after removing another div also it's not working
please help me
it's important to me please
Iftikar HussainPosted Aug 2, 2013, 5:58 AM
Regards,
Iftikar
prathyushaPosted Aug 2, 2013, 5:49 AM
Iftikar HussainPosted Aug 2, 2013, 5:43 AM
Regards,
Iftikar
prathyushaPosted Aug 2, 2013, 5:24 AM
it's not working
and in page load how to display the contact details:
please help me
it's important to me
Iftikar HussainPosted Aug 2, 2013, 5:10 AM
Regards,
Iftikar
Iftikar HussainPosted Aug 2, 2013, 5:03 AM
Regards,
Iftikar
prathyushaPosted Aug 2, 2013, 4:52 AM
here i'm attaching rar file.
in this when i click contact button it display only details like
when i click on map button it display map only.and then i again click on contact button but it display map also
please help me
it's important to me
Iftikar HussainPosted Aug 2, 2013, 4:46 AM
On button click what error message you are getting? can you shared the code for button click?
Regards,
Iftikar