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

UTFGridWMS support #1076

Closed
wants to merge 18 commits into from
Closed

UTFGridWMS support #1076

wants to merge 18 commits into from

Conversation

fdesj
Copy link

@fdesj fdesj commented Aug 9, 2013

This is a patch for a UTFGrid using a WMS service. This is in prediction for MapServer UTFGrid.

@@ -229,7 +229,7 @@ OpenLayers.Control.UTFGrid = OpenLayers.Class(OpenLayers.Control, {
var layer;
for (var i=candidates.length-1; i>=0; --i) {
layer = candidates[i];
if (layer instanceof OpenLayers.Layer.UTFGrid ) {
if (layer instanceof OpenLayers.Layer.UTFGrid || OpenLayers.Layer.UTFGridWMS) {
Copy link
Member

Choose a reason for hiding this comment

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

I think this isn't doing what you expect it to be doing.

I'd go with

if (layer instanceof OpenLayers.Layer.UTFGrid ||
    layer instanceof OpenLayers.Layer.UTFGridWMS) {
// ...
}

@marcjansen
Copy link
Member

Hey @fdesj, would you be able to add tests and adress my other comments? I think that the new layer-class has a lot of duplicated code which you do not actually need.

I have only shortly scanned the code so far, I wouldn't call this a full-blown review.

fblackburn pushed a commit to fblackburn/openlayers that referenced this pull request Apr 10, 2014
*Remove some code repetition and fix some error.
*Modifications are based on the comment from the pull request openlayers#1076
mbarto added a commit to mbarto/openlayers that referenced this pull request Jan 13, 2016
@ahocevar
Copy link
Member

Superseded by #1486.

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.

3 participants