This simple control switches the visibility of an arbitrary div which is given in its “div” property.
| Legato. | This simple control switches the visibility of an arbitrary div which is given in its “div” property. |
| Properties | |
| handlers | {Object} |
| parentMap | {OpenLayers.Map} |
| Functions | |
| OpenLayers. | Create a new overview map |
| draw | Render the control in the browser. |
| mapDivClick | Handle browser events |
| update | Update the overview map after layers move. |
| updateRectToMap | Updates the extent rectangle position and size to match the map extent |
| updateMapToRect | Updates the map extent to match the extent rectangle position and size |
| setRectPxBounds | Set extent rectangle pixel bounds. |
| getRectBoundsFromMapBounds | Get the rect bounds from the map bounds. |
| getMapBoundsFromRectBounds | Get the map bounds from the rect bounds. |
| getLonLatFromOverviewPx | Get a map location from a pixel location |
| getOverviewPxFromLonLat | Get a pixel location from a map location |
| zoomBox | |
| lc: | XML based config for a Legato.Control.OverviewBoundingBox. |
XML based config for a Legato.Control.OverviewBoundingBox.
<lc:OverviewBoundingBox div="overviewMap" displayClass="LegatoControlToggleOverviewMap"/>
Render the control in the browser.
draw: function()
Handle browser events
mapDivClick: function( evt )
Update the overview map after layers move.
update: function()
Updates the extent rectangle position and size to match the map extent
updateRectToMap: function()
Updates the map extent to match the extent rectangle position and size
updateMapToRect: function( zoom )
Set extent rectangle pixel bounds.
setRectPxBounds: function( pxBounds )
Get the rect bounds from the map bounds.
getRectBoundsFromMapBounds: function( lonLatBounds )
Get the map bounds from the rect bounds.
getMapBoundsFromRectBounds: function( pxBounds )
Get a map location from a pixel location
getLonLatFromOverviewPx: function( overviewMapPx )
Get a pixel location from a map location
getOverviewPxFromLonLat: function( lonlat )