visgl / react-google-maps

React components and hooks for the Google Maps JavaScript API
https://visgl.github.io/react-google-maps/
MIT License
1.31k stars 111 forks source link

[Feat] Floor Controls | AdvancedMarkers & Building Floors #574

Open hank0cean opened 1 month ago

hank0cean commented 1 month ago

Target Use Case

Creating/Viewing custom Advanced Markers spread across a multi-floor buildings like SFO Airport, San Francisco Centre Mall, etc.

Proposal

Currently using { lat, lng } to place markers at specific coordinates but do not have access to Floor controls.

Adding the ability to access Floor Controls (like how zoom, street view, etc. currently exist) would be very useful and potentially as an added feature to the AdvancedMarker an optional floor value.

It looks like the Floor Controls feature exists on iOS & Android so adding this accessibility to Web only seems natural.

usefulthink commented 1 month ago

I would love to see that as well, but as of now, there is no way to control the indoor-maps in the Maps JavaScript API.

Looking at the map, it seems that it will already correctly show the ground-level of a building that has indoor-maps instead of the outer shape of the building, but there is no way to control the level.

The issue for that is 12 years old by now and has >130 upvotes (which is a lot): https://issuetracker.google.com/issues/35819848