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

Fix #1640 added singleTile option to Display Tab #1803

Merged
merged 7 commits into from
May 11, 2017

Conversation

MV88
Copy link
Contributor

@MV88 MV88 commented May 10, 2017

The SingleTile option has been added for leaflet and openlayers and cesium in layer properties.
It has been also fixed the tileprovider and wms proxy for cesium.
Cesium Layer has been updated with correct props.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 78.892% when pulling 4b494f5 on MV88:MV88-iss_1640_singletile_fix into a222a30 on geosolutions-it:master.

@@ -79,6 +79,7 @@ function wmsToLeafletOptions(options) {
transparent: options.transparent !== undefined ? options.transparent : true,
tiled: options.tiled !== undefined ? options.tiled : true,
opacity: opacity,
"zIndex": options.zIndex,
Copy link
Contributor

Choose a reason for hiding this comment

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

remove double quotes

newLayer = L.tileLayer.multipleUrlWMS(urls, newQueryParameters);
}
if ( newParameters.length > 0 ) {
newParameters.forEach( key => newParams[key] = newQueryParameters[key] );
Copy link
Contributor

Choose a reason for hiding this comment

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

convert to map please

@@ -35,9 +35,8 @@ var Layers = {
updateLayer: function(type, layer, newOptions, oldOptions, map) {
var layerCreator = layerTypes[type];
if (layerCreator && layerCreator.update) {
return layerCreator.update(layer, newOptions, oldOptions, map);
return layerCreator.update(newOptions, oldOptions, map);
Copy link
Contributor

Choose a reason for hiding this comment

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

You cannot change the signature of update, other layers (e.g. MarkerLayer) expect a layer as the first parameter

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 78.892% when pulling c343e02 on MV88:MV88-iss_1640_singletile_fix into a222a30 on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.94% when pulling 396707d on MV88:MV88-iss_1640_singletile_fix into a222a30 on geosolutions-it:master.

@mbarto mbarto merged commit 01583b4 into geosolutions-it:master May 11, 2017
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