-
Notifications
You must be signed in to change notification settings - Fork 769
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
UTFGridWMS support #1076
Conversation
@@ -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) { |
There was a problem hiding this comment.
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) {
// ...
}
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. |
*Remove some code repetition and fix some error. *Modifications are based on the comment from the pull request openlayers#1076
Superseded by #1486. |
This is a patch for a UTFGrid using a WMS service. This is in prediction for MapServer UTFGrid.