search for: addpolyline

Displaying 5 results from an estimated 5 matches for "addpolyline".

2010 May 27
0
googlev3 addPolyline and core swapping
i''ve added the right code for addPolyline in googlev3 js and changed a bit the swap function to insert markers and polyline and change maptype too sorry but i''ve put all the code on git cause i don''t know how to access svn as committer for the moment so please refer to git to get all the changes you could find usefull...
2007 Jul 25
1
regarding polylines
...ker(new LatLonPoint(37.4034,-121.9958)),{infoBubble : "Lawrence Expwy & Tasman <br/> Next bus is at 14:40:00"}),addDataToMarker(new Marker(new LatLonPoint(37.4033,-121.9801)),{infoBubble : "Old Ironsides & Tasman <br/> Next bus is at 14:44:00"})],true)); map.addPolyline(addDataToPolyline(new Polyline([new LatLonPoint(37.3853,- 122.0172),new LatLonPoint(37.3958,-121.9914)]),{opacity : 0.7,width : 5,color : "#FF00AB"})); }); could any body please help me on this. Thanks, harsha -------------- next part -------------- An HTML attachment was scrubbed.....
2009 Mar 17
0
removeEventListener and polylines
...ener method. If you think it will be useful I can post it (but as i said I''m a newbie to both Javascript and Mapstraction so it can be ful of errors :) ) Another question is about polylines. Is there a way to remove a polyline with the method removePolyline if it was previously added with addPolyline(polyline,true) ? The problem lies in the boolean parameter : if it is true the polyline object is not added to polylines array so the remove method won''t delete anything. Thank you for your attention, regards, Mario Latronico
2009 Dec 13
0
r65 committed - Use the GeoCommons addOverlay method
...s.api]; + // TODO: Add provider code + + }, + + removeAllMarkers: function() { + // Done in mxn.core.js + }, + + declutterMarkers: function(opts) { + var map = this.maps[this.api]; + + // TODO: Add provider code + }, + + addPolyline: function(polyline, old) { + var map = this.maps[this.api]; + var pl = polyline.toProprietary(this.api); + // TODO: Add provider code + // map.addOverlay(pl); + return pl; + }, + + removePolyline: function(polyline) { +...
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...moveOverlay(marker.proprietary_marker); }, removeAllMarkers: function() { - var map = this.maps[this.api]; - - // TODO: Add provider code + // Done in mxn.core.js }, declutterMarkers: function(opts) { @@ -88,47 +107,37 @@ addPolyline: function(polyline, old) { var map = this.maps[this.api]; var pl = polyline.toProprietary(this.api); - - // TODO: Add provider code - + map.addOverlay(pl); return pl; }, removePolyline: function(polyline) {...