Version : 0.2
Last Change : 2003-06-25
File Name : WMSquick.js
quickWMS
A descendent of mapWMS that accepts mouse events for zoom, select and query. It implements the following new methods :
Methods
- setSelectionXY = function(x1, y1, x2, y2)
Sets the selection box in the specified geographical box where (x1, y1) define the bottom-left point and (x2,y2) define the top-right point.
- setSelection = function (x1, y1, x2, y2)
Sets the selection box in the specified pixel based box where (x1, y1) define the top-left point and (x2,y2) define the bottom-right point.
- back = function()
Goes back to the previously valid geographical box.
- home = function()
Goes to the initial geographical box.
- forward = function()
Goes forward to the valid geographical box.
Properties
Events
- onMouseMove = function (wmsMap, x, y)
Event fired when the mouse moves over the map area. It returns the referening object and the
x and y as geographical coordinates
- onMouseClick = function (wmsMap, x, y) - not implemented
Event fired when the mouse clicks over the map area. It returns the referening object and the
x and y as geographical coordinates
- onMouseUp = function (wmsMap, x, y)
Event fired when the mouse up over the map area. It returns the referening object and the
x and y as geographical coordinates
- onMouseDown = = function (wmsMap, x, y)
Event fired when the mouse down over the map area. It returns the referening object and the
x and y as geographical coordinates
- onSelecting = function (wmsLayer, x1, y1, x2, y2)
Event fired when the user is selecting a given area with the specified geographical box where (x1, y1)
define the bottom-left point and (x2,y2) define the top-right point.
If this events returns false the selection value is not accepted.
- onSelection = function (wmsLayer, x1, y1, x2, y2)
Event fired when the user has finished selecting a given area with the specified geographical box where (x1, y1)
define the bottom-left point and (x2,y2) define the top-right point.
Examples
- multiple layer request example [view]
Change Log
|