[OpenLayers-Trac] [OpenLayers] #1120: users should be able to customize the select style per feature
OpenLayers
trac at openlayers.org
Sat Jan 26 11:34:54 EST 2008
#1120: users should be able to customize the select style per feature
-------------------------------+--------------------------------------------
Reporter: tschaub | Owner:
Type: task | Status: new
Priority: minor | Milestone: 2.6 Release
Component: general | Version: 2.5
Resolution: | Keywords:
State: Needs Discussion |
-------------------------------+--------------------------------------------
Comment (by ahocevar):
Another idea:
The !StyleMap object could also be used to store what is currently called
originalStyle (used in Control.!SelectFeature): When the getStyle method
is called, the passed renderIntent will be stored in the object.
Subsequent calls of getStyle without a renderIntent parameter will use
this renderIntent, until it is called again with a new renderIntent.
The layer.drawFeature method would call it without renderIntent by
default, to preserve the current style when called by moveTo. The
layer.drawFeature method would have a renderIntent parameter, which will
be passed through when called from other methods, e.g.
Control.!SelectFeature.select/unselect.
--
Ticket URL: <http://trac.openlayers.org/ticket/1120#comment:7>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list