Skip to content

Commit

Permalink
Copy all the properties to the new WMTS layer
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Oct 29, 2019
1 parent af3a8d3 commit 8159130
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contribs/gmf/src/layertree/SyncLayertreeMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,7 @@ SyncLayertreeMap.prototype.createWMTSLayer_ = function(gmfLayerWMTS) {
minResolution,
maxResolution
).then((layer) => {
newLayer.setSource(layer.getSource());
newLayer.set('capabilitiesStyles', layer.get('capabilitiesStyles'));
newLayer.setProperties(layer.getProperties());
});
return newLayer;
};
Expand Down

0 comments on commit 8159130

Please sign in to comment.