KaMap needs to reimplement initTiles because it uses 0-based indexing instead of lower-left corner indexing, which means that we need to have the tile.draw method also modified here to use this.alpha, and also add the options hash as a param. We should probably move resolution/units into the options param too?
git-svn-id: http://svn.openlayers.org/trunk/openlayers@842 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -24,11 +24,11 @@ OpenLayers.Layer.KaMap.prototype =
|
||||
|
||||
// this.cellSize = newScale/(oMap.resolution * inchesPerUnit[oMap.units]);
|
||||
// kaMap.prototype.geoToPix = function( gX, gY ) { var pX = gX / this.cellSize; var pY = -1 * gY / this.cellSize; }
|
||||
initialize: function(name, url, params, units, resolution) {
|
||||
initialize: function(name, url, params, units, resolution, options) {
|
||||
var newArguments = new Array();
|
||||
if (units) this.units = units;
|
||||
if (resolution) this.resolution = resolution;
|
||||
newArguments.push(name, url, params);
|
||||
newArguments.push(name, url, params, options);
|
||||
OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);
|
||||
this.params = (params ? params : {});
|
||||
if (arguments.length > 0 && params) {
|
||||
@@ -106,7 +106,7 @@ OpenLayers.Layer.KaMap.prototype =
|
||||
new OpenLayers.Pixel(tileoffsetx - parseInt(this.map.layerContainerDiv.style.left),
|
||||
tileoffsety - parseInt(this.map.layerContainerDiv.style.top))
|
||||
);
|
||||
tile.draw((this.params.TRANSPARENT == 'true'));
|
||||
tile.draw((this.alpha));
|
||||
row.append(tile);
|
||||
|
||||
tileoffsetlon += tilelon;
|
||||
|
||||
Reference in New Issue
Block a user