This article briefly describes the pattern styling of maps. Stripped fill is a way of expressing qualitative and quantitative characteristics of areal phenomena using point or line cartographic signs. This can be shown in MapTiler Cloud maps. The map below shows a possible implementation of the pattern into the map.
What you need for this type of map is your own pattern sprites, which you can create and upload to MapTiler Cloud by following the instructions available here: Custom maps icons (sprites).
After you upload the sprites, open EDIT STYLE mode, then choose the layer which you want to style and scroll down to the code and in the section "paint" add: "fill-pattern": "name of the pattern sprite".
{ "id": "road_area_pattern", "type": "fill", "metadata": {}, "source": "openmaptiles", "source-layer": "transportation", "filter": [ "all", ["==", "$type", "Polygon"], ["!has", "brunnel"], ["!in", "class", "bridge", "pier"] ], "layout": {"visibility": "visible"}, "paint": {"fill-pattern": "pedestrian_polygon"} }
-
where the pedestrian_polygon is the name of the pattern sprite.
You can also set the minimum and maximum zoom levels for the pattern style.
Comments
0 comments
Please sign in to leave a comment.