<?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 Label Placement MapImageLayer vs. FeatureLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-placement-mapimagelayer-vs-featurelayer/m-p/1648055#M87586</link>
    <description>&lt;P&gt;I've noticed an annoying difference between how label placement is handled in a MapImageLayer vs. a FeatureLayer. I've used the Web MapViewer to add the same layer twice as both a MapImageLayer and a FeatureLayer. You can see in the image below that the label generated by the FeatureLayer is much farther away than the one from the MapImageLayer. The FeatureLayer labels are too far away in my opinion.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffreyThompson2_0-1757010594772.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/139898i2ED3000972EC0EA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffreyThompson2_0-1757010594772.png" alt="JeffreyThompson2_0-1757010594772.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The FeatureLayer appears to add a default 10px offset. Adding a -10px offset to both the X and Y gets these labels to line up almost perfectly at all zoom levels.&amp;nbsp; This extra 10px is consistent for all the labelPlacement&amp;nbsp; options.&lt;/P&gt;&lt;P&gt;Why is this extra offset being added? Can the labeling engine be adjusted so that the behavior is consistent between the layer types?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Sep 2025 18:54:42 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2025-09-04T18:54:42Z</dc:date>
    <item>
      <title>Label Placement MapImageLayer vs. FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-placement-mapimagelayer-vs-featurelayer/m-p/1648055#M87586</link>
      <description>&lt;P&gt;I've noticed an annoying difference between how label placement is handled in a MapImageLayer vs. a FeatureLayer. I've used the Web MapViewer to add the same layer twice as both a MapImageLayer and a FeatureLayer. You can see in the image below that the label generated by the FeatureLayer is much farther away than the one from the MapImageLayer. The FeatureLayer labels are too far away in my opinion.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffreyThompson2_0-1757010594772.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/139898i2ED3000972EC0EA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffreyThompson2_0-1757010594772.png" alt="JeffreyThompson2_0-1757010594772.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The FeatureLayer appears to add a default 10px offset. Adding a -10px offset to both the X and Y gets these labels to line up almost perfectly at all zoom levels.&amp;nbsp; This extra 10px is consistent for all the labelPlacement&amp;nbsp; options.&lt;/P&gt;&lt;P&gt;Why is this extra offset being added? Can the labeling engine be adjusted so that the behavior is consistent between the layer types?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 18:54:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-placement-mapimagelayer-vs-featurelayer/m-p/1648055#M87586</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2025-09-04T18:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Label Placement MapImageLayer vs. FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-placement-mapimagelayer-vs-featurelayer/m-p/1648057#M87587</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/677423"&gt;@JeffreyThompson2&lt;/a&gt;,&amp;nbsp;thanks for posting your question here. We have 3 different labeling implementations in the ArcGIS Maps SDK for Javascript - 2D featureLayer, 2D mapImageLayer, and 3D. We document the differences in implementation and usage in this guide topic:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/labeling/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/labeling/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;While we don't explicitly callout the differences between&amp;nbsp;2D featureLayer and 2D mapImageLayer behavior, the reason we have different fonts is because we have different labeling implementation. For example, mapImageLayer is a server-side only layer. As such, we cannot define a deconfliction strategy for 2D mapImageLayer, only for 2D featureLayer (and associated layers):&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#deconflictionStrategy" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#deconflictionStrategy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We constantly work on improving our labeling behavior for every possible use case. Please continue to share your stories and workflows and pain points so we can discuss and address as appropriate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 19:08:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/label-placement-mapimagelayer-vs-featurelayer/m-p/1648057#M87587</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2025-09-04T19:08:24Z</dc:date>
    </item>
  </channel>
</rss>

