mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-04-24 04:46:24 +02:00
20 lines
391 B
JavaScript
20 lines
391 B
JavaScript
import React from 'react'
|
|
|
|
export default class Map extends React.Component {
|
|
static propTypes = {
|
|
mapStyle: React.PropTypes.object.isRequired,
|
|
accessToken: React.PropTypes.string,
|
|
}
|
|
|
|
render() {
|
|
return <div
|
|
ref={x => this.container = x}
|
|
style={{
|
|
position: "fixed",
|
|
top: 0,
|
|
bottom: 0,
|
|
height: "100%",
|
|
width: "100%",
|
|
}}></div>
|
|
}
|
|
}
|