Skip to content

Commit 6eb0bb6

Browse files
committed
fix #2696 map rotation disables correctly
1 parent 1af43ff commit 6eb0bb6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

web/client/plugins/Map.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,14 @@ class MapPlugin extends React.Component {
270270

271271
render() {
272272
if (this.props.map) {
273+
const {mapOptions = {}} = this.props.map;
274+
273275
return (
274276
<plugins.Map id="map"
275277
{...this.props.options}
276-
mapOptions={this.getMapOptions()}
277278
projectionDefs={this.props.projectionDefs}
278279
{...this.props.map}
280+
mapOptions={assign({}, mapOptions, this.getMapOptions())}
279281
zoomControl={this.props.zoomControl}>
280282
{this.renderLayers()}
281283
{this.renderSupportTools()}

0 commit comments

Comments
 (0)