React-map-gl: Unable to import Marker component

Created on 14 May 2017  路  1Comment  路  Source: visgl/react-map-gl

I'm trying to use the Marker component, but I seem to have trouble importing it. I tried following the example at https://github.com/uber/react-map-gl/blob/1cef144dc14652fb3ef682a84e8b09a4b74da4bf/docs/controls/Marker.md -

import MapGL, { Marker } from 'react-map-gl';

but when I try console.log(Marker), I see that Marker is undefined.

Package versions:

"immutable": "^3.8.1",
"r-dom": "^2.3.2",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-map-gl": "^2.0.2"
question

Most helpful comment

@G2Jose things on master are in active development still. You'll have to install 3.0.0-alpha.10 if you want to try them out. 2.0.2 does not have the Marker component.

>All comments

@G2Jose things on master are in active development still. You'll have to install 3.0.0-alpha.10 if you want to try them out. 2.0.2 does not have the Marker component.

Was this page helpful?
0 / 5 - 0 ratings