-
Notifications
You must be signed in to change notification settings - Fork 409
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
Add Customizable layer origin for ol3 wms Fix #1184 #1186
Add Customizable layer origin for ol3 wms Fix #1184 #1186
Conversation
Travis got some error due to DDOS to Dyn yesterday -> npm ERR! network getaddrinfo ENOTFOUND github.com |
@@ -59,17 +59,21 @@ Layers.registerType('wms', { | |||
}) | |||
}); | |||
} | |||
const mapSrs = map && map.getView() && map.getView().getProjection() && map.getView().getProjection() && map.getView().getProjection().getCode() || 'EPSG:3857'; |
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.
Could you remove duplicated map.getView().getProjection() check?
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.
Sure ! I'am not too proud of those lines... :(
Hi,
This PR allow the customisation of origin of WMS Layer in OL3. This is related to #1184.
This PR configure also the correct resolutions of the map to the tilegrid instead of default OL3 resolutions.
Regards,