mapbox gl localization icon to configure the plug spritezero-cli

installation

cnpm install -g @mapbox/spritezero
cnpm install -g @mapbox/spritezero-cli

use

The ready .svg format picture on the D:/svgfolder for the output pathX:/base/mapbox/sprite/sprite

# 图标转换
spritezero X:/base/mapbox/sprite/sprite D:/svg

Note that the official website said the demand for node.js version

1481033-4fbde24db456b05a.png
image.png

Roughly meaning, if spritezero-cli the time when running on Windows, you must check its dependencies node-mapnik supported versions of node.js, V8 version is node.js support, V9 and above no longer supported.

node-mapnikThe depands

1481033-fad28d7cd7842b39.png
image.png

Guess you like

Origin blog.csdn.net/weixin_34391854/article/details/90996599