Villages with population ≥ 2000 get a higher min_zoom than smaller villages

Đang mở Phù hợp với người mới
#648 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
data-visualization

Hướng nghiên cứu

Bắt đầu với các quy tắc làng trong Places.java, nơi issue hiển thị các ngưỡng minzoom cho dân số 2000. So sánh các quy tắc đó với những quy tắc tương ứng cho isolated_dwelling, farm và allotments. Điều chỉnh các ngưỡng để những địa điểm lớn hơn không bị gán mức thu phóng tối thiểu muộn hơn, sau đó kiểm tra các quy tắc thu phóng bị ảnh hưởng bằng ví dụ 't Loo và Oldebroek ở mức thu phóng 10.3.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Places with a population under 2000 are shown at a wider zoom level than larger towns. Concrete example is below. 't Loo (pop: 1255) is shown at this zoom level, but Oldebroek (6085) is not.

In Places.java, the zoomsIndex rules give larger places a later minimum zoom than smaller places of the same kind:

rule(with("pm:kind", "locality"), with("pm:kindDetail", "village"), use("pm:kindRank", 3), use("pm:minzoom", 10)),
rule(with("pm:kind", "locality"), with("pm:kindDetail", "village"), atLeast("pm:population", 2000),
  use("pm:minzoom", 11)),
rule(with("pm:kind", "locality"), with("pm:kindDetail", "hamlet"), use("pm:kindRank", 5), use("pm:minzoom", 11)),
rule(with("pm:kind", "locality"), with("pm:kindDetail", "hamlet"), atLeast("pm:population", 200),
  use("pm:minzoom", 12)),

The same pattern applies to isolated_dwelling, farm and allotments.

Location
https://maps.protomaps.com/#flavorName=light&lang=en&map=10.3/52.445/5.9

Screenshots
image

Required information

  • Browser: any
  • Renderer version: any
  • Tileset version and source: latest (checked in 20261127)
  • Style JSON or NPM version: any
Ngôn ngữ chính
Java
Star
779
Fork
111
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của protomaps/basemaps

Tất cả issue của protomaps/basemaps

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.