Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

136
Views
How to style google maps cloud-based with terrain maptype?

What I'm trying to do is to switch to cloud-based styling from the local one. And here I'm facing an issue with styling over terrain map type. It used to look like this (and it worked):

<GoogleMap
                key="GoogleMap"
                mapContainerStyle={mapConfig.containerStyle}
                zoom={mapConfig.zoom}
                center={mapConfig.center}
                options={{
                    styles: options,
                    disableDefaultUI: true,
                    fullscreenControl: true,
                    mapTypeId: 'terrain',
                }}
                onClick={closeActiveTooltip}
            >

Now I've moved style to API, and it look like this (not working - terrain is covering the styles, replacing them by it's default):

        <GoogleMap
                key="GoogleMap"
                mapContainerStyle={mapConfig.containerStyle}
                zoom={mapConfig.zoom}
                center={mapConfig.center}
                options={{
                    // styles: options,
                    // disableDefaultUI: true,
                    // fullscreenControl: true,
                    mapId: ['{myId}', 'terrain'],
                    // mapTypeId: 'terrain',
                }}

                onClick={closeActiveTooltip}
            >

Does anybody know, if it's possible to make it work?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It seems that you will be using cloud-base styling of Maps JavaScript API and would like to implement it in terrain map types. This is currently an intended behavior of the API because cloud-based map styling seems to be not working on map types like terrain and hybrid as posted in the Public Issue Tracker. It also states that this issue is not applicable when using JSON styling(like the first one you are using). You can star the issue on the link to get notifications and updates.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!