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

Support for "Stateless GetFeatureInfo" #2582

Merged
merged 5 commits into from Aug 21, 2014
Merged

Support for "Stateless GetFeatureInfo" #2582

merged 5 commits into from Aug 21, 2014

Conversation

elemoine
Copy link
Member

This implements the "stateless GetFeatureInfo" approach as discussed in #2117.

With this patch getGetFeatureInfoUrl returns a URL even though there's no rendered layer for the WMS source. So it's now possible to display an OSM layer and use a non-rendered WMS source (with no corresponding layer) just for GetFeatureInfo.

Can be tested on http://erilem.net/ol3/wmsgfi/examples/getfeatureinfo-image.html and http://erilem.net/ol3/wmsgfi/examples/getfeatureinfo-tile.html. I'm particularly interested in tests in devices with pixel ratios greater than 1.

Closes #2117.

Please test and review.

@tonio
Copy link
Member

tonio commented Aug 21, 2014

Tested on desktop & mobile, with ≠ pixelRatio and with rotation, looks like it works great.

@fredj
Copy link
Member

fredj commented Aug 21, 2014

Same here on a nexus 5 (pixel ratio of 3)

@elemoine
Copy link
Member Author

Thanks! Please tell me if you have any comments on the code.

@elemoine elemoine added this to the v3.0.0 milestone Aug 21, 2014
elemoine pushed a commit that referenced this pull request Aug 21, 2014
Support for "Stateless GetFeatureInfo"
@elemoine elemoine merged commit 58a7747 into openlayers:master Aug 21, 2014
@elemoine elemoine deleted the wmsgfi branch August 21, 2014 16:07
@ahocevar
Copy link
Member

ahocevar commented Sep 4, 2014

A late post-merge +1 and Thank You for this!

@elemoine
Copy link
Member Author

elemoine commented Sep 4, 2014

Thanks. Adding that capability actually simplified and sanitized the code significantly. It's rarely the case, so worth mentioning :-)

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.

GetFeatureInfo requests only work if layer added to map
4 participants