地图样式转换器

在Mapbox样式JSON和简化样式模式之间转换

导入和导出

Input Style

Output Style

Mapbox GL Style

Converted style will appear here

Format Reference

GeoJSON: Simple styling properties embedded in features

Mapbox GL: Layer-based styling with paint/layout properties

Leaflet: PathOptions object with color, weight, opacity

OpenLayers: Style objects with stroke and fill components

CSS: CSS custom properties for use in stylesheets

在地图样式格式之间转换。输入/输出格式:Mapbox GL JSON(完整规范)、简化JSON(仅颜色/描边)和基本Leaflet pathOptions。Mapbox GL样式是包含图层、源、精灵和表达式的复杂文档-此工具处理常见转换。

Mapbox GL转简化:为每个图层提取fill-color、line-color、line-width、fill-opacity到扁平结构。适用于将样式移植到非Mapbox渲染器或文档。

简化转Mapbox GL:生成基本样式JSON,图层按提供的颜色设置样式。作为自定义的起点,而不是生产就绪的样式。不转换Mapbox表达式或数据驱动样式。

100% 客户端处理 - 您的数据保持私密,永不离开您的设备