The OpenLayers.Console namespace is used for debugging and error logging. If the Firebug Lite (../Firebug/firebug.js) is included before this script, calls to OpenLayers.Console methods will get redirected to window.console. This makes use of the Firebug extension where available and allows for cross-browser debugging Firebug style.
Note
Note that behavior will differ with the Firebug extention and Firebug Lite. Most notably, the Firebug Lite console does not currently allow for hyperlinks to code or for clicking on object to explore their properties.
nullify references to prevent circular references and memory leaks
+
+
onScreen
onScreen:function()
Returns
{Boolean} Whether or not the feature is currently visible on screen (based on its ‘lonlat’ property)
+
+
createMarker
createMarker: function()
Based on the data associated with the Feature, create and return a marker object.
Return
{OpenLayers.Marker} A Marker Object created from the ‘lonlat’ and ‘icon’ properties set in this.data. If no ‘lonlat’ is set, returns null. If no ‘icon’ is set, OpenLayers.Marker() will load the default image.
Note
this.marker is set to return value
+
+
destroyMarker
destroyMarker: function()
Destroys marker. If user overrides the createMarker() function, s/he should be able to also specify an alternative function for destroying it
+
+
createPopup
createPopup: function(
closeBox
)
Creates a popup object created from the ‘lonlat’, ‘popupSize’, and ‘popupContentHTML’ properties set in this.data. It uses this.marker.icon as default anchor.
If no ‘lonlat’ is set, returns null. If no this.marker has been created, no anchor is sent.
Note
this.popup is set to return value
Parameters
closeBox
{Boolean} create popup with closebox or not
Returns
{<OpenLayers.Popup.AnchoredBubble>}
+
+
destroyPopup
destroyPopup: function()
Destroys the popup created via createPopup.
As with the marker, if user overrides the createPopup() function, s/he should also be able to override the destruction
Vector features use the OpenLayers.Geometry classes as geometry description. They have an ‘attributes’ property, which is the data object, and a ‘style’ property, the default values of which are defined in the OpenLayers.Feature.Vector.style objects.
WFS handling class, for use as a featureClass on the WFS layer for handling ‘point’ WFS types. Good for subclassing when creating a custom WFS like XML application.
nullify references to prevent circular references and memory leaks
processXMLNode: function(
xmlNode
)
When passed an xmlNode, parses it for a GML point, and passes back an object describing that point.
Features are combinations of geography and attributes.
+
+
\ No newline at end of file
diff --git a/files/OpenLayers/Format-js.html b/files/OpenLayers/Format-js.html
index 0987783903..eabf23181f 100644
--- a/files/OpenLayers/Format-js.html
+++ b/files/OpenLayers/Format-js.html
@@ -8,8 +8,8 @@ if (browserType) {document.write("
A Collection is exactly what it sounds like: A collection of different Geometries. These are stored in the local parameter “components” (which can be passed as a parameter to the constructor).
As new geometries are added to the collection, they are NOT cloned. When removing geometries, they need to be specified by reference (ie you have to pass in the exact geometry to be removed).
The getArea() and getLength() functions here merely iterate through the components, summing their respective areas and lengths.
Instances of this class represent a width/height pair
This class represents a screen coordinate, in x and y coordinates
destroy: function()
nullify references to prevent circular references and memory leaks
clone: function()
{OpenLayers.Icon} A fresh copy of the icon.
Creates an icon, which is an image tag in a div.
setSize: function(
size
)
draw: function(
px
)
Move the div to the given pixel.
setOpacity: function(
opacity
)
Change the icon’s opacity
moveTo: function (
px
)
move icon to passed in px.
display: function(
display
)
Hide or show the icon
+
+
\ No newline at end of file
diff --git a/files/OpenLayers/Layer-js.html b/files/OpenLayers/Layer-js.html
index 890a362b4e..5bd1a6775f 100644
--- a/files/OpenLayers/Layer-js.html
+++ b/files/OpenLayers/Layer-js.html
@@ -8,8 +8,8 @@ if (browserType) {document.write("
Instances of OpenLayers.Layer.Image are used to display data from a web accessible image as a map layer. Create a new image layer with the OpenLayers.Layer.Image constructor. Inherits from OpenLayers.Layer.
Instances of OpenLayers.Layer.Vector are used to render vector data from a variety of sources. Create a new image layer with the OpenLayers.Layer.Vector constructor.
Instances of OpenLayers.Layer.WMS are used to display data from OGC Web Mapping Services. Create a new WMS layer with the OpenLayers.Layer.WMS constructor.
When mouse goes down within the popup, make a note of it locally, and then do not propagate the mousedown (but do so safely so that user can select text inside)
When mouse comes up within the popup, after going down in it, reset the flag, and then (once again) do not propagate the event, but do so safely so that user can select text inside
Do this in a separate function so that subclasses can choose to override it if they wish to deal differently with mouse events
Note in the following handler functions that some special care is needed to deal correctly with mousing and popups.
Because the user might select the zoom-rectangle option and then drag it over a popup, we need a safe way to allow the mousemove and mouseup events to pass through the popup when they are initiated from outside.
Otherwise, we want to essentially kill the event propagation for all other events, though we have to do so carefully, without disabling basic html functionality, like clicking on hyperlinks or drag-selecting text.
+
+
onmousedown
onmousedown: function (
evt
)
When mouse goes down within the popup, make a note of it locally, and then do not propagate the mousedown (but do so safely so that user can select text inside)
Parameters
evt
{Event}
+
+
onmousemove
onmousemove: function (
evt
)
If the drag was started within the popup, then do not propagate the mousemove (but do so safely so that user can select text inside)
Parameters
evt
{Event}
+
+
onmouseup
onmouseup: function (
evt
)
When mouse comes up within the popup, after going down in it, reset the flag, and then (once again) do not propagate the event, but do so safely so that user can select text inside
Parameters
evt
{Event}
+
+
onclick
onclick: function (
evt
)
Ignore clicks, but allowing default browser handling
Parameters
evt
{Event}
+
+
onmouseout
onmouseout: function (
evt
)
When mouse goes out of the popup set the flag to false so that if they let go and then drag back in, we won’t be confused.
Parameters
evt
{Event}
+
+
ondblclick
ondblclick: function (
evt
)
Ignore double-clicks, but allowing default browser handling
This class represents a longitude and latitude pair
Instances of this class represent a width/height pair
Instances of OpenLayers.Map are interactive maps embedded in a web page.
destroy: function()
nullify references to prevent circular references and memory leaks
draw: function(
px
)
updatePosition: function()
if the popup has a lonlat and its map members set, then have it move itself to its proper position
moveTo: function(
px
)
visible: function()
{Boolean} Boolean indicating whether or not the popup is visible
toggle: function()
show: function()
hide: function()
setSize:function(
size
)
setBackgroundColor:function(
color
)
setOpacity:function(
opacity
)
setBorder:function(
border
)
setContentHTML:function(
contentHTML
)
registerEvents:function()
Registers events on the popup.
onmousedown: function (
evt
)
When mouse goes down within the popup, make a note of it locally, and then do not propagate the mousedown (but do so safely so that user can select text inside)
onmousemove: function (
evt
)
If the drag was started within the popup, then do not propagate the mousemove (but do so safely so that user can select text inside)
onmouseup: function (
evt
)
When mouse comes up within the popup, after going down in it, reset the flag, and then (once again) do not propagate the event, but do so safely so that user can select text inside
onclick: function (
evt
)
Ignore clicks, but allowing default browser handling
onmouseout: function (
evt
)
When mouse goes out of the popup set the flag to false so that if they let go and then drag back in, we won’t be confused.
ondblclick: function (
evt
)
Ignore double-clicks, but allowing default browser handling
This class represents a screen coordinate, in x and y coordinates
+
+
\ No newline at end of file
diff --git a/files/OpenLayers/Tile-js.html b/files/OpenLayers/Tile-js.html
index e0065bc476..f785816947 100644
--- a/files/OpenLayers/Tile-js.html
+++ b/files/OpenLayers/Tile-js.html
@@ -8,8 +8,8 @@ if (browserType) {document.write("
This is a class designed to designate a single tile, however it is explicitly designed to do relatively little. Tiles store information about themselves -- such as the URL that they are related to, and their size - but do not add themselves to the layer div automatically, for example. Create a new tile with the OpenLayers.Tile constructor, or a subclass.
Take the pixel locations of the corner of the tile, and pass them to the base layer and ask for the location of those pixels, so that displaying tiles over Google works fine.
diff --git a/files/OpenLayers/Tile/Image-js.html b/files/OpenLayers/Tile/Image-js.html
index 5cc91240f2..4bc7184dfa 100644
--- a/files/OpenLayers/Tile/Image-js.html
+++ b/files/OpenLayers/Tile/Image-js.html
@@ -8,8 +8,8 @@ if (browserType) {document.write("
Instances of OpenLayers.Tile.Image are used to manage the image tiles used by various layers. Create a new image tile with the OpenLayers.Tile.Image constructor. Inherits from OpenLayers.Tile.
Make sure that the image that just loaded is the one this tile is meant to display, since panning/zooming might have changed the tile’s URL in the meantime.
diff --git a/files/OpenLayers/Tile/WFS-js.html b/files/OpenLayers/Tile/WFS-js.html
index a1b8d8ce3d..1364663b04 100644
--- a/files/OpenLayers/Tile/WFS-js.html
+++ b/files/OpenLayers/Tile/WFS-js.html
@@ -8,20 +8,20 @@ if (browserType) {document.write("
Instances of OpenLayers.Tile.WFS are used to manage the image tiles used by various layers. Create a new image tile with the OpenLayers.Tile.WFS constructor. Inherits from OpenLayers.Tile.
Iterate through and call destroy() on each feature, removing it from the local array
+
OpenLayers.Tile.WFS
Instances of OpenLayers.Tile.WFS are used to manage the image tiles used by various layers. Create a new image tile with the OpenLayers.Tile.WFS constructor. Inherits from OpenLayers.Tile.