|
POST
|
Hi Nakul This does seem somewhat drastic for what I thought was a relatively simple request but I am happy to do so. Googling "Esri support" directs me to (1) Esri's Community Support, which is GeoNet, and (2) Esri's Technical Support, which is obviously Esri's technical support. I guess with AppStudio on Geonet there are greater restrictions than with other Esri products in terms of 3rd party software licensing and public sharing of code. I never really thought about that before. I will contact Esri's Technical support for assistance. I apologise if my request or response was unreasonable. Best of wishes for 2018! Regards Mervyn
... View more
01-02-2018
01:38 PM
|
0
|
0
|
1764
|
|
POST
|
Hi Nakul Thank you for responding. I have tried this approach but my offline TPK does not load - it does not even give me the grid view with the Esri licence statement that I get when the online map loads. I then added a property statement for the data path but this did not help. Could you please look at the below code and suggest where I may be going wrong? import QtQuick 2.7 import QtQuick.Controls 2.1 import QtQuick.Controls.Styles 1.4 import QtQuick.Controls.Material 2.1 import ArcGIS.AppFramework 1.0 import ArcGIS.AppFramework.Controls 1.0 import Esri.ArcGISRuntime 100.1 App { id: app width: 414 height: 736 property real scaleFactor: AppFramework.displayScaleFactor property string dataPath: AppFramework.userHomeFolder.filePath("ArcGIS/AppStudio/Data") // Create MapView that contains a Map MapView { id: mapView anchors.fill: parent Map { id: map Basemap { ArcGISTiledLayer { TileCache { path: dataPath + "hoekwil.tpk" } } } initialViewpoint: ViewpointCenter { center: Point { x:22.6; y: -33.9; spatialReference: SpatialReference { wkid: 4326 } } targetScale: 50000 } } // Busy Indicator BusyIndicator { anchors.centerIn: parent height: 48 * scaleFactor width: height running: true Material.accent:"#8f499c" visible: (mapView.drawStatus === Enums.DrawStatusInProgress) } } } Thank you. Regards Mervyn
... View more
01-02-2018
01:04 PM
|
0
|
0
|
1123
|
|
POST
|
Hi there I created a small TPK using the Tile Package Kreator. I then downloaded the AppStudio Tiled Layer sample app and tried to load my offline TPK - but I was unable to do so, not sure how to load it as sample shows how to load an online TPK. The specific code to load URL was written as: Map { id: map Basemap { // Nest an ArcGISVectorTiledLayer Layer in the Basemap ArcGISVectorTiledLayer { url: "http://www.arcgis.com/home/item.html?id=dcbbba0edf094eaa81af19298b9c6247" } How would I change this to reference a TPK stored locally? The TPK will for now reside in the app's Data folder. Ideally I would like a user to browse to a folder where the TPK is stored but I wont try and attempt to do so now. Thank you. Regards Mervyn
... View more
01-01-2018
12:51 PM
|
0
|
3
|
1638
|
|
POST
|
Hi Nakul Thank you for quick reply. Unfortunately, for my level of expertise, the MapViewer app is not that easy to navigate and understand. I now know how to import "controls' but I am not sure how to call up the "views" - not even sure if they do get called. Under the "MapPage.qml" view folder I found reference to the mapView.map.operationalLayers (see below) but I dont even know how to link these to a menu or list of options or MyApp.qml code. function procLayers (layers) { if (!layers) layers = mapView.map.operationalLayers var count = layers.count || layers.length for (var i=count; i--;) { var layer try { layer = layers.get(i) } catch (err) { layer = layers } if (!layer) continue if (layer.subLayerContents.length) { procLayers(layer.subLayerContents) } else { mapView.contentListModel.append({ "checkBox": layer.visible, "name": layer.name, "layerId": layer.layerId }) } layer.onLoadErrorChanged.connect(function () { //app.messageDialog.show(layer.loadError.message, layer.loadError.additionalMessage) mapView.layersWithErrorMessages.append({ "layer": layer, "verified": false }) }) } } Is there perhaps a simpler example that you can provide for operationalising the selection of layers or a perhaps a document that explains how the MapViewer app is structured and functions? I know this is now off the point but I find the availability of help and resources limited for those non-programmers trying to get to grips with AppStudio. The ArcGIS Runtime SDK for Qt site (https://developers.arcgis.com/qt/latest/qml/sample-code/sample-qt-main-page.htm) is somewhat useful but not all of the example code works seamlessly in AppStudio. I tried cutting and pasting several of the code snippets this evening and only some worked.I did change the import statements before trying to run the code but I wish there was a dedicated website site for AppStudio related code snippets and help. Regards Mervyn
... View more
12-27-2017
01:33 PM
|
0
|
2
|
1764
|
|
POST
|
Hi there I have developed a simple offline app using the Open Mobile Map (mmpk) template. I would now like to provide the user with the ability to select which MMPK layers should be displayed in the app (interactively). This would be similar to the Table Of Contents where a user can select which layers to display. I was unable to find any templates or examples of this and would really appreciate some code or examples to study and apply to my offline app. Thank you and I wish all of you all of the best for the New Year. Regards Mervyn
... View more
12-27-2017
12:03 PM
|
0
|
6
|
2423
|
|
POST
|
Hi Nakul I have solved my problem. Looks like I had placed my MMPK file in the wrong folder. Using the "View app Source files" folder option from within AppStudio I was able to identify the correct folder within which to place my MMPK. A silly mistake and I thank you for your assistance. Regards Mervyn
... View more
12-23-2017
01:38 PM
|
0
|
0
|
1255
|
|
POST
|
Hi Tina Thanks for writing. I have just recreated the app from your tutorial and this time the tutorial app does load the web map as it should. I am not sure where I went wrong but it is now working. Thanks for the great tutorial. Regards Mervyn
... View more
12-23-2017
12:23 PM
|
0
|
0
|
1255
|
|
POST
|
Thanks Nakul and Stephen Thanks Nakul (and Stephen) I thought my problem may simply be with my code but I am now starting to think it may not be so. Perhaps on a related note, I also worked through the useful tutorial (Load a Web Map and Display Device Location) but the webmap does not display. The button and button messages do, but no webmap. Unfortunately I am travelling for a few days and have limited time and Internet connectivity for testing and getting back to you. I will definitely do so more thoroughly and reply with more details of testing. I had a quick look and: 1. I can use the Open MMPK template and this does display the Yellowstone MMPK both on desktop and mobile devices. 2. If I simply change MMPK name and place my MMPK in same folder, then app displays on desktop only (using AltShiftR or AppStudio Player). I am using Windows 10 and have only placed the MMPK in the C:\Users\xxxx\ArcGIS\AppStudio\Data folder. Should I place it anywhere else before uploading to cloud or building app? I also want to add that the app is not shared with anyone but I dont think that is a requirement as I am only including a small MMPK file with the app. Stephan, thanks for your note and code. I now see what the description page does when set to true. The autopan code also looks like a very useful addition, thank you very much. I will give it a try once I get my MMPK's to display correctly. Thanks, Mervyn
... View more
12-22-2017
11:07 AM
|
0
|
3
|
1255
|
|
POST
|
Hi there I am hoping somebody can advise me where I have gone wrong. I have created a rather simple app using the "Open Mobile Map" template to which I have added functionality to view the device's location on the MMPK. This app opens and views correctly when I run app from within AppStudio (Shift+Alt+r) but not when I download app onto mobile device, either as a built app or to view via AppStudio Player 2.1.23 on a Samsung S8+ phone. When I try from AppStudio Player then all I see is the location button but not the MMPK. The MMPK is being placed in the C:\Users\xxxxx\ArcGIS\AppStudio\Data folder before uploading and/or building app. I paste the code I used below: import QtQuick 2.7 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.1 import QtQuick.Controls.Material 2.1 import ArcGIS.AppFramework 1.0 import ArcGIS.AppFramework.Controls 1.0 import Esri.ArcGISRuntime 100.1 //GPS import QtPositioning 5.8 import QtSensors 5.2 import "controls" as Controls App { id: app width: 414 height: 736 function units(value) { return AppFramework.displayScaleFactor * value } property real scaleFactor: AppFramework.displayScaleFactor property int baseFontSize : app.info.propertyValue("baseFontSize", 15 * scaleFactor) + (isSmallScreen ? 0 : 3) property bool isSmallScreen: (width || height) < units(400) property string dataPath: AppFramework.userHomeFolder.filePath("ArcGIS/AppStudio/Data") property string inputdata: "KrugerNP2.mmpk" property string outputdata: dataPath + "/" + inputdata function copyLocalData(input, output) { var resourceFolder = AppFramework.fileFolder(app.folder.folder("data").path); AppFramework.userHomeFolder.makePath(dataPath); resourceFolder.copyFile(input, output); return output } Page{ anchors.fill: parent header: ToolBar{ id:header width: parent.width height: 50 * scaleFactor Material.background: "green" Controls.HeaderBar{} } // sample starts here ------------------------------------------------------------------ contentItem: Rectangle{ anchors.top:header.bottom // Create MapView MapView { id: mapView anchors.fill: parent ColumnLayout{ anchors{ right: parent.right rightMargin: 16 * scaleFactor verticalCenter: parent.verticalCenter } Controls.FloatActionButton{ id:locationButton imageSource: "./assets/location.png" onIconClicked: { if (!mapView.locationDisplay.started) { mapView.locationDisplay.start() mapView.locationDisplay.autoPanMode = Enums.LocationDisplayAutoPanModeRecenter colorOverlay.color = "steelblue" }else { mapView.locationDisplay.stop() colorOverlay.color = "#4c4c4c" } } } } locationDisplay { positionSource: PositionSource { } } } // Create a Mobile Map Package and set the path MobileMapPackage { id: mmpk path: AppFramework.resolvedPathUrl(copyLocalData(inputdata, outputdata)) // load the mobile map package Component.onCompleted: { mmpk.load(); } // wait for the mobile map package to load onLoadStatusChanged: { if (loadStatus === Enums.LoadStatusLoaded) { // set the map view's map to the first map in the mobile map package mapView.map = mmpk.maps[0]; } } } //! [open mobile map package qml api snippet] } } // sample ends here ------------------------------------------------------------------------ Controls.DescriptionPage{ id:descPage visible: false } }
... View more
12-17-2017
11:03 AM
|
0
|
6
|
1516
|
|
POST
|
Hi Nakul Thank you for reply. Will Qt 5.10 be released with AppStudio 2.2 or earlier. Or any idea when we can expect Qt 5.10? Regards Mervyn
... View more
12-05-2017
05:13 AM
|
0
|
1
|
896
|
|
POST
|
Hi there After working through the Load a Web Map and Display Device Location tutorial, I tried to add the ability to observe the device location onto a scene view but I get the error that locationDisplay is an "Invalid property name "locationDisplay". Taking a quick look at the API reference (LocationDisplay QML Type | ArcGIS for Developers ) it only mentions its use in a map view and is silent on whether it can also be used in a scene view. Have I missed an important step or is a very different process required to observe position in a scene view?
... View more
12-03-2017
12:15 PM
|
0
|
1
|
642
|
|
POST
|
Hi there I am a newby to AppStudio and while working through the Load a Web Map and Display Device Location tutorial, I noticed that one of the modules did not import. It is the: import QtGraphicalEffects 1.0 module. See attached image ' I am running "AppStudio for ArcGIS 2.1.19" on Windows 10. I first noticed this problem running an earlier version (2.1.15) but tried updating to see whether that would fix the problem, but did not. I have noticed that this module has failed to import in other apps I am playing/working with.
... View more
12-03-2017
10:22 AM
|
0
|
3
|
1046
|
|
POST
|
To add to Xander's suggestion, the subset of the Esri UC 2017 tech workshop videos open to the public have now been released and are available to view here: Home | Esri Video. For those relating to migrating from ArcMap to Pro, try ArcGIS Pro: Migrating from ArcMap to Pro ArcGIS Pro: Migrating from ArcMap - YouTube and ArcGIS Pro: Tips and Tricks ArcGIS Pro: Tips and Tricks - YouTube. I find these videos really useful and an awesome resource.
... View more
10-28-2017
11:26 AM
|
5
|
5
|
14485
|
|
POST
|
Perfect, works like a charm and I have tested it on Pro 2.1 Beta. Thanks so much for sharing.
... View more
10-21-2017
03:53 AM
|
2
|
0
|
28677
|
|
POST
|
Susan, that sounds very unusual. I have just created a new map, changed the projection to something different than that of my feature classes, then added my feature classes and I could copy across geometry and attributes. Perhaps start up a new project and try adding the same layers to copy across features.
... View more
09-19-2017
01:30 PM
|
2
|
2
|
5252
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | yesterday | |
| 2 | 07-24-2025 08:34 AM | |
| 1 | 04-19-2025 07:12 AM | |
| 1 | 02-12-2024 12:38 AM | |
| 1 | 07-02-2024 10:30 PM |
| Online Status |
Offline
|
| Date Last Visited |
9 hours ago
|