How to mark as Read Only #507
-
I'd like to show a mini map of a location on a map and I don't want the user to move the map, zoom or anything. Is there a way to mark the map as read only? |
Beta Was this translation helpful? Give feedback.
Answered by
usefulthink
Sep 2, 2024
Replies: 1 comment 1 reply
-
you can set <Map center={...} zoom={...} controlled></Map> But also checkout the Static Maps API, which is quite a bit cheaper and faster: https://developers.google.com/maps/documentation/maps-static/overview |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
textual
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can set
center
andzoom
to define the view and then add thecontrolled
prop. That should disable all user-inputs. SoBut also checkout the Static Maps API, which is quite a bit cheaper and faster: https://developers.google.com/maps/documentation/maps-static/overview