-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Create new loader if view projection changes #15165
Conversation
📦 Preview the website for this branch here: https://deploy-preview-15165--ol-site.netlify.app/. |
c0ce56f
to
52a68c1
Compare
@@ -141,8 +147,9 @@ class ImageArcGISRest extends ImageSource { | |||
if (this.url_ === undefined) { | |||
return null; | |||
} | |||
if (!this.loader) { | |||
if (!this.loader || this.loaderProjection_ !== projection) { |
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.
The equivalent()
function should be used here
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.
The code replicates the behavior before version 8 - if the view projection was EPSG:3857 the image was requested for CRS EPSG:3857, if the view projection was changed to EPSG:900913 the image was requested for CRS EPSG:900913. Ditto for EPSG:4326/CRS:84, etc.
@@ -141,8 +147,9 @@ class ImageMapGuide extends ImageSource { | |||
if (this.url_ === undefined) { | |||
return null; | |||
} | |||
if (!this.loader) { | |||
if (!this.loader || this.loaderProjection_ !== projection) { |
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.
Same
@@ -195,8 +201,9 @@ class ImageWMS extends ImageSource { | |||
if (this.url_ === undefined) { | |||
return null; | |||
} | |||
if (!this.loader) { | |||
if (!this.loader || this.loaderProjection_ !== projection) { |
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.
Same
Obviously a test would be good to avoid future regressions on this. |
Thanks, @mike-000 |
Thanks you very much guys ❤️ |
Fixes #15161