diff --git a/files/OpenLayers/Format-js.html b/files/OpenLayers/Format-js.html new file mode 100644 index 0000000000..1fb0a3a7a4 --- /dev/null +++ b/files/OpenLayers/Format-js.html @@ -0,0 +1,34 @@ + + +
Read data from a string, and return an object whose type depends on the subclass.
read: function( data )
Accept an object, and return a string.
write: function( object )
OpenLayers JavaScript Mapping Library |
+
+OpenLayers.TileThis 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.
Summary
layer{OpenLayers.Layer} layer the tile is attached to
+
+ bounds{OpenLayers.Bounds} null size{OpenLayers.Size} null OpenLayers.TileConstructor for a new OpenLayers.Tile instance. Parameters
+
+
+
+
+
+ getBoundsFromBaseLayer
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. Parameters
Return
|
+
+
nullify references to prevent circular references and memory leaks
destroy:function()
Clear out existing tile, and return whether to draw or not.
draw:function()
Reposition the tile.
moveTo: function ( bounds, position, redraw )
Clear the tile of any bounds/position-related data so that it can be reused in a new location.
clear: function()
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.
getBoundsFromBaseLayer: function( position )
OpenLayers JavaScript Mapping Library |
+
+OpenLayers. Tile. ImageInstances 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. Summary
+
+
+
+ OpenLayers. Tile. ImageConstructor for a new OpenLayers.Tile.Image instance. Parameters
+
+
+
+
+
+
+
+ checkImgURL
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. If the tile URL did change before the image loaded, set the imgDiv display to ‘none’, as either (a) it will be reset to visible when the new URL loads in the image, or (b) we don’t want to display this tile after all because its new bounds are outside our maxExtent. This function should no longer be neccesary with the improvements to Grid.js in OpenLayers 2.3. The lack of a good isEquivilantURL function caused problems in 2.2, but it’s possible that with the improved isEquivilant URL function, this might be neccesary at some point. See discussion in the thread at http://openlayers.org- /pipermail- /dev- /2007-January- /000205.html @private |
+
+
nullify references to prevent circular references and memory leaks
destroy: function()
Check that a tile should be drawn, and draw it.
draw:function()
Clear the tile of any bounds/position-related data so that it can be reused in a new location.
clear: function()
Reposition the tile.
moveTo: function ( bounds, position, redraw )
Creates the imgDiv property on the tile.
initImgDiv: function()
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.
checkImgURL: function ()
OpenLayers JavaScript Mapping Library |
+
+OpenLayers. Tile.WFSInstances 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. Summary
OpenLayers. Tile.WFSConstructor for a new OpenLayers.Tile.WFS instance. Parameters
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
nullify references to prevent circular references and memory leaks
destroy: function()
Clear the tile of any bounds/position-related data so that it can be reused in a new location.
clear: function()
Check that a tile should be drawn, and load features for it.
draw:function()
get the full request string from the ds and the tile params and call the AJAX loadURL().
loadFeaturesForRegion:function( success, failure )
Called on return from request succcess.
requestSuccess:function( request )
Construct new feature via layer featureClass constructor, and add to this.features.
addResults: function( results )
Iterate through and call destroy() on each feature, removing it from the local array
destroyAllFeatures: function()