Inspection map is now always aware of current layer

This commit is contained in:
Lukas Martinelli
2016-12-29 16:54:58 +01:00
parent e36c233b49
commit e41e1eb2f1
3 changed files with 66 additions and 21 deletions

View File

@@ -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} />
}