[OpenLayers-Trac] [OpenLayers] #1244: OverviewMap overhaul
OpenLayers
trac at openlayers.org
Mon Jan 7 15:10:16 EST 2008
#1244: OverviewMap overhaul
----------------------------------+-----------------------------------------
Reporter: tschaub | Owner: tschaub
Type: feature | Status: assigned
Priority: minor | Milestone: 2.6 Release
Component: Control.OverviewMap | Version: 2.5
Resolution: | Keywords:
State: Commit |
----------------------------------+-----------------------------------------
Comment (by tschaub):
Replying to [comment:7 bartvde]:
> Tim, works for me. Is it really the best approach though to use the
minRectSize as the width and height of the point image? Should you not use
width and height auto for this?
Hey Bart. Let me know if I'm missing your point, but I think I get it.
The minRectSize property is used to set the width/height of the
extentRectangle when minRectSize is reached. The extentRectangle also
gets a new display class name. The default CSS declaration gives the
extentRectangle a background graphic. So I never touch the size of the
image (just the size of the element that uses the graphic as a
background). This is necessary to be able to position the extentRectangle
(with top and left).
As an alternative, we could honor the height and width declared in the CSS
- but then you'd have to type those numbers in twice (width and height) -
seemed easier to configure the control with a single property. In
addition, there's not a handy method to get a CSS rule for an element that
is not currently rendered (as would be the case with the replacement
rectangle - we need to know the threshold before deciding whether to
switch styles).
--
Ticket URL: <http://trac.openlayers.org/ticket/1244#comment:10>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list