Click here to Skip to main content
       

C#

 
AnswerRe: C# timeout Pinmemberjschell25-Jan-13 9:25 
QuestionSkip current line in file Pinmembervanikanc24-Jan-13 10:11 
AnswerRe: Skip current line in file Pinmembermark merrens24-Jan-13 10:15 
AnswerRe: Skip current line in file [modified] Pinmemberjibesh24-Jan-13 10:29 
GeneralRe: Skip current line in file Pinmembervanikanc24-Jan-13 10:51 
GeneralRe: Skip current line in file Pinmemberjibesh24-Jan-13 10:52 
AnswerRe: Skip current line in file PinmemberPIEBALDconsult24-Jan-13 11:02 
QuestionMultiple marker PinmemberKORCARI24-Jan-13 9:48 
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" %>
 
<!DOCTYPE html>
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Tirana Public Transport</title>
    <!DOCTYPE html>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <style type="text/css">    html { height: 100% }    body { height: 100%; margin: 0px; padding: 0px }    #map_canvas { height: 100% }  </style>
    <script src="http://maps.google.com/maps/api/js?sensor=false" 
          type="text/javascript">
         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.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));
                   }
 

                   function initialize() {
                       var latlng = new google.maps.LatLng(41.331645, 19.817441);
                       var myOptions = { zoom: 15, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP, draggable: false, zoomControl: false, scrollwheel: false, disableDoubleClickZoom: true };
                       var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
 

                   }
 

    </script>
   
 </head>
   
<body onload="initialize()">
    <form id="form1" runat="server">
    <div>
              
    </form>
</body>
</html>
 

 

AnswerRe: Multiple marker PinprotectorPete O'Hanlon24-Jan-13 11:24 
QuestionSaveFileDialog and OverwritePrompt PinmemberGenJerDan24-Jan-13 5:13 
AnswerRe: SaveFileDialog and OverwritePrompt Pinmemberjibesh24-Jan-13 9:07 
GeneralRe: SaveFileDialog and OverwritePrompt PinmemberGenJerDan24-Jan-13 9:29 
GeneralRe: SaveFileDialog and OverwritePrompt Pinmemberjibesh24-Jan-13 9:32 
GeneralRe: SaveFileDialog and OverwritePrompt PinmemberGenJerDan24-Jan-13 9:35 
GeneralRe: SaveFileDialog and OverwritePrompt Pinmemberjibesh24-Jan-13 9:59 
GeneralRe: SaveFileDialog and OverwritePrompt PinmemberGenJerDan24-Jan-13 10:01 
GeneralRe: SaveFileDialog and OverwritePrompt Pinmemberjibesh24-Jan-13 10:11 
GeneralRe: SaveFileDialog and OverwritePrompt PinmemberGenJerDan24-Jan-13 10:18 
GeneralRe: SaveFileDialog and OverwritePrompt Pinmemberjibesh24-Jan-13 10:23 
GeneralRe: SaveFileDialog and OverwritePrompt PinmemberGenJerDan24-Jan-13 11:18 
GeneralRe: SaveFileDialog and OverwritePrompt PinmemberAlan N24-Jan-13 9:39 
AnswerRe: SaveFileDialog and OverwritePrompt PinmemberBobJanova24-Jan-13 22:22 
GeneralRe: SaveFileDialog and OverwritePrompt PinmemberGenJerDan25-Jan-13 3:13 
AnswerRe: SaveFileDialog and OverwritePrompt Pinmembermicke.andersson28-Jan-13 2:44 
GeneralRe: SaveFileDialog and OverwritePrompt PinmemberGenJerDan28-Jan-13 3:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 16 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid