aviklai / react-leaflet-google-layer

Google layer for React-Leaflet using leaflet.gridlayer.googlemutant, implemented with typescript
MIT License
48 stars 8 forks source link

Is it possible to make places of interest clickable? #36

Open odysseas12 opened 2 years ago

odysseas12 commented 2 years ago

Is there an option I missed or is this just not possible?

Thanks.

aviklai commented 2 years ago

@odysseas12 Hi,

You are correct - there is no option to add places in Leaflet.GridLayer.GoogleMutant (which this library uses to load google maps into leaflet). You can open an issue for them here: https://gitlab.com/IvanSanchez/Leaflet.GridLayer.GoogleMutant

Or use the underlying map that is initialized during the initialization process - it should look like this: https://codesandbox.io/s/basic-usage-with-react-leaflet-v3-forked-hks9tw