<?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: PictureMarkerSymbol problems in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503990#M2535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to break out a simple example of the problem into a separate project I can try?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Oct 2020 14:37:17 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2020-10-05T14:37:17Z</dc:date>
    <item>
      <title>PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503978#M2523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a graphic that is being updated at a regular interval (15-20hz) that I would really like to use a KML overlay for, but cannot since updating KML Overlays doesn't work in 2d maps.&amp;nbsp; (&lt;A _jive_internal="true" href="https://community.esri.com/thread/258112-adjusting-kml-placement-in-realtime-in-a-mapview"&gt;Prior Conversation on GeoNet&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I've been using a PictureMarkerSymbol with some success, but I am now observing some weirdness with it.&amp;nbsp; I'm wondering if it's something I am doing wrong or if I've stumbled on another bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic workflow is the sensor (a sonar) that we're tracking feeds us a stream of QImages.&amp;nbsp; I scale the QImage to the appropriate size according to our current zoom level and map scaling and create a PictureMarkerSymbol using this code block:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Esri::ArcGISRuntime::Graphic m_graphic;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // declared elsewhere&lt;BR /&gt;Esri::ArcGISRuntime::GraphicsOverlay m_overlay;&amp;nbsp; // Set up elsewhere&lt;BR /&gt;Esri::ArcGISRuntime::Point point;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set up elsewhere&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esri::ArcGISRuntime::PictureMarkerSymbol pms(scaled_image,this);&lt;BR /&gt;pms.setAngle(m_heading);&lt;BR /&gt;pms.setWidth(scaled_image.width());&lt;BR /&gt;pms.setHeight(scaled_image.height());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (m_graphic.isNull())&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; m_graphic = new Esri::ArcGISRuntime::Graphic(point, &amp;amp;pms);&lt;BR /&gt;&amp;nbsp; m_overlay-&amp;gt;graphics()-&amp;gt;append(m_graphic);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; m_graphic.data()-&amp;gt;setSymbol(&amp;amp;pms);&lt;BR /&gt;&amp;nbsp; m_graphic.data()-&amp;gt;setGeometry(point);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The functionality is great to an extent.&amp;nbsp; But when the image exceeds a certain size (in this case, 20 meters), the PictureMarkerSymbol seems to unexpectedly change its shape as demonstrated in the 3 images I have attached.&amp;nbsp; The first image shows a sonar at range of 16 meters, the second a range of 19 meters; you can see the aspect ratio of the image/PictureMarkerSymbol (dim red rectangle with the sonar fan in the front of it) is a distinct rectangle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the range reaches 20 meters, the aspect ratio of the image / PictureMarkerSymbol changes into a square!!&amp;nbsp; I know this is not in the QImage scaling code, as I've stepped through and observed the QImage itself scaling properly.&amp;nbsp; The "change" happens within the PictureMarkerSymbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503978#M2523</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-09-29T19:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503979#M2524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/407601"&gt;Brian Crist&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Sounds like there are a few things going on here. Before we diagnose the issues you're seeing with PictureMarkerSymbol, let me point you towards our sample demonstrating the ImageOverlay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_CppSamples/Scenes/AnimateImagesWithImageOverlay" title="https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_CppSamples/Scenes/AnimateImagesWithImageOverlay"&gt;arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_CppSamples/Scenes/AnimateImagesWithImageOverlay at master · Esri/arcgis-run…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you're describing sounds like the ideal use case for an ImageOverlay. Please take a look at our sample code, which shows how to use this workflow with png images and QImage.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:16:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503979#M2524</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2020-09-29T20:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503980#M2525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I would love, love, love to use an ImageOverlay, but we are using a Map / GraphicsMapView (2d) architecture for our application for several reasons, and ImageOverlay does not operate on&amp;nbsp;those.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503980#M2525</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-09-29T20:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503981#M2526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/407601"&gt;Brian Crist&lt;/A&gt;‌, oh dang, sorry for the bogus recommendation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I or someone on the team will look into your issues with picture marker symbol when we get a spare minute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:41:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503981#M2526</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2020-09-29T20:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503982#M2527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, thank you.&amp;nbsp; I am continuing to research here as well and I will post if I figure anything out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503982#M2527</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-09-29T20:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503983#M2528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the aspect ratio changes, what is the width and height that is being reported on the picture marker symbol?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2020 14:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503983#M2528</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2020-09-30T14:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503984#M2529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So that's an interesting thing actually.&amp;nbsp; You can see in the code above that I've got it set to the width and height of the scaled image - but before I put those calls in there, the width and height would report 0 at all times!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying several things right now on my end to make this work, but I feel like there's a key element I may have missed reporting above.&amp;nbsp; It should be noted that in the code above, the overlay is set to &lt;EM&gt;setScaleSymbols&lt;/EM&gt; of TRUE and the map has a reference scale.&amp;nbsp; If this itself presents a problem please let me know.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2020 14:46:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503984#M2529</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-09-30T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503985#M2530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after you call setWidth and setHeight, do you get back square or rectangle dimensions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you try setting the graphics rendering mode on the graphics overlay explicitly to dynamic and explicitly to static? I'm curious if either of these gives differing results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2020 15:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503985#M2530</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2020-09-30T15:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503986#M2531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calling setWidth and setHeight makes no difference to the&amp;nbsp;&lt;EM&gt;appearance&lt;/EM&gt; - I will double check what it does to the reported sizes and get back to you.&lt;/P&gt;&lt;P&gt;I'll also set the rendering mode explicitly and let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp; Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2020 16:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503986#M2531</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-09-30T16:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503987#M2532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the &lt;STRONG&gt;height()&lt;/STRONG&gt; and &lt;STRONG&gt;width()&lt;/STRONG&gt; calls reflect what I set the values to with &lt;STRONG&gt;setHeight()&lt;/STRONG&gt; and &lt;STRONG&gt;setWidth().&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I also verified that the height and width values are 0 if I do not set them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting&amp;nbsp;the rendering mode made no difference in either case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have noticed that when you go from "big" to "little" it leaves detritus on the screen.&amp;nbsp;&amp;nbsp;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/508932_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this be happening because&amp;nbsp;the PictureMarkerSymbol is a local (stack) variable? Should I make it static?&amp;nbsp; Or should I make it a class member?&amp;nbsp; It doesn't seem like you can "update" the imagery in a PictureMarkerSymbol, so&amp;nbsp;I don't know if we can do that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2020 17:02:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503987#M2532</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-09-30T17:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503988#M2533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Could this be happening because&amp;nbsp;the PictureMarkerSymbol is a local (stack) variable?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Maybe... That isn't the way we generally test our QObject* derived classes. Could you try making it a member and delete/construct a new object (or use smart pointer) when you need to update (you are correct - you can't update the URL/QImage of the marker symbol).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2020 15:49:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503988#M2533</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2020-10-02T15:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503989#M2534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lucas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes, I tried making it a member of the containing class and saw no difference.&amp;nbsp; Well, the rectangle-to-square distortion happened at a farther sonar range, but it definitely still happened.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2020 16:13:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503989#M2534</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-10-02T16:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503990#M2535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to break out a simple example of the problem into a separate project I can try?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2020 14:37:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503990#M2535</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2020-10-05T14:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503991#M2536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lucas,&lt;/P&gt;&lt;P&gt;Yes - I've got a case with Sami:&amp;nbsp;&lt;SPAN style="color: #202124; background-color: #ffffff;"&gt;02650457&amp;nbsp; -- I uploaded a demonstration application via the FTP server yesterday.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2020 15:03:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503991#M2536</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-10-05T15:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: PictureMarkerSymbol problems</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503992#M2537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, thanks. That's what we ultimately need - a bug logged through support so we can get it reproduced in house.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2020 15:15:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/picturemarkersymbol-problems/m-p/503992#M2537</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2020-10-05T15:15:57Z</dc:date>
    </item>
  </channel>
</rss>

