this.container = x}
- style={{
- width: "100%",
- height: "100%",
- backgroundColor: '#fff',
- ...this.props.style,
- }}>
+ return
+
this.popupContainer = x}
+ style={{background: "black"}}
+ className="maputnik-popup"
+ >
+
+
+
+
+ Zoom level: {this.state.zoom}
+
+ {this.props.debugToolbox &&
+
+
+
+ {renderCoords(this.state.cursor)}
+
+
+
+ {renderCoords(this.state.center)}
+
+
+
+ {this.state.rotation}
+
+
+ }
+
this.container = x}
+ style={{
+ ...this.props.style,
+ }}>
+
}
}
diff --git a/src/components/modals/DebugModal.js b/src/components/modals/DebugModal.js
index bddb48f..6f57d6e 100644
--- a/src/components/modals/DebugModal.js
+++ b/src/components/modals/DebugModal.js
@@ -11,6 +11,7 @@ class DebugModal extends React.Component {
onChangeMaboxGlDebug: PropTypes.func.isRequired,
onOpenToggle: PropTypes.func.isRequired,
mapboxGlDebugOptions: PropTypes.object,
+ openlayersDebugOptions: PropTypes.object,
}
render() {
@@ -33,9 +34,15 @@ class DebugModal extends React.Component {
}
{this.props.renderer === 'ol' &&
-
- No debug options available for the OpenLayers renderer
-
+
}
diff --git a/src/components/modals/SettingsModal.jsx b/src/components/modals/SettingsModal.jsx
index 6d38b2d..80c93b4 100644
--- a/src/components/modals/SettingsModal.jsx
+++ b/src/components/modals/SettingsModal.jsx
@@ -109,6 +109,21 @@ class SettingsModal extends React.Component {
onChange={this.changeMetadataProperty.bind(this, 'maputnik:renderer')}
/>
+
+ {this.props.openlayersDebugOptions.enableProjections &&
+