Options for parameterization?
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 49/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C++
- Star
- 318
- Fork
- 200
- Merge trung bình
- 3 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 47
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của openstreetmap/mod_tile
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
openstreetmap/mod_tile#292 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
openstreetmap/mod_tile#477 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
openstreetmap/mod_tile#466 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
openstreetmap/mod_tile#462 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
openstreetmap/mod_tile#447 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của openstreetmap/mod_tile
Issue tương tự
-
bug javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement third-party
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pocoproject/poco#5656 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Qiskit/qiskit-aer#2525 ·
Maintainer thường phản hồi trong vòng 1 ngày