Skip to content

Converts JSON Google Maps styles to query string parameters that can be used on static maps

License

Notifications You must be signed in to change notification settings

acha5066/Google-Maps-JSON-Style-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This tool will convert JSON styles intended for the Google MAPS Javascript API into a query string for use with Google static maps API.

Usage

All you have to do is pass your JSON styles into the get_static_styles function and it will return the converted string. You could for example, create a html page, include the converter.js file and log the output of the return statement in order to get the string.

Known issues

There is an issue with colors, hue and saturation with static maps. Check it out here

Acknowledgments

This code comes from this stackoverflow answer. All I did was add unit tests :)

License

MIT. Do you want you want with it I don't care.

About

Converts JSON Google Maps styles to query string parameters that can be used on static maps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published