Google Maps how to add a polyline to this?


i have added google map website. there seems dozens of sample use , after number of tries settled on 1 fits needs perfectly.. except want add polylines it. colin, guy made sample seems have used clever , unique coding... makes clean , useful sample... but.. can not figure out how add polyline.

 

i hope here can understand process , show me how add polyline. thank time.

 

 

<!--from http://you.arenot.me/2010/06/29/google-maps-api-v3-0-multiple-markers-multiple-infowindows/--> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">  <html xmlns="http://www.w3.org/1999/xhtml"> <head>     <title>google maps example</title>     <style type="text/css">       html { height: 100% }       body { height: 100%; margin: 0; padding: 0 }       #map_canvas { height: 100% }           </style>      <script src='http://code.jquery.com/jquery.min.js' type='text/javascript'></script> </head> <body> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> var infowindow = null;     $(document).ready(function () { initialize();  });      function initialize() {          var centermap = new google.maps.latlng(39.828175, -98.5795);          var myoptions = {             zoom: 6,             center: centermap,             maptypeid: google.maps.maptypeid.roadmap         }          var map = new google.maps.map(document.getelementbyid("map_canvas"), myoptions);          setmarkers(map, sites);         infowindow = new google.maps.infowindow({                 content: "loading..."             });                  var bikelayer = new google.maps.bicyclinglayer();         bikelayer.setmap(map);     }      var sites = [     ['mount evans', 39.58108, -105.63535, 4, 'this mount evans.'],     ['irving homestead', 40.315939, -105.440630, 2, 'this irving homestead.'],     ['badlands national park', 43.785890, -101.90175, 1, 'this badlands national park'],     ['flatirons in spring', 39.99948, -105.28370, 3, 'these flatirons in spring.'] ];        function setmarkers(map, markers) {          (var = 0; < markers.length; i++) {             var sites = markers[i];             var sitelatlng = new google.maps.latlng(sites[1], sites[2]);             var marker = new google.maps.marker({                 position: sitelatlng,                 map: map,                 title: sites[0],                 zindex: sites[3],                 html: sites[4]             });              var contentstring = "some content";              google.maps.event.addlistener(marker, "click", function () {                 // alert(this.html);                 infowindow.setcontent(this.html);                 infowindow.open(map, this);             });         }     } </script>  <div id="map_canvas" style="width:100%; height:100%"></div> </body> </html> 

i appreciate question not @ related adobe (other used dwcs4 ) but..  question better asked in other part of adobe forum?  solution possible.. not understand rational (in code ) used if knows... adding polyline totally incompatible?

 

i apprecate 36 views date.. thank time

 

for worth here url page

 

http://www.lsvs.ca/test/



More discussions in Web design


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support