Ignore:
Timestamp:
07/28/10 01:47:29 (22 months ago)
Author:
takanori
Message:

simple polyline support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Products.ATGoogleMaps/trunk/Products/ATGoogleMaps/skins/ATGoogleMaps/atgooglemaps.js.dtml

    r298 r332  
    8585    return marker; 
    8686} 
     87 
     88function createPolyline(map, color, opacity, weight, title) { 
     89    var polyline = new google.maps.Polyline({ 
     90        strokeColor: color, 
     91        strokeOpacity: opacity, 
     92        strokeWeight: weight 
     93    }); 
     94 
     95    polyline.setMap(map); 
     96    return polyline; 
     97} 
     98 
     99function createPath(array) { 
     100    var mvcArray = new google.maps.MVCArray(); 
     101    for (var i = 0; i < array.length; i++) { 
     102        mvcArray.push(new google.maps.LatLng(array[i][0], array[i][1])); 
     103    } 
     104    return mvcArray; 
     105} 
Note: See TracChangeset for help on using the changeset viewer.