[OpenLayers-Trac] [OpenLayers] #3591: There is no way to alter
geometry on the fly on feature drawing
OpenLayers
trac-20090302 at openlayers.org
Wed Nov 30 08:07:45 EST 2011
#3591: There is no way to alter geometry on the fly on feature drawing
----------------------+-----------------------------------------------------
Reporter: anrikun | Owner:
Type: feature | Status: new
Priority: major | Milestone: 2.12 Release
Component: Geometry | Version: 2.11
Keywords: | State:
----------------------+-----------------------------------------------------
I might be wrong, but OL does not provide a way to alter a feature's
geometry based on the context it is being drawn.
Between the call to layer.drawFeature and the actual drawing from the
renderer, there is no way to change geometry.
This means that for instance, you cannot modify the geometry based on the
current map state, resolution, etc.
In my case, I want to handle a custom "arrow" shape. But I just can't
because I need to update the shape knowing the current resolution of the
map and OL does not allow this AFAIK.
Besides, there is no way to add new geometry types because the way
geometries are drawn is directly controlled by the renderer itself.
If geometries could have a "draw" method and renderer would call this
method then we would have a way to extend geometries.
--
Ticket URL: <http://trac.openlayers.org/ticket/3591>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list