Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ChristianKreuzberger
Copy link

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
@@ -238,7 +238,9 @@ gxp.plugins.Print = Ext.extend(gxp.plugins.Tool, {
function isPrintable(layer) {
return layer.getVisibility() === true && (
layer instanceof OpenLayers.Layer.WMS ||
layer instanceof OpenLayers.Layer.OSM
layer instanceof OpenLayers.Layer.OSM ||

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
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