<?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: Adjusting KML placement in realtime in a MapView in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48627#M231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Lucas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the issue behind all of this KML that I'm trying to resolve is actually this:&amp;nbsp;My application has a video stream; call it a stream of QImages coming from an sensor.&amp;nbsp; The images are known to be a certain real-world size, which is also fed to my application from the sensor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to render these QImages at their "real world" size on the map.&amp;nbsp; I posted earlier in the year and was suggested a KmlGroundOverlay / Envelope whose size is created from those data coming from the sensor.&amp;nbsp; But if real-time updates aren't going to happen on a KmlGroundOverlay in MapView, I need to come up with another solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The obvious seeming one to me is to use a PictureMarkerSymbol and&amp;nbsp;setting an overlay's setScaleSymbols flag to true.&amp;nbsp; But I rapidly run into my limits of GIS understanding when I try to do this... I end up rendering things in near-to-real-size not cannot figure out how to render them in actual-real-size on the map.&amp;nbsp; I don't understand the relationship between the viewPortScale and the map's referenceScale and how to set these values to be able to, say, make a 100m x 100m square.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to make a PictureFillSymbol do its thing&amp;nbsp;&lt;STRONG&gt;without&lt;/STRONG&gt; tiling the source image?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on working around the KML updates would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2020 20:06:51 GMT</pubDate>
    <dc:creator>BrianCrist</dc:creator>
    <dc:date>2020-08-10T20:06:51Z</dc:date>
    <item>
      <title>Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48623#M227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Background:&amp;nbsp; Working in ArcGIS Runtime for QT version 100.8 in QT version 5.14 on an Ubuntu system running release 19.10.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I've got a KML GroundOverlay graphic whose position I'd like to update in real-time.&amp;nbsp; The graphic is rendered just fine initially, but any subsequent calls to functions on the KmlGroundOverlay don't seem to have an effect.&amp;nbsp; As an example, here's a bit of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Considering the variables:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Esri::ArcGISRuntime::KmlGroundOverlay * m_groundOverlay;
Esri::ArcGISRuntime::KmlDataset *m_kdata;
Esri::ArcGISRuntime::KmlLayer *m_klayer;
Esri::ArcGISRuntime::Map *m_map;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In the "before" code - before the KML is called:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;m_map(new Map(Basemap::topographicVector(this), this));&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting up the KML Ground Overlay:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;const Envelope env(-.001, 0.001, .001, 0.00, SpatialReference::wgs84());
KmlIcon * kmlIcon = new KmlIcon(QUrl("/home/bcrist/hundySquare.png")); // "hundySquare.png" is a red square shaped image file
// Create Overlay
m_groundOverlay = new Esri::ArcGISRuntime::KmlGroundOverlay(env, kmlIcon, this);
// Create Dataset
m_kdata = new Esri::ArcGISRuntime::KmlDataset(m_groundOverlay, this);
 // Create Layer
m_klayer = new Esri::ArcGISRuntime::KmlLayer(m_kdata, this);

m_map-&amp;gt;operationalLayers()-&amp;gt;append(m_klayer);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Subsequently trying to just spin the layer around via a timer-called separate function (for testing purposes, obviously):&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;m_groundOverlay-&amp;gt;setRotation(m_groundOverlay-&amp;gt;rotation() + 1);
if (m_groundOverlay-&amp;gt;rotation() &amp;gt; 360)
{
 m_groundOverlay-&amp;gt;setRotation(0);
}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I've assembled the "EditKmlGroundOverlay" sample from the arcgis-runtime-samples-qt repo on Git and altered it do perform the rotation above, and it works fine.&amp;nbsp; The only difference I can figure out is that the EditKmlGroundOverlay sample uses a scene view instead of a map view.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is this a limitation of Map Views or am I doing something wrong or missing something?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 15:57:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48623#M227</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2021-12-12T15:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48624#M228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a limitation with GroundOverlays with the currently released software - these properties can be modified but do not show up properly in the MapView. As you noticed with the sample, everything should work as expected in the SceneView.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 18:08:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48624#M228</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2020-08-10T18:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48625#M229</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; Thanks for the answer!&amp;nbsp; So this sort of leads to a bigger question I suppose.&amp;nbsp; Should I be leaning more towards implementing a Scene View instead of a Map View for something that is visualizing, say, vehicles whose positions are being updated regularly?&amp;nbsp; I.e. are scenes generally a better idea for implementations that require a lot of real-time updating?&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>Mon, 10 Aug 2020 18:20:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48625#M229</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-08-10T18:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48626#M230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I wouldn't say that necessarily. This is just one particular bug we have in our implementation of KML.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 18:24:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48626#M230</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2020-08-10T18:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48627#M231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Lucas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the issue behind all of this KML that I'm trying to resolve is actually this:&amp;nbsp;My application has a video stream; call it a stream of QImages coming from an sensor.&amp;nbsp; The images are known to be a certain real-world size, which is also fed to my application from the sensor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to render these QImages at their "real world" size on the map.&amp;nbsp; I posted earlier in the year and was suggested a KmlGroundOverlay / Envelope whose size is created from those data coming from the sensor.&amp;nbsp; But if real-time updates aren't going to happen on a KmlGroundOverlay in MapView, I need to come up with another solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The obvious seeming one to me is to use a PictureMarkerSymbol and&amp;nbsp;setting an overlay's setScaleSymbols flag to true.&amp;nbsp; But I rapidly run into my limits of GIS understanding when I try to do this... I end up rendering things in near-to-real-size not cannot figure out how to render them in actual-real-size on the map.&amp;nbsp; I don't understand the relationship between the viewPortScale and the map's referenceScale and how to set these values to be able to, say, make a 100m x 100m square.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to make a PictureFillSymbol do its thing&amp;nbsp;&lt;STRONG&gt;without&lt;/STRONG&gt; tiling the source image?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on working around the KML updates would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 20:06:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48627#M231</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-08-10T20:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48628#M232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. Since that solution was discussed, we released a newer API designed for a very similar use case you are mentioning. It is for the ImageOverlay, which was designed to take real time images from radar/sensors and display rapidly. This currently only works in 3D since that was the initial requirement, but we are aiming to bring this to 2D at some point.&amp;nbsp;Can you try out this sample? You'll need to change the .pro file's runtime version to 100.8, as this is part of our development branch currently (v.next branch) -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-qt/tree/v.next/ArcGISRuntimeSDKQt_CppSamples/Scenes/AnimateImagesWithImageOverlay" title="https://github.com/Esri/arcgis-runtime-samples-qt/tree/v.next/ArcGISRuntimeSDKQt_CppSamples/Scenes/AnimateImagesWithImageOverlay"&gt;arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_CppSamples/Scenes/AnimateImagesWithImageOverlay at v.next · Esri/arcgis-run…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 20:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48628#M232</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2020-08-10T20:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48629#M233</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 that built fine with 100.8, but I could not find the animation (3D/ImageOverlay/PacificSouthWest) - is it someone online for download?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; And the key is that we're on a Map/MapGraphicsView and would prefer not to go to a Scene View for a few reasons.&amp;nbsp; &amp;nbsp;But the ImageOverlay would be absolutely perfect for what we're trying to accomplish (if it worked in a Map/MapGraphicsView!)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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>Mon, 10 Aug 2020 20:54:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48629#M233</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-08-10T20:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48630#M234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the data -&amp;nbsp;&lt;A class="link-titled" href="https://www.arcgis.com/home/item.html?id=9465e8c02b294c69bdb42de056a23ab1" title="https://www.arcgis.com/home/item.html?id=9465e8c02b294c69bdb42de056a23ab1"&gt;https://www.arcgis.com/home/item.html?id=9465e8c02b294c69bdb42de056a23ab1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, could&amp;nbsp;you email me some details about your org, project, requirements, etc? That would help gain justification for getting this running in 2D - ldanzinger@esri.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 20:58:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48630#M234</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2020-08-10T20:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48631#M235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the data, it looks awesome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will email you more details about the project and organization.&amp;nbsp; Thanks so much for all of your help.&lt;/P&gt;&lt;P&gt;I'm on the East Coast, so I'll probably email first thing in the morning (8/11/20)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 21:06:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48631#M235</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-08-10T21:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48632#M236</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; I emailed on Tuesday morning and never heard back.&amp;nbsp; Please advise on the status; did you receive my email?&amp;nbsp; Any ideas?&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>Fri, 14 Aug 2020 14:14:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48632#M236</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-08-14T14:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48633#M237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Brian-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your email. We are wrapping up 100.9 release right now, so it is a bit hectic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I passed your information onto our senior product managers for their consideration. Hopefully we can either get the KML Ground Overlay 2D issue fixed or Image Overlay in 2D implemented, but&amp;nbsp;that timeline is unknown. What I do know is 100.9 is going to be released in a week or so, but neither of these will be in that release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the time being,&amp;nbsp;would it be an option&amp;nbsp;to use 3D instead of 2D and orient the camera in a top down manner so it looks 2D?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2020 14:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48633#M237</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2020-08-14T14:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48634#M238</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;&amp;nbsp; I initially thought doing a "top-down" 3-d look would be the best option, but we need to display&amp;nbsp;grid lines; the program manager has indicated losing grid-lines is a non-starter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The work-around I'm using feels very clumsy, but maybe it's the best I can do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I can produce an envelope that is accurately sized that contains the sensor data I'm interested in displaying.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;If I could find a way to know the dimensions of this envelope in pixels,&amp;nbsp;I could scale the QImage via QImage::scaled() to produce&amp;nbsp;a corrected-sized image.&lt;/LI&gt;&lt;LI&gt;I'm&amp;nbsp;setting the sensor data's graphic overlay &lt;STRONG&gt;setScaleSymbols&lt;/STRONG&gt; flag to&amp;nbsp;&lt;STRONG&gt;True&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;I have a sort of kludgey version of pixels-to-meters done by doing a GeometryEngine::DistanceGeodetic between two points in the middle of the MapView...&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;I'm running into issues with this because I don't understand how Map scaling and&amp;nbsp;GraphicsView scaling relate to one-another; in other words, if the scale on the Map View viewpoint's center is the same as the Map's referenceScale everything is hunky dory.&amp;nbsp; But if I change the zoom level on the Map View, my crappy pixels-to-meters calculation does not work properly.&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;If I had an accurate way to get pixels to meters; or if I understood what the heck I was doing with this scaling, I think I could resolve this problem and pour myself a nice glass of champagne.&lt;/LI&gt;&lt;/UL&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>Fri, 14 Aug 2020 15:56:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48634#M238</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-08-14T15:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48635#M239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe MapView::unitsPerDIP could get you what you need -&amp;nbsp;&lt;A class="link-titled" href="https://developersdev.arcgis.com/qt/latest/cpp/api-reference/esri-arcgisruntime-mapview.html#unitsPerDIP" title="https://developersdev.arcgis.com/qt/latest/cpp/api-reference/esri-arcgisruntime-mapview.html#unitsPerDIP"&gt;https://developersdev.arcgis.com/qt/latest/cpp/api-reference/esri-arcgisruntime-mapview.html#unitsPerDIP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We added this API so users could build a scalebar, which conceptually is very similar to the need you have - to tell how many real-world units are in one device independent pixel.&amp;nbsp;Real-world units will be in whatever the 0th layer in the map is, so if you are using web mercator basemap, it will be meters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 17:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48635#M239</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2020-08-18T17:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48636#M240</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; This is where my ignorance of GIS comes into play.&amp;nbsp; So the map I'm using is a Basemap::TopographicVector and the mapView's spatial reference is WKID 3857, who's unit is a meter.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; When I use unitsPerDip (which I tried quite a while ago when I was first wrestling with this) - when I render my 100 meter square at 0,0 everything is great.&amp;nbsp;&amp;nbsp;But when I render it in Vermont (-72.9927854, 44.4050029 in spatial reference Wkid 4326), the size is reduced.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I understand this has to do with the projection somehow, but I do not understand how.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I came up with a pretty hacky way to solve this which seems to be working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; When the zoom level changes, I&amp;nbsp;obtain Points from&amp;nbsp;two adjoining pixels in the middle of the mapView using screenToLocation and using the GeometryEngine to calculate the meters between these two points.&amp;nbsp; This gives me a "pixels to meters" which seems to calculate the size of my 100x100 square pretty accurately wherever it is in the world.&lt;/P&gt;&lt;P&gt;I then divide that value by the ratio of the mapView's scale to the Map's scale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; However, I think this is probably a little more resource intensive than it should be, and it definitely feels like a hack.&amp;nbsp; Is there any way you can either email me or clarify on this thread how I take the UnitsPerDip and project them properly at various latitudes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks so much,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 19:46:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48636#M240</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-08-18T19:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting KML placement in realtime in a MapView</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48637#M241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's probably important to note that I'm using an overlay whose setScaleSymbols flag is set to true also.&amp;nbsp; I think that's an important element to my code above functioning properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 20:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/adjusting-kml-placement-in-realtime-in-a-mapview/m-p/48637#M241</guid>
      <dc:creator>BrianCrist</dc:creator>
      <dc:date>2020-08-18T20:27:22Z</dc:date>
    </item>
  </channel>
</rss>

