Skip to content

Print support for TMS and Vector layers "enabled" in Print.js#152

Open
ChristianKreuzberger wants to merge 1 commit intoplanetfederal:masterfrom
GOMOGI:master
Open

Print support for TMS and Vector layers "enabled" in Print.js#152
ChristianKreuzberger wants to merge 1 commit intoplanetfederal:masterfrom
GOMOGI:master

Conversation

@ChristianKreuzberger
Copy link
Copy Markdown

added TMS and Vector as valid printable layers to plugins/Print.js

at about Line 241:
function isPrintable(layer) {
return layer.getVisibility() === true && (
layer instanceof OpenLayers.Layer.WMS ||
layer instanceof OpenLayers.Layer.OSM ||
layer instanceof OpenLayers.Layer.TMS ||
layer instanceof OpenLayers.Layer.Vector
);
}

Yes, I think those layers should be supported, and I just tried them out with Mapfish-print they work fine!
Geoserver has issues with them because they are not using the latest mapfish-print plugin. It crashes because of this (for TMS):
mapfish/mapfish-print@2cee321

added TMS and Vector as valid printable layers to plugins/Print.js
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's support more layer-types here!

@bartvde
Copy link
Copy Markdown
Contributor

bartvde commented Sep 18, 2012

Thanks for your contribution, but I think this will only make sense when the MF print module in GeoServer is updated, and I know of no such plans unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants