Disable/enable Map interaction #2145
-
Hello! I am using react-map-gl in a multi-step form. Let's say the map is step 3. I tried changing dynamically the option
The props change effectively (I can see them changing in dev tools) but the map remains interactive. Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
See documentation about
This is because the underlying Map class does not offer any API for these options to be changed. You can turn off the input handlers to disable interaction. |
Beta Was this translation helpful? Give feedback.
See documentation about
interactive
:This is because the underlying Map class does not offer any API for these options to be changed.
You can turn off the input handlers to disable interaction.