mirror of
https://github.com/maputnik/editor.git
synced 2026-01-05 13:00:04 +00:00
Inspection map is now always aware of current layer
This commit is contained in:
@@ -139,7 +139,9 @@ export default class App extends React.Component {
|
||||
if(renderer === 'ol3') {
|
||||
return <OpenLayers3Map {...mapProps} />
|
||||
} else if(renderer === 'inspection') {
|
||||
return <InspectionMap {...mapProps} sources={this.state.sources} />
|
||||
return <InspectionMap {...mapProps}
|
||||
sources={this.state.sources}
|
||||
highlightedLayer={this.state.mapStyle.layers[this.state.selectedLayerIndex]} />
|
||||
} else {
|
||||
return <MapboxGlMap {...mapProps} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user