We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1af43ff commit 6eb0bb6Copy full SHA for 6eb0bb6
1 file changed
web/client/plugins/Map.jsx
@@ -270,12 +270,14 @@ class MapPlugin extends React.Component {
270
271
render() {
272
if (this.props.map) {
273
+ const {mapOptions = {}} = this.props.map;
274
+
275
return (
276
<plugins.Map id="map"
277
{...this.props.options}
- mapOptions={this.getMapOptions()}
278
projectionDefs={this.props.projectionDefs}
279
{...this.props.map}
280
+ mapOptions={assign({}, mapOptions, this.getMapOptions())}
281
zoomControl={this.props.zoomControl}>
282
{this.renderLayers()}
283
{this.renderSupportTools()}
0 commit comments