[OpenLayers-Users] Tile stitching with a server-side program
Robert Buckley
robertdbuckley at yahoo.com
Thu Jan 26 03:09:20 EST 2012
Hi,
I am trying to sort out a satisfactory printing mechanism for slippy maps in openlayers.
My set up is Ubuntu 10.04 / Tomcat6 / Geoserver2.1.2 / Openlayers / GeoExt
My Baselayers are either TMS WTMS or GeoWebCache.....these cannot be printed with the mapfish print module ( only wms)
So...I am looking at the "Tile stitching using a server-side program" - script found here
http://trac.osgeo.org/openlayers/wiki/Printing
Has anyone managed to get working? I am having a problem understand the Javascript..
My alert below is always empty...I tried putting in the name of the layer, but this also returns null!
for (layername in map.layers) {
// if the layer isn't visible at this range, or is turned off, skip it
var layer = map.layers[layername];
alert(layer);
if (!layer.getVisibility()) continue;
if (!layer.calculateInRange()) continue;
If anyone has done something similar, please report!
yours,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/818aa2dc/attachment.html
More information about the Users
mailing list