Click here to Skip to main content
12,629,493 members (36,311 online)
   

C#

 
GeneralRe: Google Earth Plugin throwing Javascript Error to WPF Window Pin
Richard MacCutchan25-Jan-13 2:41
mvpRichard MacCutchan25-Jan-13 2:41 
Questionimplementing skype plugin on windows 8 Pin
omotayo adebola24-Jan-13 14:37
memberomotayo adebola24-Jan-13 14:37 
AnswerRe: implementing skype plugin on windows 8 Pin
Pete O'Hanlon25-Jan-13 1:08
protectorPete O'Hanlon25-Jan-13 1:08 
QuestionC# timeout Pin
dcof24-Jan-13 13:10
memberdcof24-Jan-13 13:10 
AnswerRe: C# timeout Pin
Mycroft Holmes24-Jan-13 15:01
memberMycroft Holmes24-Jan-13 15:01 
AnswerRe: C# timeout Pin
V.25-Jan-13 2:27
memberV.25-Jan-13 2:27 
AnswerRe: C# timeout Pin
jschell25-Jan-13 10:25
memberjschell25-Jan-13 10:25 
QuestionSkip current line in file Pin
vanikanc24-Jan-13 11:11
membervanikanc24-Jan-13 11:11 
AnswerRe: Skip current line in file Pin
mark merrens24-Jan-13 11:15
membermark merrens24-Jan-13 11:15 
AnswerRe: Skip current line in file Pin
jibesh24-Jan-13 11:29
memberjibesh24-Jan-13 11:29 
GeneralRe: Skip current line in file Pin
vanikanc24-Jan-13 11:51
membervanikanc24-Jan-13 11:51 
GeneralRe: Skip current line in file Pin
jibesh24-Jan-13 11:52
memberjibesh24-Jan-13 11:52 
AnswerRe: Skip current line in file Pin
PIEBALDconsult24-Jan-13 12:02
memberPIEBALDconsult24-Jan-13 12:02 
QuestionMultiple marker Pin
KORCARI24-Jan-13 10:48
memberKORCARI24-Jan-13 10: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 Pin
Pete O'Hanlon24-Jan-13 12:24
protectorPete O'Hanlon24-Jan-13 12:24 
QuestionSaveFileDialog and OverwritePrompt Pin
GenJerDan24-Jan-13 6:13
memberGenJerDan24-Jan-13 6:13 
AnswerRe: SaveFileDialog and OverwritePrompt Pin
jibesh24-Jan-13 10:07
memberjibesh24-Jan-13 10:07 
GeneralRe: SaveFileDialog and OverwritePrompt Pin
GenJerDan24-Jan-13 10:29
memberGenJerDan24-Jan-13 10:29 
GeneralRe: SaveFileDialog and OverwritePrompt Pin
jibesh24-Jan-13 10:32
memberjibesh24-Jan-13 10:32 
GeneralRe: SaveFileDialog and OverwritePrompt Pin
GenJerDan24-Jan-13 10:35
memberGenJerDan24-Jan-13 10:35 
GeneralRe: SaveFileDialog and OverwritePrompt Pin
jibesh24-Jan-13 10:59
memberjibesh24-Jan-13 10:59 
GeneralRe: SaveFileDialog and OverwritePrompt Pin
GenJerDan24-Jan-13 11:01
memberGenJerDan24-Jan-13 11:01 
GeneralRe: SaveFileDialog and OverwritePrompt Pin
jibesh24-Jan-13 11:11
memberjibesh24-Jan-13 11:11 
GeneralRe: SaveFileDialog and OverwritePrompt Pin
GenJerDan24-Jan-13 11:18
memberGenJerDan24-Jan-13 11:18 
GeneralRe: SaveFileDialog and OverwritePrompt Pin
jibesh24-Jan-13 11:23
memberjibesh24-Jan-13 11:23 
GeneralRe: SaveFileDialog and OverwritePrompt Pin
GenJerDan24-Jan-13 12:18
memberGenJerDan24-Jan-13 12:18 
GeneralRe: SaveFileDialog and OverwritePrompt Pin
Alan N24-Jan-13 10:39
memberAlan N24-Jan-13 10:39 
AnswerRe: SaveFileDialog and OverwritePrompt Pin
BobJanova24-Jan-13 23:22
memberBobJanova24-Jan-13 23:22 
GeneralRe: SaveFileDialog and OverwritePrompt Pin
GenJerDan25-Jan-13 4:13
memberGenJerDan25-Jan-13 4:13 
AnswerRe: SaveFileDialog and OverwritePrompt Pin
micke.andersson28-Jan-13 3:44
membermicke.andersson28-Jan-13 3:44 
GeneralRe: SaveFileDialog and OverwritePrompt Pin
GenJerDan28-Jan-13 4:10
memberGenJerDan28-Jan-13 4:10 
QuestionThread with Message Pump Pin
Richard Andrew x6424-Jan-13 2:56
memberRichard Andrew x6424-Jan-13 2:56 
AnswerRe: Thread with Message Pump Pin
Eddy Vluggen24-Jan-13 3:49
mvpEddy Vluggen24-Jan-13 3:49 
AnswerRe: Thread with Message Pump Pin
Paulo Zemek24-Jan-13 4:49
memberPaulo Zemek24-Jan-13 4:49 
AnswerRe: Thread with Message Pump Pin
BobJanova24-Jan-13 5:22
memberBobJanova24-Jan-13 5:22 
QuestionEnding session and back button after logout Pin
raviwebwonders24-Jan-13 1:24
groupraviwebwonders24-Jan-13 1:24 
AnswerRe: Ending session and back button after logout Pin
Simon_Whale24-Jan-13 1:36
memberSimon_Whale24-Jan-13 1:36 
GeneralRe: Ending session and back button after logout Pin
sahavasiwebwonders24-Jan-13 1:41
groupsahavasiwebwonders24-Jan-13 1:41 
AnswerRe: Ending session and back button after logout Pin
BobJanova24-Jan-13 2:28
memberBobJanova24-Jan-13 2:28 
GeneralRe: Ending session and back button after logout Pin
sahavasiwebwonders24-Jan-13 19:59
groupsahavasiwebwonders24-Jan-13 19:59 
QuestionTally Integration Pin
Atul Ankush Bhabal23-Jan-13 23:38
memberAtul Ankush Bhabal23-Jan-13 23:38 
AnswerRe: Tally Integration Pin
Pete O'Hanlon23-Jan-13 23:43
protectorPete O'Hanlon23-Jan-13 23:43 
QuestionHow check if a record exists before running the code to delete the record? Pin
Member 964160223-Jan-13 23:37
memberMember 964160223-Jan-13 23:37 
AnswerRe: How check if a record exists before running the code to delete the record? Pin
d@nish 23-Jan-13 23:57
member d@nish 23-Jan-13 23:57 
AnswerRe: How check if a record exists before running the code to delete the record? Pin
Richard MacCutchan24-Jan-13 0:01
mvpRichard MacCutchan24-Jan-13 0:01 
AnswerRe: How check if a record exists before running the code to delete the record? Pin
Eddy Vluggen24-Jan-13 1:43
mvpEddy Vluggen24-Jan-13 1:43 
AnswerRe: How check if a record exists before running the code to delete the record? Pin
V.24-Jan-13 2:57
memberV.24-Jan-13 2:57 
AnswerRe: How check if a record exists before running the code to delete the record? Pin
PIEBALDconsult24-Jan-13 5:40
memberPIEBALDconsult24-Jan-13 5:40 
AnswerRe: How check if a record exists before running the code to delete the record? Pin
pt140125-Jan-13 10:15
memberpt140125-Jan-13 10:15 
Questionneed the project code in c# Pin
Member 978198223-Jan-13 22:58
memberMember 978198223-Jan-13 22:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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
Web01 | 2.8.161205.3 | Last Updated 7 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid