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: Markers (no auto-title, OpenLayers/Layer/Markers.js)
File: MultiMap (OpenLayers/Layer/MultiMap.js) File: MultiMap (OpenLayers/Layer/MultiMap.js)
File: Text (OpenLayers/Layer/Text.js) File: Text (OpenLayers/Layer/Text.js)
File: TileCache (OpenLayers/Layer/TileCache.js)
File: TMS (OpenLayers/Layer/TMS.js) File: TMS (OpenLayers/Layer/TMS.js)
File: Vector (no auto-title, OpenLayers/Layer/Vector.js) File: Vector (no auto-title, OpenLayers/Layer/Vector.js)
File: VirtualEarth (OpenLayers/Layer/VirtualEarth.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: Markers (no auto-title, OpenLayers/Layer/Markers.js)
File: MultiMap (OpenLayers/Layer/MultiMap.js) File: MultiMap (OpenLayers/Layer/MultiMap.js)
File: Text (OpenLayers/Layer/Text.js) File: Text (OpenLayers/Layer/Text.js)
File: TileCache (OpenLayers/Layer/TileCache.js)
File: TMS (OpenLayers/Layer/TMS.js) File: TMS (OpenLayers/Layer/TMS.js)
File: Vector (no auto-title, OpenLayers/Layer/Vector.js) File: Vector (no auto-title, OpenLayers/Layer/Vector.js)
File: VirtualEarth (OpenLayers/Layer/VirtualEarth.js) File: VirtualEarth (OpenLayers/Layer/VirtualEarth.js)

View File

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