[OpenLayers-Trac] [OpenLayers] #1240: navigation history control
OpenLayers
trac at openlayers.org
Wed Jan 30 18:46:20 EST 2008
#1240: navigation history control
----------------------+-----------------------------------------------------
Reporter: tschaub | Owner: tschaub
Type: feature | Status: assigned
Priority: minor | Milestone: 2.6 Release
Component: Control | Version: 2.5
Resolution: | Keywords:
State: |
----------------------+-----------------------------------------------------
Comment (by tschaub):
Replying to [comment:18 crschmidt]:
> See #659 for some images we may want to consider ganking as default
styling for these controls.
Thanks for pointing these out. The update patch inherits from the new
button class (go buttons!) and uses the graphics attached to that old
ticket (with mods from me).
It's still a bit weird to add this to a panel for two reasons:
1) panels don't know to redraw themselves when controls are
activated/deactivated by means other than a click (addressed by adding
events instances to controls), and
2) you have to add the parent control to the map (so its draw method gets
called) even if you are adding the sub-controls to a panel
I could give the sub-controls a reference to their parent and have them
call draw there if the parent doesn't already have a map, but that is a
ticket for later. This thing is good as is - and gives flexibility in
interface design.
--
Ticket URL: <http://trac.openlayers.org/ticket/1240#comment:19>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list