Change to pointonsurface (#1641)

Fixes #1640 

This ensures that place and poi points computed from areas result in a point node that is actually inside the area that it's derived from.  Unusual shaped areas (like a banana shape, for example) may produce points that aren't actually contained.
This commit is contained in:
Brian Sperlongano
2024-02-29 08:39:13 -05:00
committed by GitHub
parent 9f891b625a
commit d6fd5ef7cb
3 changed files with 38 additions and 26 deletions

View File

@@ -28,7 +28,10 @@
"image",
[
"match",
["get", "subclass"],
[
"get",
"subclass"
],
"chocolate",
"confectionery",
"wine",
@@ -39,7 +42,10 @@
"perfumery",
"wholesale",
"trade",
["get", "subclass"]
[
"get",
"subclass"
]
]
],
[
@@ -118,10 +124,16 @@
},
"icon-image": [
"match",
["get", "subclass"],
[
"get",
"subclass"
],
"chocolate",
"confectionery",
["get", "subclass"]
[
"get",
"subclass"
]
],
"text-field": "{name:latin}\n{name:nonlatin}",
"visibility": "visible",