search for: removepolylin

Displaying 3 results from an estimated 3 matches for "removepolylin".

Did you mean: removepolyline
2009 Mar 17
0
removeEventListener and polylines
...on the documention so I coded a removeEventListener 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
...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) { + var map = this.maps[this.api]; + // TODO: Add provider code + } + + }, LatLonPoint: { toProprietary: function() { // TODO: Add provider code + return {}; }, fromProprietary: f...
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...(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) { var map = this.maps[this.api]; - - // TODO: Add provider code + map.removeOverlay(polyline.proprietary_polyline); }, getCenter: function() { - var point; var map = this.maps[this.api]; +...