static object The createLayer(
string
$layer, integer
$arg1, [mixed
$arg2 = null], [
$arg3 = null], [
$arg4 = null], [
$arg5 = null], [
$arg6 = null], [
$arg7 = null], [
$arg8 = null], [
$arg9 = null]
)
|
|
Creates a view
Serves as a view factory. The first argument is the name of a view that is registered with, and the rest of the arguments are passed to the view.
Parameters:
|
string |
$layer: |
View name |
|
integer |
$arg1: |
Normally the Layer ID |
|
mixed |
$arg2: |
Additional arguments... |
|
|
$arg3: |
|
|
|
$arg4: |
|
|
|
$arg5: |
|
|
|
$arg6: |
|
|
|
$arg7: |
|
|
|
$arg8: |
|
|
|
$arg9: |
|
API Tags:
| Return: | created view |
| Access: | public |
SMap_View __construct(
SMap
$map, integer
$viewId, [array
$bkCol = null]
)
|
|
Give this view an identity
Parameters:
|
object The |
$map: |
controlling map |
|
integer |
$viewId: |
This view's ID |
|
array |
$bkCol: |
View's background color |
API Tags:
Redefined in descendants as:
object The addLayer(
mixed
$layer, [integer
$arg1 = null], [mixed
$arg2 = null], [
$arg3 = null], [
$arg4 = null], [
$arg5 = null], [
$arg6 = null], [
$arg7 = null], [
$arg8 = null]
)
|
|
Adds a layer.
If there are no layers, then this layer becomes the bottom most layer. If there is a layer, then this layer is composited on top of it.
Parameters:
|
mixed |
$layer: |
SMap_Layer subclass or layer to create |
|
integer |
$arg1: |
Normally a Layer ID |
|
mixed |
$arg2: |
Additional arguments passed to layer constructor |
|
|
$arg3: |
|
|
|
$arg4: |
|
|
|
$arg5: |
|
|
|
$arg6: |
|
|
|
$arg7: |
|
|
|
$arg8: |
|
API Tags:
| Return: | added layer |
| Access: | public |
| See: | SMap_Layer |
array getAdjViewBounds(
SMap
$map, array
$tG
)
|
|
Adjust the view coords if we are in an image
Uses the current bounds and the tile grid to calculate the view bounds of the original image. Sometimes it's missing data, so it does the best it can.
Parameters:
|
object The |
$map: |
map we are in |
|
array |
$tG: |
The tile grid |
API Tags:
| Return: | The overall view bounds |
| Access: | protected |
Return the name of this view
The name is defined by SMap_Lang, so this method simply uses that value.
API Tags:
| Return: | View name |
| Access: | public |
Creates and returns the set of tiles that represent this view
This constructs a set of tiles that fully represent this view. Objects have been added to each tile, and they have been flattened and constrained.
API Tags:
string getXHTML(
array
$tiles
)
|
|
Handle getting the XHTML
Parameters:
|
array |
$tiles: |
The array of tiles |
API Tags:
Redefined in descendants as:
void sendObj(
SMap_Object
$newObj, integer
$newX, integer
$newY
)
|
|
Send an object to another tile
Used to create an object in another tile dynamically. This is intended to only be used by methods in SMap_Object during rendering. The normal method of adding an object to a tile is to include it in the return value of SMap_Layer::getMapObjs() or SMap_Layer::getImgObjs().
Parameters:
|
object New |
$newObj: |
object |
|
integer |
$newX: |
X location of tile in tile grid |
|
integer |
$newY: |
Y location of tile in tile grid |
API Tags:
mixed __get(
string
$nm
)
|
|
Access useful vars read-only
Parameters:
|
string |
$nm: |
Name of member |
API Tags:
| Return: | Value of member |
| Access: | public |