react-leaflet-google-layer
react-leaflet-google-layer copied to clipboard
TypeError: react_leaflet_1.withLeaflet is not a function
Here is my code: import { Map } from "react-leaflet"; import ReactLeafletGoogleLayer from "react-leaflet-google-layer"; . . . . . . . . <Map zoom={15} center={[45, 20]}> <ReactLeafletGoogleLayer googleMapsLoaderConf={{ KEY: MY_KEY }} useGoogMapsLoader={true} type="roadmap" /> </Map>
Hi,
I checked the issue and it seems like you are using react-leaflet version 1.x Unfortunately, currently this plugin supports only version 2.x