|
POST
|
Where are you running into issues? Once you get the KmlGeometry, you can access the Geometry object from it directly. You can obtain an individual KmlPlacemark by calling identifyLayer on the Map/SceneView. For example, you could try this workflow: - Click on the map and use the screen coordinates and KML Layer in MapView::identifyLayer - GeoView QML Type | ArcGIS for Developers - Obtain the identify layer results and get the KmlPlacemarks - Iterate through the placemarks and get the Geometry of each
... View more
12-12-2018
07:37 AM
|
1
|
3
|
4439
|
|
POST
|
Yes, performance should be the same. Our QML types are all implemented in C++, so they should be just as fast and efficient. Our only slow downs we have seen have been in client code (not the API itself) - for example, if client code is looping through lots of graphics or results in QML/JS, it will often be slower than doing the same in C++.
... View more
11-30-2018
01:16 PM
|
0
|
0
|
3234
|
|
POST
|
Perhaps you are looking to set the viewpoint based on a bounding geometry? MapView Class | ArcGIS for Developers We have a variety of different methods for setting viewpoint based on geometry, center, scale, etc
... View more
11-30-2018
01:13 PM
|
0
|
0
|
876
|
|
POST
|
You can actually still use C++ with QML UI - the issue mentioned in that link is with the QML API specifically. The difference is subtle, but important to understand. When you build a Runtime Qt app, you have 3 options: - C++ w/ Qt Widgets for UI. This is what your sample is in, but it has this nasty trackpad bug. I do not know of any workaround for it other than using a mouse. - C++ with Qt Quick (QML) for UI. This is what I am suggesting you use instead. If you use the new project wizard in Qt Creator, under the ArcGIS Section, you should see one that says "ArcGIS Runtime 100.4 Qt Quick C++ app". All of the code you have in your above sample can be transported over with very minimal changes (only changes required would be to use the MapQuickView instead of the MapGraphicsView) - Pure QML implementation. This pattern uses no C++, and uses QML for both UI and business logic. This uses a separate API that we refer to as "the QML API", and this one is the one that has the bug you mentioned in the above link.
... View more
11-29-2018
06:48 AM
|
0
|
2
|
3234
|
|
POST
|
I think you may be hitting a bug with our Qt Widgets view on Mac when using the track pad. Are you able to try one of the following other options to confirm this is the issue: - use a mouse - use the qt quick C++ template instead of qt widgets - try a different platform If that is indeed the issue, it is an issue in general with mouse interactions with widgets via the mac mouse track pad, and not with the ENC Layer performance
... View more
11-28-2018
12:35 PM
|
1
|
4
|
3234
|
|
POST
|
there's no API for this specifically - you'd need to create some sort of data structure that keeps track of this and has certain rules, such as no duplicates and must be a certain tolerance difference from the previous bookmark, or something along those lines.
... View more
11-26-2018
01:38 PM
|
0
|
0
|
1046
|
|
POST
|
You'll need to set a few different symbols depending on what location display mode you are in. If you are in default mode, you will need to set the default symbol, as well as the acquiring symbol and ping symbol. If you are using compass mode you will need to set the heading symbol as well. If you are using navigation mode you will need to set the course symbol. You might want to also change some of the settings like if the course symbol automatically shows when location changes or if the ping animation is turned on or not LocationDisplay Class | ArcGIS for Developers
... View more
11-01-2018
07:08 AM
|
0
|
0
|
647
|
|
POST
|
global IDs are auto generated and are non editable. I wonder - are you calling applyEdits to apply the edits to the feature service? I wonder if the global id does not get assigned until it gets added to the service.
... View more
10-25-2018
03:19 PM
|
0
|
0
|
1163
|
|
POST
|
the identify result gives access to the LayerContent, so that can be your layer for selecting. QML will implicitly cast LayerContent to FeatureLayer
... View more
10-25-2018
02:36 PM
|
1
|
2
|
2406
|
|
POST
|
Based on this info, I don't know why it is crashing. But one thing to note is that you are calling identifyLayers with an "s" but your signal is set up for identifyLayer (singular). Instead it should be: onIdentifyLayersStatusChanged: {
... View more
10-25-2018
09:38 AM
|
1
|
0
|
318
|
|
POST
|
here is some example code. you can modify your search string to find the different items you need. for example, you can specify type, tags, name, etc. Here are some details on how you can customize it - Search reference—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers // create portal with url and credential
Credential* cred = new Credential("username", "password", this);
m_portal = new Portal(QUrl("https://arcgis.com"), cred, this);
// connect to done loading
connect(m_portal, &Portal::doneLoading, [this](Error e)
{
if (!e.isEmpty())
{
qDebug() << e.message() << e.additionalMessage();
return;
}
// connect to findItemsCompleted
connect(m_portal, &Portal::findItemsCompleted, [](PortalQueryResultSetForItems* items)
{
// loop through results
for (int i = 0; i < items->itemResults()->size(); i++)
{
auto item = items->itemResults()->at(i);
// load the item
connect(item, &PortalItem::doneLoading, [item](Error e)
{
if (!e.isEmpty())
return;
qDebug() << item->name();
});
item->load();
}
});
PortalQueryParametersForItems queryParams;
queryParams.setSearchString(R"(type:"map service")");
m_portal->findItems(queryParams);
});
// load the portal
m_portal->load();
... View more
10-19-2018
10:45 AM
|
0
|
3
|
1273
|
|
POST
|
I believe you'll need to call queryRelatedFeatureWithFieldOptions in a loop for each relationship in the table - ServiceFeatureTable QML Type | ArcGIS for Developers ArcGISFeatureLayerInfo QML Type | ArcGIS for Developers
... View more
10-17-2018
12:15 PM
|
0
|
1
|
1162
|
|
POST
|
I'm not aware of any issues. The following prints out tags for me: import QtQuick 2.6
import QtQuick.Controls 1.4
import Esri.ArcGISRuntime 100.3
ApplicationWindow {
id: appWindow
width: 800
height: 600
// add a mapView component
MapView {
anchors.fill: parent
// set focus to enable keyboard navigation
focus: true
// add a map to the mapview
Map {
initUrl: "http://www.arcgis.com/home/item.html?id=392451c381ad4109bf04f7bd442bc038"
onLoadStatusChanged: {
if (loadStatus === Enums.LoadStatusLoaded) {
operationalLayers.forEach(function(lyr) {
if (lyr.loadStatus === Enums.LoadStatusLoaded) {
console.log(lyr.name, "tags:", lyr.item.tags)
} else {
lyr.loadStatusChanged.connect(function() {
if (lyr.loadStatus === Enums.LoadStatusLoaded) {
console.log(lyr.name, "tags:", lyr.item.tags)
}
});
lyr.load();
}
});
}
}
}
}
}
... View more
10-16-2018
02:22 PM
|
1
|
0
|
1805
|
|
POST
|
This is tough since QML is a managed language. The trick is to make sure that all references have gone out of scope. Otherwise, the GC won't clean it up. If you are suspicious that it is the geodatabase that still has references to it, you could try calling the close method on it directly - Geodatabase QML Type | ArcGIS for Developers This will close off references and allow you to delete the geodatabase. But if you still have a bunch of layers, tables, and maps created and referenced inside the mmpk, this will be hard to clear out in QML. Does Geodatabase::close help you at all?
... View more
10-15-2018
09:46 AM
|
0
|
1
|
1102
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 05-27-2026 09:52 AM | |
| 1 | 11-24-2025 10:45 AM | |
| 1 | 07-30-2025 08:26 AM | |
| 1 | 05-15-2025 07:35 AM | |
| 2 | 11-26-2024 01:27 PM |
| Online Status |
Offline
|
| Date Last Visited |
06-17-2026
07:54 AM
|