add nd comments and menu config for TileCache layer

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3764 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-07-16 17:57:48 +00:00
parent b5035f9c7c
commit 0093267bce
3 changed files with 17 additions and 10 deletions

View File

@@ -142,6 +142,7 @@ Group: OpenLayers {
File: Markers (no auto-title, OpenLayers/Layer/Markers.js)
File: MultiMap (OpenLayers/Layer/MultiMap.js)
File: Text (OpenLayers/Layer/Text.js)
File: TileCache (OpenLayers/Layer/TileCache.js)
File: TMS (OpenLayers/Layer/TMS.js)
File: Vector (no auto-title, OpenLayers/Layer/Vector.js)
File: VirtualEarth (OpenLayers/Layer/VirtualEarth.js)

View File

@@ -142,6 +142,7 @@ Group: OpenLayers {
File: Markers (no auto-title, OpenLayers/Layer/Markers.js)
File: MultiMap (OpenLayers/Layer/MultiMap.js)
File: Text (OpenLayers/Layer/Text.js)
File: TileCache (OpenLayers/Layer/TileCache.js)
File: TMS (OpenLayers/Layer/TMS.js)
File: Vector (no auto-title, OpenLayers/Layer/Vector.js)
File: VirtualEarth (OpenLayers/Layer/VirtualEarth.js)

View File

@@ -7,6 +7,9 @@
* @requires OpenLayers/Layer/Grid.js
*
* Class: OpenLayers.Layer.TileCache
* A read only TileCache layer. Used to requests tiles cached by TileCache in
* a web accessible cache. Create a new instance with the
* <OpenLayers.Layer.TileCache> constructor.
*
* Inherits from:
* - <OpenLayers.Layer.Grid>
@@ -17,35 +20,38 @@ OpenLayers.Layer.TileCache.prototype =
/**
* APIProperty: reproject
* {Boolean}
* {Boolean} Try to reproject this layer if it is used as an overlay.
* Default is false.
**/
reproject: false,
/**
* APIProperty: isBaseLayer
* {Boolean}
* {Boolean} Treat this layer as a base layer. Default is true.
**/
isBaseLayer: true,
/**
* APIProperty: tileOrigin
* {<OpenLayers.LonLat>}
* {<OpenLayers.LonLat>} Location of the tile lattice origin. Default is
* bottom left of the maxExtent.
**/
tileOrigin: null,
/**
* APIProperty: format
* {String}
* {String} Mime type of the images returned. Default is image/png.
**/
format: 'image/png',
/**
* Constructor: OpenLayers.Layer.TileCache
* Create a new read only TileCache layer.
*
* Parameters:
* name - {String}
* url - {String}
* layername - {String}
* name - {String} Name of the layer displayed in the interface
* url - {String} Location of the web accessible cache
* layername - {String} Layer name as defined in the TileCache configuration
* options - {Object} Hashtable of extra options to tag onto the layer
*/
initialize: function(name, url, layername, options) {
@@ -135,8 +141,7 @@ OpenLayers.Layer.TileCache.prototype =
/**
* Method: addTile
* addTile creates a tile, initializes it, and
* adds it to the layer div.
* Create a tile, initialize it, and add it to the layer div.
*
* Parameters:
* bounds - {<OpenLayers.Bounds>}