| PREV CLASS Documentation homepage NEXT CLASS |
IlvObject
|
+--IlvEmptyView
|
+--IlvResizableView
|
+--IlvAbstractView
|
+--IlvTiledView
IlvTiledView is a component that displays maps. Whereas
IlvView uses one single image, this one uses a grid of tiles
IlvTiledView to profit from browser's cache.
| Constructor Summary | |
|---|---|
IlvTiledView(left, top, width, height, tileSize, namespace)
|
|
| Method Summary | |
|---|---|
addBeforeImageOnLoadListener(listener)
Adds a listener to be called when the dynamic layer view has loaded a new image, but the image is not currently visible. |
|
addCapabilitiesOnLoadListener(listener)
Adds a listener to be called when the capabilities have been loaded. |
|
addImageOnLoadListener(listener)
Adds a listener to be called when the dynamic layer view has loaded a new image. |
|
addInteractorListener(listener)
Adds a listener to be called when an interactor has changed on the view |
|
centerAt(x, y)
Queries new images centered at the specified point. |
|
createCapabilitiesRequestURL()
Creates the HTTP request for capabilities. |
|
createImageMapRequestURL(qx, qy, qw, qh, width, height, layers)
Creates the URL for generating an image map. |
|
createRequestURL(qx, qy, qw, qh, width, height, layers, format)
Creates the URL for the image request. |
|
getCapabilities(reload, showAll, keepLayerVisibility, dynamicLayerRefresh)
Queries capabilities. |
|
getCurrentZoomLevel()
Returns the current zoom level of the view. |
|
getDynamicLayers()
Retrieve dynamic layers |
|
getDynamicVisibleLayers()
Returns the dynamic visible layers |
|
getImageBackgroundColor()
Returns the background color of the generated image or null if
not specified. |
|
getImageFormat()
Returns the format of the tile images generated from the server. |
|
getInteractor()
Returns the interactor of the view. |
|
getLayers()
Returns an array of strings of available layers on the server. |
|
getManagerBBox()
Returns the bounding box of the manager on the server side. |
|
getMaxZoomLevel()
Returns the maximum zoom level available on the server side. |
|
getMessagePanel()
Returns the message panel where the messages will be displayed. |
|
getOverviewLayers()
Returns an array of string of all the layers that will be displayed on the overview window. |
|
getPanFactor()
Returns the factor used to pan. |
|
getPopupMenu()
Returns the popup menu on set this view. |
|
getRectangle()
Returns the IlvRectangle object that can be used to draw a
rectangle on the view. |
|
getRequestURL()
Get request URL |
|
getStaticVisibleLayers()
Returns the static visible layers |
|
getUpdateInterval()
Returns the automatic update interval of the dynamic layer. |
|
getViewBBox()
Returns the current visible area of the manager. |
|
getVisibleLayers()
Returns the visible dynamic and static visible layers |
|
getZoomFactor()
Returns the factor used when calling the zoomIn and
zoomOut methods if and only if fixed zoom levels are not set. |
|
getZoomLevels()
Retrieves the zoom levels as an array of double. |
|
hideImageMap()
Hides the image map layer. |
|
init()
Initializes the view. |
|
isAutoUpdateCapabilities()
Indicates if the automatic update will also update the capabilities. |
|
isCapabilitiesLoaded()
Indicates if the capabilities have been loaded from the server. |
|
isConstrainedOnContents()
Returns whether the view is constrained to the manager content bounds or not. |
|
isDynamicLayer(layer)
Check if a layer is dynamic |
|
isFitToContent()
Returns whether view bounding box equals the manager bounding box. |
|
isGenerateImageMap()
Indicates whether the component is generating an image map in addition to the image. |
|
isLayerVisible(layer)
Indicates if a layer is currently visible. |
|
panEast()
Pans the image to the east. |
|
panNorth()
Pans the image to the north. |
|
panNorthEast()
Pans the image to the northeast. |
|
panNorthWest()
Pans the image to the northwest. |
|
panSouth()
Pans the image to the south. |
|
panSouthEast()
Pans the image to the southeast. |
|
panSouthWest()
Pans the image to the southwest. |
|
panWest()
Pans the image to the west. |
|
readAdditionalCapabilities(context)
Allows you to read additional information generated by the capabilities request. |
|
removeBeforeImageOnLoadListener(listener)
Removes a listener installed with addBeforeImageLoadedListener. |
|
removeCapabilitiesOnLoadListener(listener)
Removes a listener installed with addCapabilitiesOnLoadListener. |
|
removeImageOnLoadListener(listener)
Removes a listener installed with addImageOnLoadListener. |
|
removeInteractorListener(listener)
Removes a listener installed with addInteractorListener. |
|
setAdditionalParameters(key, value)
Installs an additional request parameter that will be added to all requests. |
|
setAutoUpdateCapabilities(set)
When set to true the automatic update will also update the
capabilities. |
|
setConstrainedOnContents(constrainedOnContents)
Defines whether the view is constrained to the manager content bounds or not. |
|
setImageFormat(format)
Sets the format of the tile images generated from the server, the format can be the string JPEG or PNG. |
|
setInteractor(inter)
Changes the interactor of the view. |
|
setLayerVisible(layer, visible)
Hides or shows a layer by querying a new image from the server. |
|
setMessagePanel(ilvHTMLPanel)
Sets the message panel where the message will be displayed |
|
setPanFactor(factor)
Changes the factor used to pan. |
|
setPopupMenu(popupMenu)
Sets the popup menu on this view. |
|
setRequestURL(requestURL)
Set request URL |
|
setSessionExpirationHandler(handler)
Sets a listener that will be called when the HTTP session is about to be invalidated. |
|
setUpdateInterval(rate)
Changes the automatic update interval of the dynamic layer. |
|
setViewBBox(x, y, w, h, scale, noUpdate)
Queries a new image showing the specified rectangle. |
|
setZoomFactor(factor)
Changes the factor used when calling the zoomIn and
zoomOut methods if and only if fixed zoom levels are not set. |
|
showAll()
Queries new images showing all the area available from the server. |
|
showImageMap()
Shows the image map layer. |
|
update(noFullUpdate, delayedDynLayer)
Updates the view. |
|
updateAll(showAll, keepLayerVisibility, dynamicLayerRefresh)
Queries new capabilities and a new image from the server. |
|
updateImage()
Queries a new image from the server. |
|
zoomBy(z)
Zooms the view to a specified factor by querying a new image from the server. |
|
zoomIn()
Zooms the view in by querying a new image from the server. |
|
zoomOut()
Zooms the view out by querying a new image from the server. |
|
zoomToIdentity(nearZoomLevelAllowed)
Sets the identity transformer on the view. . |
|
| Constructor Detail |
IlvTiledView(left, top, width, height, tileSize, namespace)
| Method Detail |
addBeforeImageOnLoadListener(listener)
listener - The listener function that must have the following
parameters :
view : The IlvTiledView instance.
addCapabilitiesOnLoadListener(listener)
listener - The listener function, which must have the following
parameters:
view: The IlvTiledView.
addImageOnLoadListener(listener)
listener - The listener function, which must have the following
parameters:
view: The IlvTiledView.
addInteractorListener(listener)
listener - The listener function, which must have the following
parameters:
view: TheIlvTiledView. oldInteractor: The old interactor (IlvInteractor). newInteractor: The new interactor (IlvInteractor).
centerAt(x, y)
createCapabilitiesRequestURL()
createImageMapRequestURL(qx, qy, qw, qh, width, height, layers)
createRequestURL(qx, qy, qw, qh, width, height, layers, format)
qx - The abscissa of the top-left corner requested in the manager's
coordinate system.qy - The ordinate of the top-left corner requested in the manager's
coordinate system.qw - The width requested in the manager's coordinate system.qh - The height requested in the manager's coordinate system.width - The width of the requested image.height - The height of the requested image.layers - Array of the layer names requested.format - image formatgetCapabilities(reload, showAll, keepLayerVisibility, dynamicLayerRefresh)
reload - Is this a reloading of the page.showAll - If true the new image will show the entire area available on
the server.keepLayerVisibility - If true the current state of layer visibility is
kept.dynamicLayerRefresh - If true only the dynamic layer is refreshed.getCurrentZoomLevel()
getDynamicLayers()
getDynamicVisibleLayers()
getImageBackgroundColor()
null if
not specified. getImageFormat()
getInteractor()
getLayers()
getManagerBBox()
left, top,
width, and height. These properties define the manager bounding box as
floating point values.
This value is valid only when the capabilities have been loaded. getMaxZoomLevel()
getMessagePanel()
getOverviewLayers()
getPanFactor()
panEast,
panWest, panNorth, panNorthEast,
panNorthWest,
panSouth, panSouthEast, and
panSouthWest. getPopupMenu()
getRectangle()
IlvRectangle object that can be used to draw a
rectangle on the view. This method is especially useful for interactors that
can display the interaction using this rectangle. getRequestURL()
getStaticVisibleLayers()
getUpdateInterval()
getViewBBox()
left, top,
width, and height. These properties define the visible area as
floating point values. getVisibleLayers()
getZoomFactor()
zoomIn and
zoomOut methods if and only if fixed zoom levels are not set.
Otherwise this factor is unused. getZoomLevels()
hideImageMap()
init()
onLoad event of the page
containing the view. isAutoUpdateCapabilities()
isCapabilitiesLoaded()
isConstrainedOnContents()
true.
Note that zoom levels (set by minZoomLevel or zoomLevels) lower than 1 will not be allowed if this property is set to true.
isDynamicLayer(layer)
layer - isFitToContent()
isGenerateImageMap()
isLayerVisible(layer)
layer - The name of the layer.panEast()
panNorth()
panNorthEast()
panNorthWest()
panSouth()
panSouthEast()
panSouthWest()
panWest()
readAdditionalCapabilities(context)
context - The object that contains the JavaScript variable generated
by the server.removeBeforeImageOnLoadListener(listener)
listener - The listener to remove.removeCapabilitiesOnLoadListener(listener)
addCapabilitiesOnLoadListener. listener - The listener to remove.removeImageOnLoadListener(listener)
addImageOnLoadListener. listener - The listener to remove.removeInteractorListener(listener)
addInteractorListener. listener - The listener to remove.setAdditionalParameters(key, value)
null value.
Adding additional parameters might be useful when defining a new interactor
that requires additional parameters. In this case you may set additional
parameters before calling updateImage, and then remove the
additional parameters. The parameter added will be &key=value. setAutoUpdateCapabilities(set)
true the automatic update will also update the
capabilities. setConstrainedOnContents(constrainedOnContents)
true.
Note that zoom levels (set by minZoomLevel or zoomLevels) lower than 1 will not be allowed if this property is set to true.
constrainedOnContents - Defines whether the view is constrained or not.
setImageFormat(format)
setInteractor(inter)
inter - An instance of IlvInteractor.setLayerVisible(layer, visible)
layer - The name of the layer.visible - A Boolean value to turn the layer visibility on or off.setMessagePanel(ilvHTMLPanel)
ilvHTMLPanel - An instance of IlvHTMLPanel.setPanFactor(factor)
panEast, panWest,
panNorth,
panNorthEast, panNorthWest,
panSouth, panSouthEast, and
panSouthWest. setPopupMenu(popupMenu)
popupMenu - the popup menu to set.setRequestURL(requestURL)
requestURL - setSessionExpirationHandler(handler)
This method works if and only if the session inactivity is reset by a JViews request.
If the session inactivity is reset by an external request, the #resetSessionTimeoutTimer method must be called.
This method must be called before the capabilities request is made.
handler - The session expiration handler. This must be a function with one parameter: the view.
setUpdateInterval(rate)
rate - The new interval in seconds. An interval of zero stops
the automatic update.setViewBBox(x, y, w, h, scale, noUpdate)
setZoomFactor(factor)
zoomIn and
zoomOut methods if and only if fixed zoom levels are not set.
Otherwise this factor is unused.
The default value is 1.5. showAll()
showImageMap()
update(noFullUpdate, delayedDynLayer)
noFullUpdate - Whether partially update the component.updateAll(showAll, keepLayerVisibility, dynamicLayerRefresh)
showAll - When true the new image will show
all of the area available on the server.keepLayerVisibility - When true the current layer's
visibility state is kept.dynamicLayerRefresh - If true only the dynamic layer is refreshed after the capabilities are loaded.updateImage()
zoomBy(z)
z - The zoom factor.zoomIn()
#setZoomFactor .zoomOut()
#setZoomFactor .zoomToIdentity(nearZoomLevelAllowed)
nearZoomLevelAllowed - Whether snap to the nearest zoom level in fixed zoom
levels mode or fail if the exact zoom level is not in the list (default value is false).true if the transformation succeeded, false otherwise.| Inherited Methods from IlvAbstractView |
| Inherited Methods from IlvResizableView |
| Inherited Methods from IlvEmptyView |
| Inherited Methods from IlvObject |
| PREV CLASS Documentation homepage NEXT CLASS |