Turn the zoom controls on for a given view
The default is to apply the controls to all views, but if you want to limit the views which draw the controls, enable them here.
Parameters:
|
object View |
$view: |
to draw zoom controls on |
API Tags:
Create the zoom control objects
Use enableControlOn() to select a specific view to draw the zoom controls on. Otherwise, controls are drawn on all views this object is applied to.
Parameters:
|
object View |
$view: |
to draw controls on |
|
object Tile |
$tile: |
to draw controls in |
|
boolean |
$isImg: |
Do we need calculations for an image or page? |
API Tags:
| Return: | Drawing objects |
| Access: | protected |
This has no image elements
Parameters:
|
object |
$view: |
|
|
object |
$tile: |
|
API Tags:
| Return: | Nothing |
| Access: | public |
Redefinition of:
- SMap_Layer::getImgObjs()
- Composite this layer onto the tile (in a raster way)
Create a default element for zooming into the area clicked
Parameters:
|
object Containing |
$view: |
view |
|
object Containing |
$tile: |
tile |
API Tags:
Redefinition of:
- SMap_Layer::getMapObjs()
- Composite this layer onto the tile
Create a URL sutible for zooming out
API Tags:
| Return: | The URL |
| Access: | public |
string getZoomURL(
float
$Bx, float
$By, integer
$zoomLev
)
|
|
Create a zoom URL
Uses a center point to create a new URL at a given zoom level.
Parameters:
|
float |
$Bx: |
Center X |
|
float |
$By: |
Center Y |
|
integer |
$zoomLev: |
Zoom level |
API Tags:
boolean hasCachedRects(
)
|
|
The zooming layer has no cached rects
API Tags:
Redefinition of:
- SMap_Layer::hasCachedRects()
- Might have cached rects in the DB
string redirMap(
array
$coords
)
|
|
Zoom in from a click on the map
Zoom in by two levels into the area where the user clicked.
Parameters:
|
array |
$coords: |
The coordinates where the user clicked |
API Tags:
| Return: | Redirect the user to this URL |
| Access: | public |