🌐
Google
mapstyle.withgoogle.com
Styling Wizard: Google Maps APIs
Customize colors, roads, labels, and more. Then use your custom style in your Google Maps Platform project.
🌐
Snazzy Maps
snazzymaps.com
Snazzy Maps - Free Styles for Google Maps
Snazzy Maps is a repository of different color schemes for Google Maps aimed towards web designers and developers.
🌐
OpenMapTiles
openmaptiles.org › styles
Open-source map styles – OpenMapTiles
Free and open-source styles for your maps. Use public styles with precision cartography.
🌐
Google Cloud Platform
console.cloud.google.com › google › maps-apis › studio › styles
Google Cloud Platform
Google Cloud Platform lets you build, deploy, and scale applications, websites, and services on the same infrastructure as Google.
🌐
EasyMapMaker
easymapmaker.com › features › map-style
Create a map with a custom map style
Create a custom Google Map with a uniq style. Add a custom style or predefined style to your custom map
🌐
Google
developers.google.com › google maps platform › web › maps javascript api › create and use map styles
Create and use map styles | Maps JavaScript API | Google for Developers
A map style is a customizable set of visual elements applied to a map using a map ID, which is referenced in your application code · You can create a map style by starting fresh, duplicating an existing style/version, or importing JSON styling code
🌐
MapTiler
docs.maptiler.com › sdk-js › api › map-styles
Map Styles | JavaScript maps SDK | MapTiler SDK JS | MapTiler
The MapStyle.REFERENCE_MAP_STYLE is an instance of the class ReferenceMapStyle (with a proxy layer).
🌐
Radar
docs.radar.com › tutorials › create-a-custom-map-style
Create a custom map style - Radar
Radar Maps Studio is a tool that allows you to create fully customizable maps for your website or app. With Maps Studio, you can define the look and feel of your map, choosing custom styles, colors, fonts, and more, all without the need for ...
Find elsewhere
🌐
Azuremaps
samples.azuremaps.com › map › map-style-options
Map style options - Azure Maps Web SDK Samples
This sample shows how the different style options of the map affect rendering.
🌐
Google
developers.google.com › google earth engine › map.style
Map.style | Google Earth Engine | Google for Developers
In addition to the standard UI API styles listed in the ui.Panel.style() documentation, the Map supports the following custom style option: · UsageReturnsMap.style()ui.data.ActiveDictionary
🌐
Google Support
support.google.com › maps › thread › 29029243 › how-can-i-import-my-mapstyle-into-my-maps
How can I import my mapstyle into My Maps? - Google Maps Community
Skip to main content · Google Maps Help · Sign in · Google Help · Help Center · Community · Google Maps · Terms of Service · Submit feedback · Send feedback on
🌐
GitHub
github.com › GuruMaps › MapStyle
GitHub - GuruMaps/MapStyle: Map style map for Guru Maps
Map style map for Guru Maps. Contribute to GuruMaps/MapStyle development by creating an account on GitHub.
Starred by 13 users
Forked by 6 users
🌐
Mapcreator
mapcreator.io › home › blog › make an impact with your mapstyle!
Make an impact with your Mapstyle! - Mapcreator
November 27, 2023 - First things first, what is a mapstyle? A mapstyle is a set of customizations made to the base map, to match certain purposes. For example: a broadcasting mapstyle will have bigger fonts than a real estate one; simply for its broadcasting purposes.
🌐
Dribbble
dribbble.com › tags › mapstyle
Mapstyle designs, themes, templates and downloadable graphic elements on Dribbble
Discover 3 Mapstyle designs on Dribbble. Your resource to discover and connect with designers worldwide.
Top answer
1 of 2
5

Thanks for the idea Paul LeBeau! I can suggest an improvement to your process, using the browser dev tools console to help with parsing. I've copied your first 8 steps for ease of the next person. This process seemed to work for me (was able to import the style to another project, and it seems to have the desired styling). Note I am also using Chrome (other browser's dev tools may be different).

  • Go to the Google Maps dashboard map style editor

  • Choose one of their example styles, or import your current map style JSON.dev

  • Make any changes you need.

  • Open the browser dev tools for that window (cmd-shift-J on Chrome on Mac)

  • Switch to the Network tab, and select "Fetch/XHR" (for Chrome - other browsers are similar)

  • You might find the next step easier if you clear the tab (with the button)

  • Click "Save"/"Save and publish" on the map style editor page.

  • Look for a POST request in the dev tools network tab to this URL: https://cloudconsole-pa.clients6.google.com/v3/entityServices/MapsMapsstylingEntityService/schemas/MAPS_MAPSSTYLING_ENTITY_SERVICE_GQL_TRANSPORT

  • NOTE from here onward this is where my process differs from Paul LeBeau

  • Click the Payload tab

  • Expand "Request Payload" one level (if not already expanded)

  • Right-click on the JSON content (starts with "{requestContext:")

  • Choose "Copy value"

  • In the Console window of dev tools, begin an assignment statement (but do NOT yet hit return):

    • origRequest =
  • Paste the value you copied directly on to that assignment statement

  • Add a semi-colon ; and hit return. Now the request payload is in a valid JavaScript variable that you can utilize like any other.

  • To get the "rules" field (as described by @paul-lebeau), without the need to manipulate any escaped quotes, enter this command in the console window:

  • copy(JSON.stringify(JSON.parse(origRequest.variables.clientStyle.draftJsonEncodedStyleSheet).rules,0,2))

    • or publishedJsonEncodedStyleSheet if you clicked publish above

The rules JSON is now in your paste buffer. You can paste it into the editor of your choice if you want to adjust it further, or you can paste it directly into the "Import JSON" text area of the Google Maps Style editor (which in my case worked without need of any adjustment).

Also note that adjustments can be made in that console window too, if you prefer to work with the parsed JSON object. To do that, create the origRequest object as described above, then:

  • rules = JSON.parse(origRequest.variables.clientStyle.draftJsonEncodedStyleSheet).rules;
  • Manipulate the "rules" javascript object as desired, then:
  • copy(JSON.stringify(rules,0,2))
2 of 2
4

I have found a workaround to get the JSON from the style editor.

  • Go to the Google Maps dashboard map style editor

  • Choose one of their eaxmple styles, or import your current map style JSON.dev

  • Make any changes you need.

  • Open the browser dev tools for that window (F12)

  • Switch to the Network tab, and select "Fetch/XHR" (for Chrome - other browsers are similar)

  • You might find the next step easier if you clear the tab (with the button)

  • Click "Save"/"Save and publish" on the map style editor page.

  • Look for a POST request in the dev tools network tab to a URL like this: https://cloudconsole-pa.clients6.google.com/v3/entityServices/MapsMapsstylingEntityService/schemas/MAPS_MAPSSTYLING_ENTITY_SERVICE_GQL_TRANSPORT, and click on it.

  • Copy the request payload from the Response tab, and paste it into a text editor.

  • In this JSON, look for the "rules" property and copy its value out.

This is the map style JSON that you need to style your map.

I had to do a little cleanup. For example I had to find and replace the escaped quote characters (ie. \" to ").

Plus the map style rules didn't look exactly the same in my app as they did in the editor. I'm not sure why. Perhaps the editor has some default rules that are not in the submitted JSON. So you might need to do a little bit of style tweaking.

However, in my case, I just needed a couple of rules from this JSON to finish the styling of my map. There were a couple of features I couldn't seem to get working properly. And being able to copy the relevant rules from the editor JSON solved my problem.

🌐
Mappable
mappable.world › map-style-editor
Map Style Editor — create a customized map for your own app or website — Mappable
Make a personalized interactive map for free. Utilize our simple map maker to tailor the map to your design & product needs.
🌐
Stadia Maps
stadiamaps.com › overview › map styles
Map Styles | Customizable Map Themes | Stadia Maps
Explore Stadia Maps' range of map styles. Customize colors, fonts, and features to create unique and visually stunning map experiences for your applications.