mirror of
https://github.com/maputnik/editor.git
synced 2026-07-20 04:47:39 +00:00
Nicer text input
This commit is contained in:
+6
-3
@@ -1,5 +1,6 @@
|
||||
import React from 'react'
|
||||
import ReactMapboxGl from "react-mapbox-gl"
|
||||
import ReactMapboxGl, { ZoomControl } from "react-mapbox-gl"
|
||||
|
||||
import theme from './theme.js'
|
||||
|
||||
export class Map extends React.Component {
|
||||
@@ -10,8 +11,10 @@ export class Map extends React.Component {
|
||||
render() {
|
||||
if (this.props.mapStyle) {
|
||||
return <ReactMapboxGl
|
||||
style={this.props.mapStyle}
|
||||
accessToken="pk.eyJ1IjoibW9yZ2Vua2FmZmVlIiwiYSI6IjIzcmN0NlkifQ.0LRTNgCc-envt9d5MzR75w"/>
|
||||
style={this.props.mapStyle}
|
||||
accessToken="pk.eyJ1IjoibW9yZ2Vua2FmZmVlIiwiYSI6IjIzcmN0NlkifQ.0LRTNgCc-envt9d5MzR75w">
|
||||
<ZoomControl/>
|
||||
</ReactMapboxGl>
|
||||
}
|
||||
return <div style={{backgroundColor: theme.colors.black}}/>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user