|
POST
|
We don't have a high level animation framework in the API yet. However, using a timer and our GeometryEngine, you can create animation. We do this in the GeoElement viewshed sample, where you click on the scene, and the graphic animates towards it until it reaches the point - arcgis-runtime-samples-qt/ViewshedGeoElement.qml at master · Esri/arcgis-runtime-samples-qt · GitHub As for a custom PositionSource, I believe you are correct that you need to subclass it and then register it as a QML Type. The DSA link I sent you shows you the subclassing of it to make it a GPX reader, but in this case, it is used in our C++ API instead of QML, so it doesn't need to be registered as a QML type. I unfortunately don't have an example for you of this. I'll let you know if I come up with anything to share. Otherwise, cross posting in Qt's forum might be good. They don't usually know about our types, but they know about Qt types like PositionSource/QGeoPositionInfoSource.
... View more
02-08-2019
06:45 AM
|
0
|
0
|
1587
|
|
POST
|
You can do this with Graphics. We have a few samples for it in our sample repo. Here is one of them arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_CppSamples/DisplayInformation/GOSymbols at master · Esri/arcgis-runtime-sam…
... View more
02-08-2019
06:33 AM
|
0
|
1
|
1502
|
|
POST
|
If you want to draw in "map coordinate" space, then I'd suggest using our Geometry classes to create a Point, Polyline, or Polygon, and then display it on the map with a Graphic. That is showcased in this sample - arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_CppSamples/DisplayInformation/GOSymbols at master · Esri/arcgis-runtime-sam… If you want to draw in screen coordinate space and it doesn't need to stay tied to a map location, you can use any of Qt's mechanisms to draw, like QPainter.
... View more
02-08-2019
06:32 AM
|
0
|
0
|
912
|
|
POST
|
The general workflow in the shapefile dynamic workspace sample should be what you follow for the file geodatabase - arcgis-runtime-samples-qt/DynamicWorkspaceShapefile.cpp at master · Esri/arcgis-runtime-samples-qt · GitHub The general workflow is: create LocalMapService from blank MPK. You can use the one provided in the sample (https://www.arcgis.com/home/item.html?id=ea619b4f0f8f4d108c5b87e90c1b5be0 ). This doesn't mean you will need a map, it is just an intermediate step needed to start up a local map service. Create a FileGeodatabaseWorkspace FileGeodatabaseWorkspace Class | ArcGIS for Developers Create TableSublayerSource Set the dynamic workspace on the LocalMapService Start the service Once the service starts, you should see REST endpoints to Map Services that are spun up Create a ServiceFeatureTable by pointing to these REST endpoint URLs You can then query the ServiceFeatureTable
... View more
02-06-2019
07:30 AM
|
0
|
2
|
2430
|
|
POST
|
The Location Display was built to work with Qt's native position type, PositionSource, and any subclasses of it. If you can manage to get a customized PositionSource going, that should work just fine with Location Display. We've subclassed QGeoPositionInfoSource to make a Position Source based off GPX files instead (for an example app) - dynamic-situational-awareness-qt/GPXLocationSimulator.h at master · Esri/dynamic-situational-awareness-qt · GitHub Not sure on the specifics about why the log file example isn't working - might be good to cross post on Qt's forums too. Also, if you wanted, you could simply display a Graphic on the Map/Scene and update it's geometry as it comes in. This would require no position source. But it also means you won't be using Location Display, which means you will loose some built in functionality, like automatically follow/center. However, there are other ways you can accomplish similar things with the API.
... View more
02-04-2019
01:41 PM
|
1
|
2
|
1587
|
|
POST
|
To use the Runtime SDK in an existing app, all you should need to do is include the provided PRI file as specified here - Qt SDK best practices—ArcGIS Runtime SDK for Qt | ArcGIS for Developers. Once you run qmake again, you should now have access to all of the ArcGIS headers and everything you need to start coding in your app.
... View more
01-30-2019
06:55 AM
|
0
|
1
|
1295
|
|
POST
|
I gave this a try with a photo from my iPhone (attached) and it seems to work for me. Here is what I had (just copied from the API doc pretty much): // Copyright 2016 ESRI
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
//
// See the Sample code usage restrictions document for further information.
//
import QtQuick 2.6
import QtQuick.Controls 2.2
import Esri.ArcGISExtras 1.1
ApplicationWindow {
id: appWindow
width: 800
height: 600
title: "Untitled16"
ExifInfo {
id: exif1
filePath: "C:/temp/IMG_2776.jpg"
function logExifMetadata() {
console.log(
"\nFile: " + exif1.filePath +
"\nCreated: " + exif1.created +
"\nIs Exif valid? " + exif1.isExifValid +
"\nExif version: " + exif1.extendedValue(0x9000) +
"\nCamera manuf: " + exif1.imageValue(0x010F) +
"\nCamera model: " + exif1.imageValue(0x0110) +
"\nGPS latitude: " + exif1.gpsLatitude +
"\nGPS longitude: " + exif1.gpsLongitude +
"\nGPS altitude: " + exif1.gpsAltitude +
"\nGPS speed: " + exif1.gpsValue(0x000D) +
"\nAll image tags: " + exif1.imageTags +
"\nAll extended tags: " + exif1.extendedTags +
"\nAll GPS tags: " + exif1.gpsTags);
}
}
Button {
onClicked: exif1.logExifMetadata()
}
}
And here is the output: File: C:/temp/IMG_2776.jpg
Created: Wed Jan 23 14:42:26 2019 GMT-0600
Is Exif valid? true
Exif version:
Camera manuf: Apple
Camera model: iPhone XR
GPS latitude: 19.699025
GPS longitude: -155.46133333333333
GPS altitude: 34.08290480371253
GPS speed: 0
All image tags: 271,272,274,282,283,296,305,306,322,323
All extended tags: 33434,33437,34850,34855,36864,36867,36868,37121,37377,37378,37379,37380,37383,37385,37386,37396,37500,37521,37522,40960,40962,40963,41495,41729,41986,41987,41989,41990,42034,42035,42036
All GPS tags: 1,2,3,4,5,6,7,12,13,16,17,23,24,29,31 Perhaps there is something up with the images you are using, or maybe the formats being used aren't working correctly with the ExifInfo class. FYI, we missed in the doc that this class inherits FileInfo, so we will be fixing that up. All properties/methods on FileInfo are therefore also available on ExifInfo
... View more
01-23-2019
12:49 PM
|
0
|
1
|
2670
|
|
POST
|
The bug Eric was referring to was in the QML API only (no C++ issues). The issue was that the load cycle in QML was not working correctly which could cause the EncLayer to not display at all.
... View more
01-23-2019
12:24 PM
|
0
|
0
|
10290
|
|
POST
|
Could you please message me a simple project that demonstrates the issues you are seeing? Thanks!
... View more
01-23-2019
12:22 PM
|
0
|
1
|
10290
|
|
POST
|
There are some examples of this here - arcgis-runtime-qt-projects-100/OverrideMapSignals at master · ldanzinger/arcgis-runtime-qt-projects-100 · GitHub For example, you could do: connect(m_mapView, &MapQuickView::mousePressed, [](QMouseEvent& event)
{
// accept the event - this will prevent the default panning from happening
event.accept();
});
... View more
01-23-2019
12:02 PM
|
1
|
1
|
1943
|
|
POST
|
The list of layers comes back as a list of Layer*, which don't contain the LabelsDefinitions members. Can you try casting the Layer* to a FeatureLayer*? I'm not certain if this will work or not, but it is worth a try. Something like: dynamic_cast<FeatureLayer*>(collectionLayer->layers()->at(0))->labelDefinitions->append(labelDef);
... View more
01-23-2019
11:58 AM
|
0
|
1
|
1051
|
|
POST
|
I don't believe there is a way at the moment. As a workaround for the time being, you could create a Graphic based on the symbol and geometry of the feature that you desire to "promote" and add a graphic to an overlay to give the illusion that the z index is changing
... View more
01-22-2019
02:59 PM
|
1
|
0
|
2315
|
|
POST
|
Essentially you need to draw a rectangle on the screen and convert the corners from screen coordinates to map coordinates. Once you do that, you can get an Envelope representing the extent, and then create a ViewpointExtent from the envelope, and setViewpoint on the MapView. We have an example similar to what you are looking for, where the sample draws a rectangle and converts it to an Envelope so that this area can be taken offline. You can based your example off this only instead of exporting tiles, you'd zoom to the Envelope arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_QMLSamples/Layers/ExportTiles at master · Esri/arcgis-runtime-samples-qt · …
... View more
01-07-2019
07:28 AM
|
0
|
3
|
1943
|
|
POST
|
A similar suggestion is discussed here - https://community.esri.com/message/789099-re-graphic-tooltip?commentID=789099#comment-789099
... View more
01-04-2019
07:07 AM
|
0
|
0
|
912
|
|
POST
|
100.x only - I can't remember the exact version, but I think 100.2 it came in.
... View more
12-21-2018
12:25 PM
|
0
|
0
|
2469
|
| 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
|