-
Notifications
You must be signed in to change notification settings - Fork 0
api.mapy.cz in jsx
Lubomir Andrisek edited this page Nov 21, 2018
·
3 revisions
According to official documentation:
<script>Loader.load()</script>
import SeznamMap from './SeznamMap.jsx'
<SeznamMap center={this.state.myCenter}
style={this.state.myStyle]}
markers={this.state.myInitializationMarkers} />
after calling render() of your parent component you have to add:
require('./SeznamMap.js')
Reason is that seznam map api does not work well inside child component in React.