I can't get the map to be interactive. Zoom and pan do not work. It just shows the map and the marker #1842
-
|
Hi, I am using react-geocode 0.2.3 along with react-map-gl 7.0.10, my problem is the map is not interactive, I cannot zoom in/out and the pan is not functional. Any help would be greatly appreciated, here is the code of the Component: `import Image from "next/image" export default function EventMap({ evt }) { }); Geocode.setApiKey(process.env.NEXT_PUBLIC_GOOGLE_MAP_API_KEY); if (loading) return false; console.log(lat, lng) ); ` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You are using react-map-gl v6 code with v7. Read https://visgl.github.io/react-map-gl/docs/get-started/state-management |
Beta Was this translation helpful? Give feedback.
You are using react-map-gl v6 code with v7. Read https://visgl.github.io/react-map-gl/docs/get-started/state-management