[Trac] [OpenLayers] #358: Add method to change a Marker's LonLat
OpenLayers
trac at openlayers.org
Thu Oct 19 00:03:42 EDT 2006
#358: Add method to change a Marker's LonLat
---------------------+------------------------------------------------------
Reporter: euzuro | Owner: crschmidt
Type: feature | Status: new
Priority: minor | Milestone: 2.3 Release
Component: Marker | Version:
Keywords: |
---------------------+------------------------------------------------------
Add a new method, probably something like ''setLonLat()'' which changes
the marker's lonlat position and redraws it.
off the top of my head, would look something like this:
{{{
setLonLat: function(lonlat) {
if (lonlat != null) {
this.lonlat = lonlat;
if (this.map != null) {
var px = this.map.getLayerPxFromLonLat(this.lonlat);
if (px != null) {
this.draw(px);
}
}
}
},
}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/358>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list