<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic I am using esri-leaflet as mapping library and using vectorTileLayer to add custom basemap however struggling with arabic text that is breaking in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-am-using-esri-leaflet-as-mapping-library-and/m-p/1337177#M82450</link>
    <description>&lt;LI-CODE lang="javascript"&gt;getWeatherMap() {
    if(this.map){
      this.map.remove();
    }
    const saudiArabiaCenter = [45.0792, 23.8859];
    this.map = L.map(`map`, {
      center: L.latLng(saudiArabiaCenter[1], saudiArabiaCenter[0]),
      zoom: 6,
      minZoom: 3,
      extent: [4034389.34, 1606584.16, 6328654.48, 3423574.81]
    });



      const baseMapEsriLayer = new esriVector.VectorTileLayer("example/vectorTileServer", {
      apikey: "xyz",
      pane: 'basemap',
      style: (style) =&amp;gt; {
        style.layers.forEach((layer) =&amp;gt; {
          if (layer.layout &amp;amp;&amp;amp; layer.layout['text-font']) {
            layer.layout['text-font'] = ['Arial Regular']
          }
        });

        console.log(style);

        return style;
      }
    });

  }&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;So far I have tried changing fonts by modfiying font-family but no luck as arabic text is still break. Changing font that is available system or available in Esri vector tile server but no luck. if the font is not available the layers got failed to load.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2023 07:23:29 GMT</pubDate>
    <dc:creator>OwaisNadeem</dc:creator>
    <dc:date>2023-10-12T07:23:29Z</dc:date>
    <item>
      <title>I am using esri-leaflet as mapping library and using vectorTileLayer to add custom basemap however struggling with arabic text that is breaking</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-am-using-esri-leaflet-as-mapping-library-and/m-p/1337177#M82450</link>
      <description>&lt;LI-CODE lang="javascript"&gt;getWeatherMap() {
    if(this.map){
      this.map.remove();
    }
    const saudiArabiaCenter = [45.0792, 23.8859];
    this.map = L.map(`map`, {
      center: L.latLng(saudiArabiaCenter[1], saudiArabiaCenter[0]),
      zoom: 6,
      minZoom: 3,
      extent: [4034389.34, 1606584.16, 6328654.48, 3423574.81]
    });



      const baseMapEsriLayer = new esriVector.VectorTileLayer("example/vectorTileServer", {
      apikey: "xyz",
      pane: 'basemap',
      style: (style) =&amp;gt; {
        style.layers.forEach((layer) =&amp;gt; {
          if (layer.layout &amp;amp;&amp;amp; layer.layout['text-font']) {
            layer.layout['text-font'] = ['Arial Regular']
          }
        });

        console.log(style);

        return style;
      }
    });

  }&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;So far I have tried changing fonts by modfiying font-family but no luck as arabic text is still break. Changing font that is available system or available in Esri vector tile server but no luck. if the font is not available the layers got failed to load.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 07:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-am-using-esri-leaflet-as-mapping-library-and/m-p/1337177#M82450</guid>
      <dc:creator>OwaisNadeem</dc:creator>
      <dc:date>2023-10-12T07:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: I am using esri-leaflet as mapping library and using vectorTileLayer to add custom basemap however struggling with arabic text that is breaking</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-am-using-esri-leaflet-as-mapping-library-and/m-p/1337188#M82451</link>
      <description>&lt;P&gt;it sad to see no one is here to help&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 08:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-am-using-esri-leaflet-as-mapping-library-and/m-p/1337188#M82451</guid>
      <dc:creator>OwaisNadeem</dc:creator>
      <dc:date>2023-10-12T08:22:44Z</dc:date>
    </item>
  </channel>
</rss>

