Some more openlayers improvments as well as initial work for projection support

This commit is contained in:
orangemug
2019-05-29 17:37:55 +01:00
parent c1cab38c7a
commit efe42021f1
9 changed files with 267 additions and 26 deletions

View File

@@ -109,6 +109,21 @@ class SettingsModal extends React.Component {
onChange={this.changeMetadataProperty.bind(this, 'maputnik:renderer')}
/>
</InputBlock>
{this.props.openlayersDebugOptions.enableProjections &&
<InputBlock label={"Projection (experimental)"} doc={"Projection of the data"}>
<SelectInput {...inputProps}
data-wd-key="modal-settings.maputnik:projection"
options={[
['EPSG:3857', '[EPSG:3857] Web Mercator'],
['EPSG:3031', '[EPSG:3031] Antarctic Polar Stereographic (experimental)'],
]}
value={metadata['maputnik:projection'] || 'EPSG:3857'}
onChange={this.changeMetadataProperty.bind(this, 'maputnik:projection')}
/>
</InputBlock>
}
</div>
</Modal>
}