Remove projection code for now.

This commit is contained in:
orangemug
2019-05-29 18:54:32 +01:00
parent 884dc6fa49
commit cb6c6e0d9f
4 changed files with 3 additions and 47 deletions

View File

@@ -483,11 +483,6 @@ export default class App extends React.Component {
return metadata['maputnik:renderer'] || 'mbgljs';
}
getProjectionCode () {
const metadata = this.state.mapStyle.metadata || {};
return this.state.openlayersDebugOptions.enableProjections ? metadata['maputnik:projection'] : "EPSG:3857";
}
mapRenderer() {
const metadata = this.state.mapStyle.metadata || {};
@@ -507,7 +502,6 @@ export default class App extends React.Component {
if(renderer === 'ol') {
mapElement = <OpenLayersMap
{...mapProps}
projectionCode={this.getProjectionCode()}
debugToolbox={this.state.openlayersDebugOptions.debugToolbox}
onLayerSelect={this.onLayerSelect}
/>