Is it possible to import the json files from mapbox studio (the custom map one) to Google maps?

788 Views Asked by At

I am trying to import the json file to Google maps from mapbox studio but nothing changes, the colors are not changing at all. Do you know if I did something wrong?

Part 1 : Getting the .json file

If you go to mapbox, you can customize the style of you map in the studio. Once it's done, you can click on the "share" button on top right corner of the page.

This open a modal, on this modal, on the left column, you have 5 tabs under Developer Resources.

With the Web tab selected (doesn't matter), you can download a .zip file, which contains a json file.

This is the styling code for the map.

Part 2 : Trying to set this style to a google map

On the Google Maps Platform, on the left side menu, the last link of the list is Map Styles. When you click on this link, you can create a new map style.

And then you can choose To create your own style with google maps, or Import Json.

So I clicked on import json, and paste the whole json file inside, but the map preview don't look like my custom map.

Maybe mapbox and google maps json styling file are not compatible? Maybe I do something wrong.

1

There are 1 best solutions below

0
On

If you would have checked the JSON style specification from Google Maps and the JSON style specification from Mapbox you would have seen they have only in common the word JSON, so the answer is NO, each one have their own definition for styling their maps.