react-leaflet-google-layer icon indicating copy to clipboard operation
react-leaflet-google-layer copied to clipboard

TypeError: react_leaflet_1.withLeaflet is not a function

Open NithinKulal opened this issue 6 years ago • 1 comments

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>

NithinKulal avatar May 16 '19 07:05 NithinKulal

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

aviklai avatar May 16 '19 11:05 aviklai