Hello,
I have two tile caches. The first has a the resolutions:
2187, 729, 243, 81, 48.6, 27, 16.2, 9, 5.4, 3, 1.8, 1, 0.6
Which I add to the OpenLayer.map as:
resolutions: [ 2187, 729, 243, 81, 48.6, 27, 16.2, 9, 5.4, 3, 1.8, 1, 0.6 ]
the second tile cache has the resolutions:
1312.2, 437.4, 145.8, 48.6, 16.2, 5.4, 1.8, 0.6
I tried to ad this cache by using the serverResolutions: [ 1312.2,
437.4, 145.8, 48.6, 16.2, 5.4, 1.8, 0.6 ] in the layer, but it doesn't work.
Here is my code:
==============
map = new OpenLayers.Map("map"
{ maxExtent: new OpenLayers.Bounds(0,0,405000,810000),
tileSize: new OpenLayers.Size(250,250),
resolutions: [ 2187, 729, 243, 81, 48.6, 27, 16.2, 9, 5.4, 3,
1.8, 1, 0.6 ],
units: 'm',
controls: [new OpenLayers.Control.MouseDefaults(),
new OpenLayers.Control.MousePosition({formatOutput:
myFormat}),
new OpenLayers.Control.PanZoomBar()],
displayProjection: new OpenLayers.Projection("EPSG:28992"),
projection: new OpenLayers.Projection("EPSG:28992")
});
var layer = new OpenLayers.Layer.TMS("cartomap",
[ "http://localhost/png-tiles/" ],
{ type:'png',
getURL: get_osm_url,buffer:0,
transitionEffect: 'resize',
projection:new OpenLayers.Projection("EPSG:28992")
});
map.addLayer(layer);
var airial= new OpenLayers.Layer.TMS("Arialmap",
[ "http://cedric.han-dataport.nl/air-tiles/" ],
{ type:'jpg',
serverResolution: [ 1312.2, 437.4, 145.8, 48.6, 16.2, 5.4,
1.8, 0.6 ],
getURL: get_osm_url,buffer:0,
transitionEffect: 'resize',
projection:new OpenLayers.Projection("EPSG:28992")
});
map.addLayer(airial);
==============
What am I doing wrong?
Thanks for your advice.
Peter.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users