Removing the explicit maxResolution from the TileCache layer. We now depend on resolutions being properly set on the map or directly on the layer. r=crschmidt (closes #1212).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5525 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -31,7 +31,7 @@ OpenLayers.Layer.TileCache = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
||||
* bottom left of the maxExtent.
|
||||
*/
|
||||
tileOrigin: null,
|
||||
|
||||
|
||||
/**
|
||||
* APIProperty: format
|
||||
* {String} Mime type of the images returned. Default is image/png.
|
||||
@@ -48,10 +48,13 @@ OpenLayers.Layer.TileCache = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
||||
* your tilecache script!)
|
||||
* layername - {String} Layer name as defined in the TileCache
|
||||
* configuration
|
||||
* options - {Object} Hashtable of extra options to tag onto the layer
|
||||
* options - {Object} Optional object with properties to be set on the
|
||||
* layer. Note that you should speficy your resolutions to match
|
||||
* your TileCache configuration. This can be done by setting
|
||||
* the resolutions array directly (here or on the map), by setting
|
||||
* maxResolution and numZoomLevels, or by using scale based properties.
|
||||
*/
|
||||
initialize: function(name, url, layername, options) {
|
||||
options = OpenLayers.Util.extend({maxResolution: 180/256}, options);
|
||||
this.layername = layername;
|
||||
OpenLayers.Layer.Grid.prototype.initialize.apply(this,
|
||||
[name, url, {}, options]);
|
||||
|
||||
Reference in New Issue
Block a user