Skip to content
0:00 / 0:00

#googlemapsapi#jsonstyling

Google Maps Platform v3 JSON Style Import

Welldrake Pty Ltd

10 subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • Linked in the descriptionalex-wilson-gwf/gmapsjson
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

2.5K views2 years ago1 recommendation

Web developmentHTTP, REST and GraphQL

A tutorial demonstrating a workaround to import JSON styles into the Google Maps Platform style editor using Chrome DevTools and cURL.

This is in response to the issue of not being bale to import JSON styles in the latest version of Google Maps Platform, documented here: issuetracker.google.com/issues/323011272#comment21 The JSON styling files are available on github: github.com/alex-wilson-gwf/gmapsjson/tree/main/v3 A follow up video goes through how to convert an old JSON (e.g. from snazzymaps.com) to the new format using a conversion spreadsheet: youtube.com/watch?v=dfJejEby62c&t=44s

Why it's here

1 person recommends this

What people say. Recommended as a workaround for importing JSON styles into the Google Maps style editor.

Alex Wilsonon Stack Overflow • Recommends

On “How can I import a JSON into the google maps style editor?”

I’ve documented a hacky workaround here: link to this video In short: make a single edit via the UI and submit it use chrome dev tools to capture the cURL command of this request modify the cURL command to include template styling from https://github.com/alex-wilson-gwf/gmapsjson/tree/main/v3 send the modified cURL command using postman.co