tristen / chart-to-map Goto Github PK
View Code? Open in Web Editor NEWExperimental utility for matching SVG elements to Mapbox GL style templates.
License: Other
Experimental utility for matching SVG elements to Mapbox GL style templates.
License: Other
To keep both the map style and design doc in sync it should be possible to map any changes from style.json
back to .xd
document.
.xd
packagestyle.json
update that object with any changes.I'm structuring the data in a way that should support zoom stops well. I just need to drop stuff like
https://github.com/mapbox/xd-to-style/blob/c144e32f5a92a2fcc6ef991ad0fa8e32d72cbaaf/lib/artboard-converter.js#L61
And build a zoom value from all results beyond first
.
Easy fix. I am assuming stuff coming in is fixed integers.
If filenames line up, it should be possible to do this. There's also a resources directory in xd. We could conceivably upload patterns found from it ๐ต
Converting zoom stops to expressions would ideally be the first task as its the most straightforward.
Note: For other expressions, we will probably need to extend out layer naming convention to support property names and the kinds of expressions they are ie: layer-name__{property}__{zoom}
If we wanted to visualize where a layer starts and ends on a chart we could use those values to derive the extents of a source-layer.
Like the .xd
format Sketch files are zipped with their style object contents represented as JSON data.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.