Skip to content

Convert vector tile styles from Mapbox GL to QGIS (using the new vector tile layer)

License

Notifications You must be signed in to change notification settings

wonder-sk/mapbox2qgis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

mapbox2qgis

Convert vector tile styles from Mapbox GL to QGIS (using the new vector tile layer).

This is still in the very early stages and supporting just a subset of styling. More to come later...

How to use: open QGIS, open Python console in QGIS and load the conversion script (make sure to use the correct path):

exec(open('/path/to/mapbox2qgis/mapbox2qgis.py'.encode('utf-8')).read())

Then you can select a vector tile layer and run the conversion:

renderer, labeling = parse_json('/path/to/my/style.json')
iface.activeLayer().setRenderer(renderer)
iface.activeLayer().setLabeling(labeling)

About

Convert vector tile styles from Mapbox GL to QGIS (using the new vector tile layer)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages