<?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 Re: GraphicsOverlay labels fromJson does not work after upgrading to 100.15 in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/graphicsoverlay-labels-fromjson-does-not-work/m-p/1210663#M4724</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/176"&gt;@Nicholas-Furness&lt;/a&gt;&amp;nbsp;, actually I discovered that I made a small mistake in my own code which was the reason of labels not being displayed. fromJSON is working just as before.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 06:46:47 GMT</pubDate>
    <dc:creator>FatmaAkdemir</dc:creator>
    <dc:date>2022-09-08T06:46:47Z</dc:date>
    <item>
      <title>GraphicsOverlay labels fromJson does not work after upgrading to 100.15</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/graphicsoverlay-labels-fromjson-does-not-work/m-p/1209763#M4720</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I was using 100.8 runtime library in my project. After upgrading to 100.15 we saw that labels were not visible anymore. We were creating labels like below:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;mpDistrictNamesOverlay = new GraphicsOverlay(this);
	 mpDistrictNamesOverlay-&amp;gt;setSceneProperties(LayerSceneProperties(SurfacePlacement::Draped));
	 const QString labelDistrictNames(R"({"labelExpressionInfo":{"expression":"$feature.districtName"},"labelPlacement":"esriServerPointLabelPlacementAboveCenter","symbol":{"angle":0,"backgroundColor":[0,0,0,0],"borderLineColor":[0,0,0,0],"borderLineSize":0,"color": [255,255,255,255],"font":{"decoration":"none","size":8,"style":"normal","weight":"normal"},"haloColor":[0,0,0,0],"haloSize":0,"horizontalAlignment":"center","kerning":false,"type":"esriTS","verticalAlignment":"middle","xoffset":0,"yoffset":0}})");
	 LabelDefinition* labelDefDistrictNames = LabelDefinition::fromJson(labelDistrictNames, this);
	 mpDistrictNamesOverlay-&amp;gt;labelDefinitions()-&amp;gt;append(labelDefDistrictNames);
	 mpDistrictNamesOverlay-&amp;gt;setLabelsEnabled(true);
	 m_sceneView-&amp;gt;graphicsOverlays()-&amp;gt;append(mpDistrictNamesOverlay);&lt;/LI-CODE&gt;&lt;P&gt;What would be the new way to print $feature.districtName as a label, in fact a simple label, on an overlay? We have a 3D SceneView by the way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 07:47:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/graphicsoverlay-labels-fromjson-does-not-work/m-p/1209763#M4720</guid>
      <dc:creator>FatmaAkdemir</dc:creator>
      <dc:date>2022-09-06T07:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsOverlay labels fromJson does not work after upgrading to 100.15</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/graphicsoverlay-labels-fromjson-does-not-work/m-p/1209899#M4721</link>
      <description>&lt;P&gt;I'm not sure why the fromJSON call should have stopped working, but one option you could try (and it might make for more maintainable code) is to use the new Labeling API we &lt;A href="https://developers.arcgis.com/qt/release-notes/prior-releases/release-notes-for-100-11/#new-managed-labeling-api" target="_self"&gt;added at 100.11&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-labeldefinition.html" target="_blank"&gt;https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-labeldefinition.html&lt;/A&gt;&amp;nbsp;for more properties you can now set through the API.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 14:58:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/graphicsoverlay-labels-fromjson-does-not-work/m-p/1209899#M4721</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2022-09-06T14:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsOverlay labels fromJson does not work after upgrading to 100.15</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/graphicsoverlay-labels-fromjson-does-not-work/m-p/1210663#M4724</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/176"&gt;@Nicholas-Furness&lt;/a&gt;&amp;nbsp;, actually I discovered that I made a small mistake in my own code which was the reason of labels not being displayed. fromJSON is working just as before.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 06:46:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/graphicsoverlay-labels-fromjson-does-not-work/m-p/1210663#M4724</guid>
      <dc:creator>FatmaAkdemir</dc:creator>
      <dc:date>2022-09-08T06:46:47Z</dc:date>
    </item>
  </channel>
</rss>

