Multiple marker
-
Trying to add multiple markers based on coordinates in Google Maps API but it doesn't work. What am I doing wrong? Please help Here is my code :
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
Tirana Public Transport html { height: 100% } body { height: 100%; margin: 0px; padding: 0px } #map\_canvas { height: 100% } var locations = \[ \['St1', 41.338089, 19.821689, 1\] \['St2', 41.339926, 19.825723, 2\] \['St3', 41.339733, 19.829285, 3\] \['St4', 41.3368, 19.831345, 4\] \['St5', 41.333159, 19.833877, 5\] \['St6', 41.330581, 19.833834, 6\] \['St7', 41.329647, 19.83156, 7\] \['St8', 41.32752, 19.827225, 8\] \['St9', 41.325232, 19.824436, 9\] \['St10', 41.336027, 19.817097, 10\] \['St11', 41.337123, 19.810488, 11\] \['St12', 41.334319, 19.80654, 12\] \['St13', 41.32752, 19.827225, 13\] \['St14', 41.331967, 19.804394, 14\] \['St15', 41.32536, 19.803879, 15\] \['St16', 41.322557, 19.805081, 16\] \['St17', 41.322331, 19.806712, 17\] \['St18', 1.323201, 19.812891, 18\] \['St19', 41.323975, 19.817784, 19\] \]; 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.ma</x-turndown>
-
Trying to add multiple markers based on coordinates in Google Maps API but it doesn't work. What am I doing wrong? Please help Here is my code :
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
Tirana Public Transport html { height: 100% } body { height: 100%; margin: 0px; padding: 0px } #map\_canvas { height: 100% } var locations = \[ \['St1', 41.338089, 19.821689, 1\] \['St2', 41.339926, 19.825723, 2\] \['St3', 41.339733, 19.829285, 3\] \['St4', 41.3368, 19.831345, 4\] \['St5', 41.333159, 19.833877, 5\] \['St6', 41.330581, 19.833834, 6\] \['St7', 41.329647, 19.83156, 7\] \['St8', 41.32752, 19.827225, 8\] \['St9', 41.325232, 19.824436, 9\] \['St10', 41.336027, 19.817097, 10\] \['St11', 41.337123, 19.810488, 11\] \['St12', 41.334319, 19.80654, 12\] \['St13', 41.32752, 19.827225, 13\] \['St14', 41.331967, 19.804394, 14\] \['St15', 41.32536, 19.803879, 15\] \['St16', 41.322557, 19.805081, 16\] \['St17', 41.322331, 19.806712, 17\] \['St18', 1.323201, 19.812891, 18\] \['St19', 41.323975, 19.817784, 19\] \]; 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.ma</x-turndown>
I'm looking, and I'm not seeing any C# in there. So, why have you asked this in the C# forum? Why not post it in the web dev forum?
I was brought up to respect my elders. I don't respect many people nowadays.
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier