Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Multiple marker

Multiple marker

Scheduled Pinned Locked Moved C#
csharphtmljsonhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KORCARI
    wrote on last edited by
    #1

    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>
    
    P 1 Reply Last reply
    0
    • K KORCARI

      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>
      
      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups