question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

initial mapTypeId set to "satellite" is ignored

See original GitHub issue

image

if 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
danielrmartinscommented, Mar 29, 2021

This works for me:

  • <GoogleMap options={{ mapTypeId: 'satellite' }} >
1reaction
kenjdavidsoncommented, Mar 29, 2021

@capaj that’s a great avatar and comment!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found