var locations = [
['Bondi Beach', -33.890542, 151.274856, 4],
['Coogee Beach', -33.923036, 151.259052, 5],
['Cronulla Beach', -34.028249, 151.157507, 3],
['Manly Beach', -33.80010128657071, 151.28747820854187, 2],
['Maroubra Beach', -33.950198, 151.259302, 1]
];
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 10,
center: new google.maps.LatLng(-33.92, 151.25),
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var infowindow = new google.maps.InfoWindow();
var marker, i;
for (i = 0; i < locations.length; i++) {
marker = new google.maps.Marker({
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
map: map
});
google.maps.event.addListener(marker, 'click', (function(marker, i) {
return function() {
infowindow.setContent(locations[i][0]);
infowindow.open(map, marker);
}
})(marker, i));
}
Dipankar BiswasPosted Feb 22, 2015, 8:19 AM
Ajay
See Here..
Create a new item As a (.htm)
write ur code There..
Then set yr path..
Try it
if you satisfied for my ans. please accept my ans.
Thanks
Dipankar Biswas
Ajay GuptaPosted Feb 22, 2015, 6:01 AM
Thanks dipankar, i am getting this error only on Windows Server 2008.
i have changed to
but still error is same.
please, how to i run by setting url this code.
Dipankar BiswasPosted Feb 20, 2015, 2:06 PM
Ajay
You can also run it by set url
Thanks
Dipankar Biswas
Dipankar BiswasPosted Feb 20, 2015, 1:44 PM
Select browser Go +to properties
And change it
Scripterroesuppressed true
Thanks
Dipankar Biswas
Ajay GuptaPosted Feb 20, 2015, 1:16 PM
but webbrowser control through script error.
Dipankar BiswasPosted Feb 20, 2015, 8:27 AM
You need a textBox, and write this html in this textBox...
private void Form1_Load(object sender, EventArgs e)
{
webBrowser1.DocumentText = textBox1.Text;
}