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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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>}
|
||||
@@ -153,7 +158,7 @@ OpenLayers.Layer.TileCache.prototype =
|
||||
/**
|
||||
* Method: setMap
|
||||
* When the layer is added to a map, then we can fetch our origin
|
||||
* (if we don't have one.)
|
||||
* (if we don't have one.)
|
||||
*
|
||||
* Parameters:
|
||||
* map - {<OpenLayers.Map>}
|
||||
|
||||
Reference in New Issue
Block a user