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

Switch to WMS layer in print #2656

Merged
merged 1 commit into from
May 30, 2017
Merged

Switch to WMS layer in print #2656

merged 1 commit into from
May 30, 2017

Conversation

fredj
Copy link
Member

@fredj fredj commented May 26, 2017

fixes #2463

var metadata = layer.get('metadata');
if (metadata) {
var server_name = metadata.ogcServer;
var layer_names = metadata.layers || metadata.printLayers;
Copy link
Member

Choose a reason for hiding this comment

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

layers and print layers should be inverted :-)

Copy link
Member Author

Choose a reason for hiding this comment

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

done

var layer_names = metadata.layers || metadata.printLayers;
if (server_name && layer_names) {
var server = this.ogcServers_[server_name];
goog.asserts.assert(server);
Copy link
Member

Choose a reason for hiding this comment

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

In this case we should log an error with production code, the server name isn't verified before ...

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Copy link
Member

@sbrunner sbrunner left a comment

Choose a reason for hiding this comment

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

Thanks :-)

@fredj fredj merged commit 227ed1f into 2.1 May 30, 2017
@fredj fredj deleted the wms_print branch May 30, 2017 06:55
@sbrunner sbrunner added this to the Older milestone Aug 23, 2019
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