<?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 Kml: How to set line width that changes with scale/zoom (support for gx:physicalWidth?) in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/kml-how-to-set-line-width-that-changes-with-scale/m-p/1288561#M11829</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I successfully loaded KMLs in OperationalLayers and now try to change the stroke/line-width of some lines in there.&lt;/P&gt;&lt;P&gt;This works as expected: sets the line width to 150 pixel. Therefore the line has a constant width on a device...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Placemark id="kml_3"&amp;gt;
 &amp;lt;name&amp;gt;kml_3&amp;lt;/name&amp;gt;
 &amp;lt;Style&amp;gt;
   &amp;lt;LineStyle&amp;gt;
    &amp;lt;color&amp;gt;ff0000ff&amp;lt;/color&amp;gt;
    &amp;lt;width&amp;gt;150&amp;lt;/width&amp;gt;
   &amp;lt;/LineStyle&amp;gt;
  &amp;lt;/Style&amp;gt;
 &amp;lt;LineString&amp;gt;
   &amp;lt;coordinates&amp;gt;6.47687246450881,51.759226245738,0.0 6.47686836555455,51.7592282453517,0.0&amp;lt;/coordinates&amp;gt;
  &amp;lt;/LineString&amp;gt;
&amp;lt;/Placemark&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With&amp;nbsp;&lt;A href="https://developers.google.com/kml/documentation/kmlreference#gxphysicalwidth" target="_blank"&gt;https://developers.google.com/kml/documentation/kmlreference#gxphysicalwidth&lt;/A&gt;&amp;nbsp;I am able to set the width of the line in meters:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Placemark id="kml_3"&amp;gt;
 &amp;lt;name&amp;gt;kml_3&amp;lt;/name&amp;gt;
 &amp;lt;Style&amp;gt;
   &amp;lt;LineStyle&amp;gt;
    &amp;lt;color&amp;gt;ff0000ff&amp;lt;/color&amp;gt;
    &amp;lt;gx:physicalWidth&amp;gt;10&amp;lt;/gx:physicalWidth&amp;gt;
   &amp;lt;/LineStyle&amp;gt;
  &amp;lt;/Style&amp;gt;
 &amp;lt;LineString&amp;gt;
   &amp;lt;coordinates&amp;gt;6.47687246450881,51.759226245738,0.0 6.47686836555455,51.7592282453517,0.0&amp;lt;/coordinates&amp;gt;
  &amp;lt;/LineString&amp;gt;
&amp;lt;/Placemark&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;This works nicely on earth.google.com, but does not seem to have any effect if I load the KML into ArcGIS Runtime (doesn't matter if Windows, MAUI, etc.).&lt;/P&gt;&lt;P&gt;I did put the namespace &lt;FONT face="courier new,courier"&gt;xmlns:gx="&lt;A href="http://www.google.com/kml/ext/2.2" target="_blank"&gt;http://www.google.com/kml/ext/2.2&lt;/A&gt;"&lt;/FONT&gt; as an attribute to kml as required...&lt;/P&gt;&lt;P&gt;Is there a special switch I have to activate so physicalWidth works? Or is it simply not supported? If not: Is there another way to set the line width (or a relative line width to other lines) which changes with scale/zoom?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Soko&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 13:24:33 GMT</pubDate>
    <dc:creator>SokoFromNZ</dc:creator>
    <dc:date>2023-05-12T13:24:33Z</dc:date>
    <item>
      <title>Kml: How to set line width that changes with scale/zoom (support for gx:physicalWidth?)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/kml-how-to-set-line-width-that-changes-with-scale/m-p/1288561#M11829</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I successfully loaded KMLs in OperationalLayers and now try to change the stroke/line-width of some lines in there.&lt;/P&gt;&lt;P&gt;This works as expected: sets the line width to 150 pixel. Therefore the line has a constant width on a device...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Placemark id="kml_3"&amp;gt;
 &amp;lt;name&amp;gt;kml_3&amp;lt;/name&amp;gt;
 &amp;lt;Style&amp;gt;
   &amp;lt;LineStyle&amp;gt;
    &amp;lt;color&amp;gt;ff0000ff&amp;lt;/color&amp;gt;
    &amp;lt;width&amp;gt;150&amp;lt;/width&amp;gt;
   &amp;lt;/LineStyle&amp;gt;
  &amp;lt;/Style&amp;gt;
 &amp;lt;LineString&amp;gt;
   &amp;lt;coordinates&amp;gt;6.47687246450881,51.759226245738,0.0 6.47686836555455,51.7592282453517,0.0&amp;lt;/coordinates&amp;gt;
  &amp;lt;/LineString&amp;gt;
&amp;lt;/Placemark&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With&amp;nbsp;&lt;A href="https://developers.google.com/kml/documentation/kmlreference#gxphysicalwidth" target="_blank"&gt;https://developers.google.com/kml/documentation/kmlreference#gxphysicalwidth&lt;/A&gt;&amp;nbsp;I am able to set the width of the line in meters:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Placemark id="kml_3"&amp;gt;
 &amp;lt;name&amp;gt;kml_3&amp;lt;/name&amp;gt;
 &amp;lt;Style&amp;gt;
   &amp;lt;LineStyle&amp;gt;
    &amp;lt;color&amp;gt;ff0000ff&amp;lt;/color&amp;gt;
    &amp;lt;gx:physicalWidth&amp;gt;10&amp;lt;/gx:physicalWidth&amp;gt;
   &amp;lt;/LineStyle&amp;gt;
  &amp;lt;/Style&amp;gt;
 &amp;lt;LineString&amp;gt;
   &amp;lt;coordinates&amp;gt;6.47687246450881,51.759226245738,0.0 6.47686836555455,51.7592282453517,0.0&amp;lt;/coordinates&amp;gt;
  &amp;lt;/LineString&amp;gt;
&amp;lt;/Placemark&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;This works nicely on earth.google.com, but does not seem to have any effect if I load the KML into ArcGIS Runtime (doesn't matter if Windows, MAUI, etc.).&lt;/P&gt;&lt;P&gt;I did put the namespace &lt;FONT face="courier new,courier"&gt;xmlns:gx="&lt;A href="http://www.google.com/kml/ext/2.2" target="_blank"&gt;http://www.google.com/kml/ext/2.2&lt;/A&gt;"&lt;/FONT&gt; as an attribute to kml as required...&lt;/P&gt;&lt;P&gt;Is there a special switch I have to activate so physicalWidth works? Or is it simply not supported? If not: Is there another way to set the line width (or a relative line width to other lines) which changes with scale/zoom?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Soko&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 13:24:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/kml-how-to-set-line-width-that-changes-with-scale/m-p/1288561#M11829</guid>
      <dc:creator>SokoFromNZ</dc:creator>
      <dc:date>2023-05-12T13:24:33Z</dc:date>
    </item>
  </channel>
</rss>

