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

Add Customizable layer origin for ol3 wms Fix #1184 #1186

Merged
merged 2 commits into from
Oct 27, 2016

Conversation

ndufrane
Copy link
Contributor

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,

@simboss simboss added the ready label Oct 21, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 80.926% when pulling 1e3f77e on ndufrane:wms_tilegrid_resolutions into e2ef856 on geosolutions-it:master.

@mbarto mbarto closed this Oct 21, 2016
@mbarto mbarto reopened this Oct 21, 2016
@ndufrane
Copy link
Contributor Author

Travis got some error due to DDOS to Dyn yesterday -> npm ERR! network getaddrinfo ENOTFOUND github.com

@mbarto mbarto closed this Oct 24, 2016
@mbarto mbarto reopened this Oct 24, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 80.833% when pulling 1e3f77e on ndufrane:wms_tilegrid_resolutions into e2ef856 on geosolutions-it:master.

@@ -59,17 +59,21 @@ Layers.registerType('wms', {
})
});
}
const mapSrs = map && map.getView() && map.getView().getProjection() && map.getView().getProjection() && map.getView().getProjection().getCode() || 'EPSG:3857';
Copy link
Contributor

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?

Copy link
Contributor Author

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... :(

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.1%) to 79.665% when pulling 2dca644 on ndufrane:wms_tilegrid_resolutions into e2ef856 on geosolutions-it:master.

@mbarto mbarto merged commit 503c9b7 into geosolutions-it:master Oct 27, 2016
@ndufrane ndufrane deleted the wms_tilegrid_resolutions branch October 28, 2016 07:18
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.

4 participants