Skip to content
项目

hyperknot/openfreemap-styles

在 GitHub 查看

关于

Styles for OpenFreeMap

科学与工程

这些数字如何统计

实测星标增长

24小时
0
7天
+2
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

logo

OpenFreeMap Styles

openfreemap.org

This repo contains the forks of the following styles:

Bright - forked from https://github.com/openmaptiles/osm-bright-gl-style

Liberty - forked from https://github.com/maputnik/osm-liberty

Positron - forked from https://github.com/openmaptiles/positron-gl-style

Dark - forked from https://github.com/openmaptiles/dark-matter-gl-style

Fiord - forked from https://github.com/openmaptiles/fiord-color-gl-style

All the OpenMapTiles styles (Bright, Positron, Dark, Fiord) are abandoned by their upstream project. Liberty is fresh and alive.

The long term goal of this project is to maintain a consistent style across these forks. The plan is to split the styles to building blocks (like road layers, etc.) and build up new styles from these blocks.

Work is being done to make Bright, Liberty and Positron consistent.

Most of the work so far has been done in these areas:

  • all labels and text fields (water, roads, cities)
  • country and administrative borders
  • POIs

Positron, as a special clean looking style, has POIs removed and some highway labels set to show at higher zooms only.

Dark and Fiord is not yet complete. They are unmodified, which means they are exactly as they are on their source repo, with the only difference that fonts are set to Noto Sans.

To access Dark and Fiord, use these URLs (these are not offered on the Quick Start guide for the moment):

https://tiles.openfreemap.org/styles/dark

and

https://tiles.openfreemap.org/styles/fiord

Compare styles app

Part of this repo is a compare styles web app. Currently it works on localhost, but in the future there'll be a web hosted version with a nicer GUI. The point of compare is to compare different styles and different data sources.

Scripts

  • lint_styles.py - removes unnecessary keys, runs gl-style-migrate, does recursive JSON sorting, outputs using gl-style-format and runs gl-style-validate
  • lint.sh - does this for the whole repo, it should be used before every PR
  • copy_text_fields.py - copies all text fields from a source style to a destination style (and removes existing ones)
  • fix_text_fields.py - sets OpenFreeMap specific values in styles

Node version

Most tools used work on recent node versions, but fonts and sprites use tools which require node 12.

Contributing

Contributors welcome!

There is a lot to do here, so any kind of contribution is welcome!

License

The license of this project is MIT. Map data is from OpenStreetMap. The licenses for included projects are listed in LICENSE.md.

探索相关项目

加载中…