|
POST
|
you can upload a zip file right here in GeoNet. You have to expand the toolbar on the top of the reply and select Use Advanced Editor, which will allow you to upload an attachment. Otherwise, on AGOL, I've uploaded zips in the past, but you need to mark them as "Code Sample".
... View more
10-05-2020
07:48 AM
|
0
|
2
|
2148
|
|
POST
|
Are you able to break out a simple example of the problem into a separate project I can try?
... View more
10-05-2020
07:37 AM
|
0
|
2
|
2293
|
|
POST
|
Which group are you referring to? Do you have a link?
... View more
10-05-2020
07:35 AM
|
0
|
4
|
2148
|
|
POST
|
Could this be happening because the PictureMarkerSymbol is a local (stack) variable? Maybe... That isn't the way we generally test our QObject* derived classes. Could you try making it a member and delete/construct a new object (or use smart pointer) when you need to update (you are correct - you can't update the URL/QImage of the marker symbol).
... View more
10-02-2020
08:49 AM
|
0
|
4
|
2293
|
|
POST
|
Version shouldn't matter. Are you using AppStudio or building from source with the Qt SDK directly?
... View more
10-02-2020
08:38 AM
|
0
|
7
|
2148
|
|
POST
|
Seems like data shouldn't make a difference since the feature service I sent doesn't work for you. I'm unsure what the difference would be. Could you try commenting out the following? mapView.calloutData.location = clickedPoint; I had a quick look at the internals and it seems like it expects you to either set the geoelement property or the location property. Setting location would be ideal for when you just want to click on the map and show a callout at that location. Setting the geoelement is ideal when you want to place the callout on a graphic or feature. I'm wondering if setting both is getting us into some strange race condition giving us different results.
... View more
10-02-2020
07:39 AM
|
0
|
9
|
2148
|
|
POST
|
Are you able to share any data? That's the last major difference in our testing that I can think of. Alternatively, can you try my code with the feature service and see if that works for you?
... View more
10-01-2020
01:11 PM
|
0
|
11
|
3144
|
|
POST
|
I tried that and the following code worked for me as well. Does this work for you? import QtQuick 2.6
import QtQuick.Controls 2.2
import Esri.ArcGISRuntime 100.9
import Esri.ArcGISRuntime.Toolkit.Controls 100.9
ApplicationWindow {
id: appWindow
width: 800
height: 600
title: "test"
property Point clickedPoint
property FeatureLayer featureLayer
// add a mapView component
MapView {
id: mapView
anchors.fill: parent
// set focus to enable keyboard navigation
focus: true
// add a map to the mapview
Map {
MobileMapPackage {
id: mmpk
path: "file:///Users/luca6804/ArcGIS/Runtime/UnitTests/mmpks/advancedSymbols.mmpk"
Component.onCompleted: {
mmpk.load();
}
onLoadStatusChanged: {
if (loadStatus === Enums.LoadStatusLoaded) {
mapView.map = mmpk.maps[0];
// mapView.map.minScale = 15000;
// mapView.map.maxScale = 1000;
var identLayerList = mmpk.maps[0].operationalLayers;
featureLayer = identLayerList.get(0);
var identLayerName = featureLayer.name;
var featureTable = featureLayer.featureTable;
console.log("Identify Layer name is " + identLayerName);
//mapView.setViewpointScale(initialScale);
//locationDisplay.start();
}
}
}
}
calloutData {
}
Callout {
id: callout
calloutData: parent.calloutData
accessoryButtonHidden: true
leaderPosition: leaderPositionEnum.Automatic
}
onMouseClicked: {
clickedPoint = mouse.mapPoint;
var tolerance = 5,
returnPopupsOnly = false,
maximumResults = 1;
mapView.identifyLayerWithMaxResults(featureLayer, mouse.x, mouse.y, tolerance, returnPopupsOnly, maximumResults);
}
onIdentifyLayerStatusChanged: {
if (identifyLayerStatus === Enums.TaskStatusCompleted) {
featureLayer.clearSelection();
const elem = identifyLayerResult.geoElements[0];
const count = identifyLayerResult.geoElements.length;
featureLayer.selectFeatures(elem);
// var featureName = elem.attributes.attributeValue("Name");
// var xcoord = elem.attributes.attributeValue("POINT_X");
// var ycoord = elem.attributes.attributeValue("POINT_Y");
mapView.calloutData.geoElement = elem;
// mapView.calloutData.detail = featureName;
mapView.calloutData.location = clickedPoint;
callout.showCallout();
}
}
}
}
... View more
10-01-2020
11:09 AM
|
0
|
13
|
3143
|
|
POST
|
Can you share your code that gets a reference to the featureLayer?
... View more
09-30-2020
11:43 AM
|
0
|
15
|
3143
|
|
POST
|
Do you get any errors in your console about undefined references or anything like that? I took your code and added some layers and was able to get it to work as expected: import QtQuick 2.6
import QtQuick.Controls 2.2
import Esri.ArcGISRuntime 100.9
import Esri.ArcGISRuntime.Toolkit.Controls 100.9
ApplicationWindow {
id: appWindow
width: 800
height: 600
title: "Test"
property Point clickedPoint
// add a mapView component
MapView {
id: mapView
anchors.fill: parent
// set focus to enable keyboard navigation
focus: true
// add a map to the mapview
Map {
// add the BasemapTopographic basemap to the map
BasemapTopographic {}
FeatureLayer {
id: featureLayer
ServiceFeatureTable {
url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/DamageAssessment/FeatureServer/0"
}
}
}
calloutData {
}
Callout {
id: callout
calloutData: parent.calloutData
accessoryButtonHidden: true
leaderPosition: leaderPositionEnum.Automatic
}
onMouseClicked: {
clickedPoint = mouse.mapPoint;
var tolerance = 5,
returnPopupsOnly = false,
maximumResults = 1;
mapView.identifyLayerWithMaxResults(featureLayer, mouse.x, mouse.y, tolerance, returnPopupsOnly, maximumResults);
}
onIdentifyLayerStatusChanged: {
if (identifyLayerStatus === Enums.TaskStatusCompleted) {
featureLayer.clearSelection();
const elem = identifyLayerResult.geoElements[0];
const count = identifyLayerResult.geoElements.length;
featureLayer.selectFeatures(elem);
// var featureName = elem.attributes.attributeValue("Name");
// var xcoord = elem.attributes.attributeValue("POINT_X");
// var ycoord = elem.attributes.attributeValue("POINT_Y");
mapView.calloutData.geoElement = elem;
// mapView.calloutData.detail = featureName;
mapView.calloutData.location = clickedPoint;
callout.showCallout();
}
}
}
}
... View more
09-30-2020
11:17 AM
|
0
|
17
|
3143
|
|
POST
|
after you call setWidth and setHeight, do you get back square or rectangle dimensions? can you try setting the graphics rendering mode on the graphics overlay explicitly to dynamic and explicitly to static? I'm curious if either of these gives differing results.
... View more
09-30-2020
08:51 AM
|
0
|
7
|
5552
|
|
POST
|
When the aspect ratio changes, what is the width and height that is being reported on the picture marker symbol?
... View more
09-30-2020
07:27 AM
|
0
|
9
|
5552
|
|
POST
|
Yes, you can use a Tube symbol in Dynamic mode. Here is some code to get you on the right track: GraphicsOverlay* overlay = new GraphicsOverlay(this);
overlay->setRenderingMode(GraphicsRenderingMode::Dynamic);
auto sceneProps = overlay->sceneProperties();
sceneProps.setSurfacePlacement(SurfacePlacement::Absolute);
overlay->setSceneProperties(sceneProps);
m_sceneView->graphicsOverlays()->append(overlay);
PolylineBuilder* pb = new PolylineBuilder(SpatialReference::wgs84(), this);
pb->addPoint(0,0,0);
pb->addPoint(1,1,20000);
pb->addPoint(1.5,1.5,10000);
pb->addPoint(1.75,1.75,0);
SolidStrokeSymbolLayer* strokeSymbolLayer = new SolidStrokeSymbolLayer(5000, QColor("red"), {}, StrokeSymbolLayerLineStyle3D::Tube);
MultilayerPolylineSymbol* tubeSymbol = new MultilayerPolylineSymbol({strokeSymbolLayer}, this);
Graphic* graphic = new Graphic(this);
graphic->setGeometry(pb->toGeometry());
graphic->setSymbol(tubeSymbol);
overlay->graphics()->append(graphic);
... View more
09-22-2020
08:48 AM
|
0
|
0
|
791
|
|
POST
|
I agree with Mark - the best solution is to author your map with the vtpk directly in it. If you can't do it, I think the issue might be with your URL property of the vector tile layer object - URL properties will take either an online or local file url, so for example, could start with "http://" or "file://". Path properties are for local files only (hence why your mmpk path can use your filePath relative directory variable).
... View more
09-22-2020
08:15 AM
|
0
|
0
|
5015
|
|
POST
|
Yup, we show that type of workflow here : QML - arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_QMLSamples/Routing/FindClosestFacilityToMultipleIncidentsService at master … C++ - arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_CppSamples/Routing/FindClosestFacilityToMultipleIncidentsService at master …
... View more
09-18-2020
10:25 AM
|
1
|
0
|
1489
|
| Title | Kudos | Posted |
|---|---|---|
| 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 | |
| 1 | 06-26-2015 10:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|