[OpenLayers-Trac] [OpenLayers] #445: controls outside the map view port
OpenLayers
trac at openlayers.org
Wed Dec 13 13:52:03 EST 2006
#445: controls outside the map view port
----------------------+-----------------------------------------------------
Reporter: pgiraud | Owner: tschaub
Type: feature | Status: new
Priority: minor | Milestone: 2.3 Release
Component: Control | Version:
Resolution: | Keywords: review
----------------------+-----------------------------------------------------
Comment (by tschaub):
More explicitly, in a control's draw method, you can use the following
condition to determine whether the control is going to end up in the map
viewport:
{{{
if(!this.div.parentNode || (this.div.parentNode.className ==
'olMapViewport')) {
// the control will be or already is in the map viewport
}
}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/445#comment:6>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list