Options for parameterization?
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading the load_map path and how renderd.conf options are parsed; the issue points to Mapnik’s set_active as the layer toggle mechanism. Trace how map configuration reaches rendering, then define the layer names to enable or hide in renderd.conf. Done means those configured layers are activated or disabled after loading the map.
索引モデルが issue の本文から書いたものです。
説明
mod_tile provides quite limited options for parameterization of the map style. I think the parameterize_style option for multi-lingual maps was only recently fixed in #502.
Other mapnik-based renderers, such as nik4 and nik5, provide the option to enable and disable map layers. This is very useful for complex styles, such as OSM Carto, as it allows you to disable unwanted layers like ice sheets (which need a data download), admin boundaries, power lines etc., without having to rebuild the style sheet. It also allows you to effectively have optional "overlays", such as hiking vs cycle trails, and so host multiple maps from the same XML file.
This ought to be relatively straightforward to implement after load_map using set_active. The layers to be hidden / activated would be set in renderd.conf.
This is probably the most useful option for parameterization. mapnik does have the option to pass in variables to directly change style parameters, but the use cases are less obvious compared to just changing the XML or reading parameters from the PostgresQL database.
- 主要言語
- C++
- スター
- 318
- フォーク
- 200
- 平均マージ
- 3日 9時間
- マージ済み PR(30日)
- 47
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openstreetmap/mod_tile のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
openstreetmap/mod_tile#292 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
openstreetmap/mod_tile#477 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
openstreetmap/mod_tile#466 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
openstreetmap/mod_tile#462 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
openstreetmap/mod_tile#447 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
openstreetmap/mod_tile の issue をすべて見る
似ている issue
-
libc++ test-suite
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
llvm/llvm-project#239851 ·
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug :bug:
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
comp-documentation
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
ClickHouse/ClickHouse#129829 ·
メンテナーはふだん 1 日以内に返信
-
feature request Python
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信