OpenSpace.Patches

These are OpenLayers functions that we have had to customise for OpenSpace API.

  • OpenLayers.Control.DragPan.prototype.panMap
  • OpenLayers.Control.DragPan.prototype.panMapDone
  • OpenLayers.Feature.prototype.popupClass
  • OpenLayers.Geometry.LinearRing.prototype.containsPoint
  • OpenLayers.ImgPath
Summary
OpenSpace.PatchesThese are OpenLayers functions that we have had to customise for OpenSpace API.
Functions
panMap
panMapDoneFinish the panning operation.
popupClassPatch the Feature class to use the Open Space InfoWIndow
Functions
containsPoint
Variables
ImgPath {String}Patch to ensure that OpenLayers looks for images on OpenSpace server and not developer’s server

Functions

panMap

OpenLayers.Control.DragPan.prototype.panMap = function(xy)

Parameters

xy{<OpenLayers.Pixel>} Pixel of the mouse position

panMapDone

OpenLayers.Control.DragPan.prototype.panMapDone = function(xy)

Finish the panning operation.  Only call setCenter (through panMap) if the map has actually been moved.

Parameters

xy{<OpenLayers.Pixel>} Pixel of the mouse position

popupClass

Patch the Feature class to use the Open Space InfoWIndow

Summary
Functions
containsPoint
Variables
ImgPath {String}Patch to ensure that OpenLayers looks for images on OpenSpace server and not developer’s server

Functions

containsPoint

OpenLayers.Geometry.LinearRing.prototype.containsPoint = function(point)

Parameters

point{<OpenLayers.Point>}

Returns

{Boolean} true or false if contains point

Variables

ImgPath {String}

Patch to ensure that OpenLayers looks for images on OpenSpace server and not developer’s server

OpenLayers.Control.DragPan.prototype.panMap = function(xy)
OpenLayers.Control.DragPan.prototype.panMapDone = function(xy)
Finish the panning operation.
OpenLayers.Geometry.LinearRing.prototype.containsPoint = function(point)
Close