<?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: set inital extent for offline map in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/set-inital-extent-for-offline-map/m-p/1009650#M3882</link>
    <description>&lt;P&gt;hi&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/276838"&gt;@LukeSmallwood&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i m trying like this on offline map, but could not get success to set initial view point. Any help would be great from your end. Thanks in advance.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; MapView {
        id:mapView
        property real initialMapRotation: 0
        Map {
                initialViewpoint: viewpoint
             }
        Component.onCompleted: {
                mmpk.load()
            }
        anchors {
            left: parent.left
            right: parent.right
            top: parent.top
            bottom: parent.bottom
        }

        rotationByPinchingEnabled: true
        zoomByPinchingEnabled: true

     // *** Declare graphics layer***//
        GraphicsOverlay {
            id: graphicsOverlay
        }
    }//End Mapview
    // Create the intial Viewpoint
     ViewpointExtent {
         id: viewpoint
         extent: Envelope {
             xMin: xMinVal
             yMin: yMinVal
             xMax: xMaxVal
             yMax: yMaxVal
             spatialReference: SpatialReference { wkid: 4326 }
         }
     }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Dec 2020 05:06:58 GMT</pubDate>
    <dc:creator>rsharma</dc:creator>
    <dc:date>2020-12-15T05:06:58Z</dc:date>
    <item>
      <title>set inital extent for offline map</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/set-inital-extent-for-offline-map/m-p/1008817#M3879</link>
      <description>&lt;P&gt;Hi, i m now working with offline map, now i have to set initial extent of my map, i could not find any option anywheer&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 08:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/set-inital-extent-for-offline-map/m-p/1008817#M3879</guid>
      <dc:creator>rsharma</dc:creator>
      <dc:date>2020-12-11T08:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: set inital extent for offline map</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/set-inital-extent-for-offline-map/m-p/1008826#M3880</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/222605"&gt;@rsharma&lt;/a&gt;&amp;nbsp;- if your Map is not yet loaded (for example you read it directly from a MobileMapPackage already on your device) you should be able to use&amp;nbsp;&lt;A href="https://developers.arcgis.com/qt/latest/cpp/api-reference/esri-arcgisruntime-map.html" target="_self"&gt;void Map::setInitialViewpoint(const Esri::ArcGISRuntime::Viewpoint &amp;amp;viewpoint)&lt;/A&gt;&amp;nbsp;before you set it on the MapView.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another approach would be to use&amp;nbsp;&lt;A title="Esri::ArcGISRuntime::TaskWatcher MapView::setViewpointCenter(const Esri::ArcGISRuntime::Point &amp;amp;center)" href="https://developers.arcgis.com/qt/latest/cpp/api-reference/esri-arcgisruntime-mapview.html" target="_self"&gt;https://developers.arcgis.com/qt/latest/cpp/api-reference/esri-arcgisruntime-mapview.html&lt;/A&gt;&amp;nbsp;or similar to set the position directly on the view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 09:32:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/set-inital-extent-for-offline-map/m-p/1008826#M3880</guid>
      <dc:creator>LukeSmallwood</dc:creator>
      <dc:date>2020-12-11T09:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: set inital extent for offline map</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/set-inital-extent-for-offline-map/m-p/1008833#M3881</link>
      <description>&lt;P&gt;I am using qml with js not cpp. does this fnc work for setting extent&amp;nbsp;&lt;SPAN&gt;setViewpointGeometry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 09:52:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/set-inital-extent-for-offline-map/m-p/1008833#M3881</guid>
      <dc:creator>rsharma</dc:creator>
      <dc:date>2020-12-11T09:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: set inital extent for offline map</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/set-inital-extent-for-offline-map/m-p/1009650#M3882</link>
      <description>&lt;P&gt;hi&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/276838"&gt;@LukeSmallwood&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i m trying like this on offline map, but could not get success to set initial view point. Any help would be great from your end. Thanks in advance.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; MapView {
        id:mapView
        property real initialMapRotation: 0
        Map {
                initialViewpoint: viewpoint
             }
        Component.onCompleted: {
                mmpk.load()
            }
        anchors {
            left: parent.left
            right: parent.right
            top: parent.top
            bottom: parent.bottom
        }

        rotationByPinchingEnabled: true
        zoomByPinchingEnabled: true

     // *** Declare graphics layer***//
        GraphicsOverlay {
            id: graphicsOverlay
        }
    }//End Mapview
    // Create the intial Viewpoint
     ViewpointExtent {
         id: viewpoint
         extent: Envelope {
             xMin: xMinVal
             yMin: yMinVal
             xMax: xMaxVal
             yMax: yMaxVal
             spatialReference: SpatialReference { wkid: 4326 }
         }
     }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 05:06:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/set-inital-extent-for-offline-map/m-p/1009650#M3882</guid>
      <dc:creator>rsharma</dc:creator>
      <dc:date>2020-12-15T05:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: set inital extent for offline map</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/set-inital-extent-for-offline-map/m-p/1012635#M3893</link>
      <description>&lt;P&gt;Please have the answer&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  MobileMapPackage {
         id: mmpk
         path: assetsPath + mapPackageFileName
         onLoadStatusChanged: {
                if (loadStatus !== Enums.LoadStatusLoaded) {
                    return;
                }

                if (mmpk.maps.length &amp;lt; 1) {
                    return;
                }
                       mapView.map = mmpk.maps[0];
                        mapView.map.initialViewpoint = viewpoint;
            }

            onErrorChanged: {
                console.log("Mobile Map Package Error: %1 %2".arg(error.message).arg(error.additionalMessage));
            }
     }&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Dec 2020 11:58:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/set-inital-extent-for-offline-map/m-p/1012635#M3893</guid>
      <dc:creator>rsharma</dc:creator>
      <dc:date>2020-12-29T11:58:50Z</dc:date>
    </item>
  </channel>
</rss>

