initial mapTypeId set to "satellite" is ignored
See original GitHub issueif I change it when component it mounted, it switches to satellite correctly, but when I set it before map component mounts it is ignored and I see the roadmap instead.
Expected result:
I see satellite
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Map Types | Maps JavaScript API - Google Developers
This document discusses the types of maps you can display using the Maps JavaScript API. The API uses a MapType object to hold...
Read more >Changing Google maps 'Satellite label to something else in v3 ...
It is [currently] possible to change the label with map.mapTypes.satellite.name='NewName'; map.setOptions({'mapTypeControl':true});.
Read more >lightning-map Satellite default - Salesforce Stack Exchange
Using Google Map's SDK you can specify the mapTypeId attribute, as in: ... mapTypeId: 'satellite' }; var map = new google.maps.Map(document.
Read more >Changing the position of controls makes them disappear #6
If I set the position in either zoomControlOptions or mapTypeControlOptions, which is passed to the GoogleMap component in through the ...
Read more >React Google Maps Api Style Guide
The initial Map mapTypeId. Defaults to ROADMAP. onBoundsChanged, (() => void) | undefined. This event is fired when the viewport bounds have changed....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This works for me:
<GoogleMap options={{ mapTypeId: 'satellite' }} >
@capaj that’s a great avatar and comment!