onthegomap / planetiler

Flexible tool to build planet-scale vector tilesets from OpenStreetMap data fast
Apache License 2.0
1.34k stars 106 forks source link

Persian language support #366

Open Asncodes-80 opened 1 year ago

Asncodes-80 commented 1 year ago

Hi to PlaneTiler team! I got Iran, Iraq tiles with PlaneTiler docker. Like README guideline. But name of locations like streets, cities and other doesn't show over the vector map. Also I got Monaco and Canada map without any problem, all cities name and streets name was okey. Also I changed font of map that located in cd "(npm root -g)/tileserver-gl-light/node_modules/tileserver-gl-styles/fonts/" by this repository, but doesn't had effect.

This is list of supported language in planetiler. But doesn't support Arabic and Persian Language. I need this scripts! supported_lang

PlaneTiler is the best, but are there any hacky way to fix that in my use case?

msbarry commented 1 year ago

Hello! Thanks for reaching out. Any of those debug logs that say argument: <name>=... can be overridden from the command line using --name=value or an env var by using PLANETILER_NAME=value, so if for example you wanted arabic, persion, and english you could run planetiler with --languages=fa,ar,en.

If you think those should be added to the default set of languages planetiler produces, I suggest making the change in openmaptiles/openmaptiles.yaml first, then planetiler-openmaptiles will get updated from that automatically and it will change the defaults. It looks like the defaults already contain ar but are missing fa ?

Asncodes-80 commented 1 year ago

Doesn't effected.

I downloaded Iran's map with --languages=fa,ar,en flag. But, I haven't cities, streets name and others!! It is only in Persian and Arabic Plane.

What I have been run with docker to download tile

docker run -v "$(pwd)/data":/data openmaptiles/planetiler-openmaptiles:latest --force --download --area=iran --languages=fa,ar,en

image

What I have been run with tileserver-gl-light

tileserver-gl-light --mbtiles output.mbtiles -V
acalcutt commented 1 year ago

@Asncodes-80

In tileserver, what do you see if you click the inspect button image

then hover over the mouse over the streets and city points, like image

Asncodes-80 commented 1 year ago

@Asncodes-80

In tileserver, what do you see if you click the inspect button image

then hover over the mouse over the streets and city points, like image

Thanks to reply. Not true bro. It would be look like Monaco or Canada vec Map. Without clicking over inspect button to see cities and streets name. Tell me, when you clone Monaco or every where except Iran and Iraq or every Arabic and Persian locale, you need to push inspect button? Actually no, by deafult there are all name of cities ans street over your map.

Pls check that and help each other to solve this problem.

It's best of Planetiler.

acalcutt commented 1 year ago

Inspect isn't what you should usually use. I was just asking if the languages you added show when you view it that way to see if they got included.

If they did show under inspect, you may be able to adjust your style for streets and cities to use those languages

msbarry commented 1 year ago

So is the issue that you do see place names and other features updated correctly, but not road names? That might be due to a limitation of openmaptiles that it doesn't includes all the name translations on transportation_name layer. I'm not quite sure why, might be to save on storage size?

We could try getting openmaptiles to fix so it shows up on maptiler and other data providers, or if not then add an extra option to planetiler to emit all road name translations, or maybe just include certain extra ones.

Asncodes-80 commented 1 year ago

@msbarry

In this map, all things is good. How can i have this result in my tileserver gl with my Iran, Iraq and other Arabic Locale map in that?

Thanks from @acalcutt for this reference.

This map had basic style of tileserver-gl-light. Actually tileserver used this default config and style. But why i haven't any cities and streets name? Also check the fonts. Font face of wifidb map is same as Noto Sans Regular pbf.

image

Asncodes-80 commented 1 year ago

@msbarry

What is your solution for this situation? How can we fix that?

Asncodes-80 commented 1 year ago

@acalcutt This is your server? How you configured your tileserver-gl-light that can render and demonstrate all cities, roads and streets name? Can you tell me more about your perform in your tileserver?

acalcutt commented 1 year ago

Yes, wifidb is my site and tileserver-gl setup. most of my styles and setup is here https://github.com/acalcutt/wifidb-tileserver-gl/tree/master/tileserver-gl

On my server I changed my style so that it always shows the english names for places, like https://github.com/acalcutt/wifidb-tileserver-gl/blob/c7b240468e8d20b2e2a829786e8bb32002ad2796/tileserver-gl/styles/WDB_OSM/style.json#L5128

On the roads, I set the text field to be {name:latin} if it exists, or {name:nonlatin} if it does not, like https://github.com/acalcutt/wifidb-tileserver-gl/blob/c7b240468e8d20b2e2a829786e8bb32002ad2796/tileserver-gl/styles/WDB_OSM/style.json#L4608

In my screenshot of inspect above, you can see the road has name:latin and name:nonlatin, so my with my style it should show "Tehran Second Bypass", since in my style name:latin takes priority.

acalcutt commented 1 year ago

I actually looked at my current style and I changed that text field to this now https://github.com/acalcutt/wifidb-tileserver-gl/blob/master/tileserver-gl/styles/WDB_OSM/style.json#L4619

"text-field": ["case",["has","name_en"],["get","name_en"],["case",["has","name:en"],["get","name:en"],["case",["has","name:latin"],["get","name:latin"],["get","name:nonlatin"]]]],

acalcutt commented 1 year ago

For the Noto Sans fonts, I am using the fonts in noto-sans.zip from https://github.com/openmaptiles/fonts/releases . Have you set up a config file and set up your fonts directory?

On the planetiler side, I am using this to generate my full planet mbtiles https://github.com/acalcutt/wdb-map-gen

Asncodes-80 commented 1 year ago

@acalcutt Your comments helped my a lot. Now I have only latin form of cities, roads and streets name. Base on your comment at first I added "{name: latin} {name: nonelatin}" to all text-field keys. After that I added

"text-field": ["case",["has","name_en"],["get","name_en"],["case",["has","name:en"],["get","name:en"],["case",["has","name:latin"],["get","name:latin"],["get","name:nonlatin"]]]],

In both way I had this result. was so far good:

Screenshot 2022-10-17 104641

Screenshot 2022-10-17 105656

Asncodes-80 commented 1 year ago

Also I changed Noto Sans Regular as default font of tileserver to Open Sans Regular. But nonlatin ~ Arabic/Persian scripts doesn't show at this level.

Asncodes-80 commented 1 year ago

@acalcutt

Here is my styles.json config modified with both lotin and nonlotin form of text-fields

style.json ```json { "version":8, "name":"Basic preview", "metadata":{ "openmaptiles:version":"3.x" }, "sources":{ "openmaptiles":{ "type":"vector", "url":"mbtiles://{v3}" } }, "glyphs":"{fontstack}/{range}.pbf", "layers":[ { "id":"background", "paint":{ "background-color":"hsl(47, 26%, 88%)" }, "type":"background" }, { "filter":[ "all", [ "==", "$type", "Polygon" ], [ "in", "class", "residential", "suburb", "neighbourhood" ] ], "id":"landuse-residential", "paint":{ "fill-color":"hsl(47, 13%, 86%)", "fill-opacity":0.7 }, "source":"openmaptiles", "source-layer":"landuse", "type":"fill" }, { "filter":[ "==", "class", "grass" ], "id":"landcover_grass", "paint":{ "fill-color":"hsl(82, 46%, 72%)", "fill-opacity":0.45 }, "source":"openmaptiles", "source-layer":"landcover", "type":"fill" }, { "filter":[ "==", "class", "wood" ], "id":"landcover_wood", "paint":{ "fill-color":"hsl(82, 46%, 72%)", "fill-opacity":{ "base":1, "stops":[ [ 8, 0.6 ], [ 22, 1 ] ] } }, "source":"openmaptiles", "source-layer":"landcover", "type":"fill" }, { "filter":[ "all", [ "==", "$type", "Polygon" ], [ "!=", "intermittent", 1 ] ], "id":"water", "paint":{ "fill-color":"hsl(205, 56%, 73%)" }, "source":"openmaptiles", "source-layer":"water", "type":"fill" }, { "filter":[ "all", [ "==", "$type", "Polygon" ], [ "==", "intermittent", 1 ] ], "id":"water_intermittent", "paint":{ "fill-color":"hsl(205, 56%, 73%)", "fill-opacity":0.7 }, "source":"openmaptiles", "source-layer":"water", "type":"fill" }, { "filter":[ "==", "subclass", "ice_shelf" ], "id":"landcover-ice-shelf", "paint":{ "fill-color":"hsl(47, 26%, 88%)", "fill-opacity":0.8 }, "source":"openmaptiles", "source-layer":"landcover", "type":"fill" }, { "filter":[ "==", "subclass", "glacier" ], "id":"landcover-glacier", "paint":{ "fill-color":"hsl(47, 22%, 94%)", "fill-opacity":{ "base":1, "stops":[ [ 0, 1 ], [ 8, 0.5 ] ] } }, "source":"openmaptiles", "source-layer":"landcover", "type":"fill" }, { "filter":[ "all", [ "in", "class", "sand" ] ], "id":"landcover_sand", "metadata":{ }, "paint":{ "fill-antialias":false, "fill-color":"rgba(232, 214, 38, 1)", "fill-opacity":0.3 }, "source":"openmaptiles", "source-layer":"landcover", "type":"fill" }, { "filter":[ "==", "class", "agriculture" ], "id":"landuse", "paint":{ "fill-color":"#eae0d0" }, "source":"openmaptiles", "source-layer":"landuse", "type":"fill" }, { "filter":[ "==", "class", "national_park" ], "id":"landuse_overlay_national_park", "paint":{ "fill-color":"#E1EBB0", "fill-opacity":{ "base":1, "stops":[ [ 5, 0 ], [ 9, 0.75 ] ] } }, "source":"openmaptiles", "source-layer":"landcover", "type":"fill" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "==", "brunnel", "tunnel" ] ], "id":"waterway-tunnel", "paint":{ "line-color":"hsl(205, 56%, 73%)", "line-dasharray":[ 3, 3 ], "line-gap-width":{ "stops":[ [ 12, 0 ], [ 20, 6 ] ] }, "line-opacity":1, "line-width":{ "base":1.4, "stops":[ [ 8, 1 ], [ 20, 2 ] ] } }, "source":"openmaptiles", "source-layer":"waterway", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "!in", "brunnel", "tunnel", "bridge" ], [ "!=", "intermittent", 1 ] ], "id":"waterway", "paint":{ "line-color":"hsl(205, 56%, 73%)", "line-opacity":1, "line-width":{ "base":1.4, "stops":[ [ 8, 1 ], [ 20, 8 ] ] } }, "source":"openmaptiles", "source-layer":"waterway", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "!in", "brunnel", "tunnel", "bridge" ], [ "==", "intermittent", 1 ] ], "id":"waterway_intermittent", "paint":{ "line-color":"hsl(205, 56%, 73%)", "line-opacity":1, "line-width":{ "base":1.4, "stops":[ [ 8, 1 ], [ 20, 8 ] ] }, "line-dasharray":[ 2, 1 ] }, "source":"openmaptiles", "source-layer":"waterway", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "==", "brunnel", "tunnel" ], [ "==", "class", "transit" ] ], "id":"tunnel_railway_transit", "layout":{ "line-cap":"butt", "line-join":"miter" }, "minzoom":0, "paint":{ "line-color":"hsl(34, 12%, 66%)", "line-dasharray":[ 3, 3 ], "line-opacity":{ "base":1, "stops":[ [ 11, 0 ], [ 16, 1 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line" }, { "id":"building", "paint":{ "fill-antialias":true, "fill-color":"rgba(222, 211, 190, 1)", "fill-opacity":{ "base":1, "stops":[ [ 13, 0 ], [ 15, 1 ] ] }, "fill-outline-color":{ "stops":[ [ 15, "rgba(212, 177, 146, 0)" ], [ 16, "rgba(212, 177, 146, 0.5)" ] ] } }, "source":"openmaptiles", "source-layer":"building", "type":"fill" }, { "filter":[ "==", "$type", "Point" ], "id":"housenumber", "layout":{ "text-field":"{housenumber}", "text-font":[ "Noto Sans Regular" ], "text-size":10 }, "minzoom":17, "paint":{ "text-color":"rgba(212, 177, 146, 1)" }, "source":"openmaptiles", "source-layer":"housenumber", "type":"symbol" }, { "id":"road_area_pier", "type":"fill", "metadata":{ }, "source":"openmaptiles", "source-layer":"transportation", "filter":[ "all", [ "==", "$type", "Polygon" ], [ "==", "class", "pier" ] ], "paint":{ "fill-color":"hsl(47, 26%, 88%)", "fill-antialias":true } }, { "id":"road_pier", "type":"line", "metadata":{ }, "source":"openmaptiles", "source-layer":"transportation", "filter":[ "all", [ "==", "$type", "LineString" ], [ "in", "class", "pier" ] ], "layout":{ "line-cap":"round", "line-join":"round" }, "paint":{ "line-color":"hsl(47, 26%, 88%)", "line-width":{ "base":1.2, "stops":[ [ 15, 1 ], [ 17, 4 ] ] } } }, { "filter":[ "all", [ "==", "$type", "Polygon" ], [ "in", "brunnel", "bridge" ] ], "id":"road_bridge_area", "layout":{ }, "paint":{ "fill-color":"hsl(47, 26%, 88%)", "fill-opacity":0.5 }, "source":"openmaptiles", "source-layer":"transportation", "type":"fill" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "in", "class", "path", "track" ] ], "id":"road_path", "layout":{ "line-cap":"square", "line-join":"bevel" }, "paint":{ "line-color":"hsl(0, 0%, 97%)", "line-dasharray":[ 1, 1 ], "line-width":{ "base":1.55, "stops":[ [ 4, 0.25 ], [ 20, 10 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "in", "class", "minor", "service" ] ], "id":"road_minor", "layout":{ "line-cap":"round", "line-join":"round" }, "paint":{ "line-color":"hsl(0, 0%, 97%)", "line-width":{ "base":1.55, "stops":[ [ 4, 0.25 ], [ 20, 30 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line", "minzoom":13 }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "==", "brunnel", "tunnel" ], [ "==", "class", "minor_road" ] ], "id":"tunnel_minor", "layout":{ "line-cap":"butt", "line-join":"miter" }, "paint":{ "line-color":"#efefef", "line-dasharray":[ 0.36, 0.18 ], "line-width":{ "base":1.55, "stops":[ [ 4, 0.25 ], [ 20, 30 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "==", "brunnel", "tunnel" ], [ "in", "class", "primary", "secondary", "tertiary", "trunk" ] ], "id":"tunnel_major", "layout":{ "line-cap":"butt", "line-join":"miter" }, "paint":{ "line-color":"#fff", "line-dasharray":[ 0.28, 0.14 ], "line-width":{ "base":1.4, "stops":[ [ 6, 0.5 ], [ 20, 30 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line" }, { "filter":[ "all", [ "==", "$type", "Polygon" ], [ "in", "class", "runway", "taxiway" ] ], "id":"aeroway-area", "metadata":{ "mapbox:group":"1444849345966.4436" }, "minzoom":4, "paint":{ "fill-color":"rgba(255, 255, 255, 1)", "fill-opacity":{ "base":1, "stops":[ [ 13, 0 ], [ 14, 1 ] ] } }, "source":"openmaptiles", "source-layer":"aeroway", "type":"fill" }, { "filter":[ "all", [ "in", "class", "taxiway" ], [ "==", "$type", "LineString" ] ], "id":"aeroway-taxiway", "layout":{ "line-cap":"round", "line-join":"round" }, "metadata":{ "mapbox:group":"1444849345966.4436" }, "minzoom":12, "paint":{ "line-color":"rgba(255, 255, 255, 1)", "line-opacity":1, "line-width":{ "base":1.5, "stops":[ [ 12, 1 ], [ 17, 10 ] ] } }, "source":"openmaptiles", "source-layer":"aeroway", "type":"line" }, { "filter":[ "all", [ "in", "class", "runway" ], [ "==", "$type", "LineString" ] ], "id":"aeroway-runway", "layout":{ "line-cap":"round", "line-join":"round" }, "metadata":{ "mapbox:group":"1444849345966.4436" }, "minzoom":4, "paint":{ "line-color":"rgba(255, 255, 255, 1)", "line-opacity":1, "line-width":{ "base":1.5, "stops":[ [ 11, 4 ], [ 17, 50 ] ] } }, "source":"openmaptiles", "source-layer":"aeroway", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "in", "class", "trunk", "primary" ] ], "id":"road_trunk_primary", "layout":{ "line-cap":"round", "line-join":"round" }, "paint":{ "line-color":"#fff", "line-width":{ "base":1.4, "stops":[ [ 6, 0.5 ], [ 20, 30 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "in", "class", "secondary", "tertiary" ] ], "id":"road_secondary_tertiary", "layout":{ "line-cap":"round", "line-join":"round" }, "paint":{ "line-color":"#fff", "line-width":{ "base":1.4, "stops":[ [ 6, 0.5 ], [ 20, 20 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "==", "class", "motorway" ] ], "id":"road_major_motorway", "layout":{ "line-cap":"round", "line-join":"round" }, "paint":{ "line-color":"hsl(0, 0%, 100%)", "line-offset":0, "line-width":{ "base":1.4, "stops":[ [ 8, 1 ], [ 16, 10 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line" }, { "filter":[ "all", [ "==", "class", "transit" ], [ "!=", "brunnel", "tunnel" ] ], "id":"railway-transit", "paint":{ "line-color":"hsl(34, 12%, 66%)", "line-opacity":{ "base":1, "stops":[ [ 11, 0 ], [ 16, 1 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line" }, { "filter":[ "==", "class", "rail" ], "id":"railway", "paint":{ "line-color":"hsl(34, 12%, 66%)", "line-opacity":{ "base":1, "stops":[ [ 11, 0 ], [ 16, 1 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "==", "brunnel", "bridge" ] ], "id":"waterway-bridge-case", "layout":{ "line-cap":"butt", "line-join":"miter" }, "paint":{ "line-color":"#bbbbbb", "line-gap-width":{ "base":1.55, "stops":[ [ 4, 0.25 ], [ 20, 30 ] ] }, "line-width":{ "base":1.6, "stops":[ [ 12, 0.5 ], [ 20, 10 ] ] } }, "source":"openmaptiles", "source-layer":"waterway", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "==", "brunnel", "bridge" ] ], "id":"waterway-bridge", "layout":{ "line-cap":"round", "line-join":"round" }, "paint":{ "line-color":"hsl(205, 56%, 73%)", "line-width":{ "base":1.55, "stops":[ [ 4, 0.25 ], [ 20, 30 ] ] } }, "source":"openmaptiles", "source-layer":"waterway", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "==", "brunnel", "bridge" ], [ "==", "class", "minor_road" ] ], "id":"bridge_minor case", "layout":{ "line-cap":"butt", "line-join":"miter" }, "paint":{ "line-color":"#dedede", "line-gap-width":{ "base":1.55, "stops":[ [ 4, 0.25 ], [ 20, 30 ] ] }, "line-width":{ "base":1.6, "stops":[ [ 12, 0.5 ], [ 20, 10 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "==", "brunnel", "bridge" ], [ "in", "class", "primary", "secondary", "tertiary", "trunk" ] ], "id":"bridge_major case", "layout":{ "line-cap":"butt", "line-join":"miter" }, "paint":{ "line-color":"#dedede", "line-gap-width":{ "base":1.55, "stops":[ [ 4, 0.25 ], [ 20, 30 ] ] }, "line-width":{ "base":1.6, "stops":[ [ 12, 0.5 ], [ 20, 10 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "==", "brunnel", "bridge" ], [ "==", "class", "minor_road" ] ], "id":"bridge_minor", "layout":{ "line-cap":"round", "line-join":"round" }, "paint":{ "line-color":"#efefef", "line-width":{ "base":1.55, "stops":[ [ 4, 0.25 ], [ 20, 30 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line" }, { "filter":[ "all", [ "==", "$type", "LineString" ], [ "==", "brunnel", "bridge" ], [ "in", "class", "primary", "secondary", "tertiary", "trunk" ] ], "id":"bridge_major", "layout":{ "line-cap":"round", "line-join":"round" }, "paint":{ "line-color":"#fff", "line-width":{ "base":1.4, "stops":[ [ 6, 0.5 ], [ 20, 30 ] ] } }, "source":"openmaptiles", "source-layer":"transportation", "type":"line" }, { "filter":[ "in", "admin_level", 4, 6, 8 ], "id":"admin_sub", "paint":{ "line-color":"hsla(0, 0%, 60%, 0.5)", "line-dasharray":[ 2, 1 ] }, "source":"openmaptiles", "source-layer":"boundary", "type":"line" }, { "filter":[ "all", [ "<=", "admin_level", 2 ], [ "==", "$type", "LineString" ] ], "id":"admin_country", "layout":{ "line-cap":"round", "line-join":"round" }, "paint":{ "line-color":"hsl(0, 0%, 60%)", "line-width":{ "base":1.3, "stops":[ [ 3, 0.5 ], [ 22, 15 ] ] } }, "source":"openmaptiles", "source-layer":"boundary", "type":"line" }, { "filter":[ "all", [ "==", "$type", "Point" ], [ "==", "rank", 1 ] ], "id":"poi_label", "layout":{ "icon-size":1, "text-anchor":"top", "text-field":"{name:latin} {name:nonlatin}", "text-font":[ "Noto Sans Regular" ], "text-max-width":8, "text-offset":[ 0, 0.5 ], "text-size":11 }, "minzoom":14, "paint":{ "text-color":"#666", "text-halo-blur":1, "text-halo-color":"rgba(255,255,255,0.75)", "text-halo-width":1 }, "source":"openmaptiles", "source-layer":"poi", "type":"symbol" }, { "filter":[ "all", [ "has", "iata" ] ], "id":"airport-label", "layout":{ "icon-size":1, "text-anchor":"top", "text-field":"{name:latin} {name:nonlatin}", "text-font":[ "Noto Sans Regular" ], "text-max-width":8, "text-offset":[ 0, 0.5 ], "text-size":11 }, "minzoom":10, "paint":{ "text-color":"#666", "text-halo-blur":1, "text-halo-color":"rgba(255,255,255,0.75)", "text-halo-width":1 }, "source":"openmaptiles", "source-layer":"aerodrome_label", "type":"symbol" }, { "filter":[ "==", "$type", "LineString" ], "id":"road_major_label", "layout":{ "symbol-placement":"line", "text-field":"{name:latin} {name:nonlatin}", "text-font":[ "Noto Sans Regular" ], "text-letter-spacing":0.1, "text-rotation-alignment":"map", "text-size":{ "base":1.4, "stops":[ [ 10, 8 ], [ 20, 14 ] ] }, "text-transform":"uppercase" }, "paint":{ "text-color":"#000", "text-halo-color":"hsl(0, 0%, 100%)", "text-halo-width":2 }, "source":"openmaptiles", "source-layer":"transportation_name", "type":"symbol" }, { "filter":[ "all", [ "==", "$type", "Point" ], [ "!in", "class", "city", "state", "country", "continent" ] ], "id":"place_label_other", "layout":{ "text-anchor":"center", "text-field":"{name:latin} {name:nonlatin}", "text-font":[ "Noto Sans Regular" ], "text-max-width":6, "text-size":{ "stops":[ [ 6, 10 ], [ 12, 14 ] ] } }, "minzoom":8, "paint":{ "text-color":"hsl(0, 0%, 25%)", "text-halo-blur":0, "text-halo-color":"hsl(0, 0%, 100%)", "text-halo-width":2 }, "source":"openmaptiles", "source-layer":"place", "type":"symbol" }, { "filter":[ "all", [ "==", "$type", "Point" ], [ "==", "class", "city" ] ], "id":"place_label_city", "layout":{ "text-field":"{name:latin} {name:nonlatin}", "text-font":[ "Noto Sans Regular" ], "text-max-width":10, "text-size":{ "stops":[ [ 3, 12 ], [ 8, 16 ] ] } }, "maxzoom":16, "paint":{ "text-color":"hsl(0, 0%, 0%)", "text-halo-blur":0, "text-halo-color":"hsla(0, 0%, 100%, 0.75)", "text-halo-width":2 }, "source":"openmaptiles", "source-layer":"place", "type":"symbol" }, { "filter":[ "all", [ "==", "$type", "Point" ], [ "==", "class", "country" ], [ "!has", "iso_a2" ] ], "id":"country_label-other", "layout":{ "text-field":"{name:latin} {name:nonlatin}", "text-font":[ "Noto Sans Regular" ], "text-max-width":10, "text-size":{ "stops":[ [ 3, 12 ], [ 8, 22 ] ] } }, "maxzoom":12, "paint":{ "text-color":"hsl(0, 0%, 13%)", "text-halo-blur":0, "text-halo-color":"rgba(255,255,255,0.75)", "text-halo-width":2 }, "source":"openmaptiles", "source-layer":"place", "type":"symbol" }, { "filter":[ "all", [ "==", "$type", "Point" ], [ "==", "class", "country" ], [ "has", "iso_a2" ] ], "id":"country_label", "layout":{ "text-field":"{name:latin} {name:nonlatin}", "text-font":[ "Noto Sans Regular" ], "text-max-width":10, "text-size":{ "stops":[ [ 3, 12 ], [ 8, 22 ] ] } }, "maxzoom":12, "paint":{ "text-color":"hsl(0, 0%, 13%)", "text-halo-blur":0, "text-halo-color":"rgba(255,255,255,0.75)", "text-halo-width":2 }, "source":"openmaptiles", "source-layer":"place", "type":"symbol" } ], "id":"basic-preview" } ```
Asncodes-80 commented 1 year ago

I added only nonlatin value, it doesn't show any nonlatin (Persian/Arabic) name. How to fix this bro?