|
POST
|
You can subclass ServiceImageTiledLayer like explained in the detailed description here - https://developers.arcgis.com/qt/latest/cpp/api-reference/esri-arcgisruntime-serviceimagetiledlayer.html Attached is a working example hitting the online URLs. You should be able to modify the code to point to local file URLs instead of online URLs. Make sure to update the full extent and tile info to match your tile cache.
... View more
07-23-2019
02:42 PM
|
0
|
3
|
3181
|
|
POST
|
Can you provide some more details? Which platforms are you on? What does your code look like? Are you on a VM? What graphics card and GPU do you have? Do map views work as expected?
... View more
07-23-2019
02:32 PM
|
0
|
4
|
3622
|
|
POST
|
The workflow for setting elevation source via a dt2 is highlighted in the sample here - https://github.com/Esri/arcgis-runtime-samples-qt/blob/master/ArcGISRuntimeSDKQt_CppSamples/Scenes/CreateTerrainSurfaceFromLocalRaster/CreateTerrainSurfaceFromLocalRaster.cpp
... View more
07-23-2019
02:30 PM
|
0
|
0
|
1325
|
|
POST
|
Update to this (as of July 22) - Esri has worked with Microsoft to identify the issue. The details of the underlying issue, several possible workarounds, as well as an update about how Esri plans to address the issue can be found in this KB article - https://support.esri.com/en/Technical-Article/000021401
... View more
07-22-2019
07:09 AM
|
0
|
0
|
4010
|
|
POST
|
I don't have good data to test if this works or not, but can you try setting the noDataTileBehavior property (inherited from ImageTiledLayer) to Enums.NoDataTileBehaviorBlank - https://developers.arcgis.com/qt/latest/qml/api-reference/enums-nodatatilebehavior.html
... View more
07-22-2019
07:03 AM
|
0
|
8
|
2880
|
|
POST
|
Yes, potential adverse effects include symbols not scaling well on high DPI devices (due to rasterization of the symbol). Also, this solution will only work for points - if you have lines or polygons with character marker symbols in them (for example, at vertices or endpoints, they will likely not draw correctly. In general, the experience you see with advanced symbols off should be similar to what you see in the ArcGIS Online map viewer - the same limitations apply there as when you turn off advanced symbology in the Runtime.
... View more
06-26-2019
07:22 AM
|
2
|
0
|
4010
|
|
POST
|
LoadSettings on the Map object will only apply those settings to the layers that are in the map prior to loading it. In your example here, wherever you create the ServiceFeatureTable, set the useAdvancedSymbology property to true prior to loading the table/layer - https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-arcgisfeaturetable.html#useAdvancedSymbology-prop
... View more
06-25-2019
03:03 PM
|
0
|
2
|
4010
|
|
POST
|
Can you try the following please: - go to the web map item details page - Settings - Offline > Advanced Options - Make sure you have the radio button checked that says "Device will download and get updates to features and attachments." details here - https://doc.arcgis.com/en/arcgis-online/manage-data/take-maps-offline.htm#ESRI_SECTION1_6CE94B6639C44D5AB860FD74256387CA
... View more
06-25-2019
08:17 AM
|
0
|
0
|
2548
|
|
POST
|
Hi Brent, Yes, this is possible with the LocationDisplay and PositionSource classes. PositionSource is a Qt Framework class that obtains the location via GPS (works offline) and the LocationDisplay is an ArcGIS Runtime class that displays the current location on the map. The LocationDisplay takes in a PositionSource object. Here is the API doc for: LocationDisplay - https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-locationdisplay.html PositionSource - https://doc.qt.io/qt-5/qml-qtpositioning-positionsource.html And here is a sample, which does use an online basemap, but the actual coordinate display does not require any connection. You could swap out the sample to use a local tile package instead and it would be an offline solution - https://github.com/Esri/arcgis-runtime-samples-qt/tree/master/ArcGISRuntimeSDKQt_QMLSamples/Maps/DisplayDeviceLocation
... View more
06-25-2019
07:48 AM
|
0
|
0
|
1311
|
|
POST
|
The issue is probably that you need to load the Feature before you access its attachments. GlobalID and ObjectID and any fields that are required for rendering will be there automatically but anything else can only be accessed once the object is loaded. More details on Loadable can be found here - https://developers.arcgis.com/qt/latest/qml/guide/loadable-pattern.htm For example, something like the following should get you in the right direction: // create array to store features in temporarily so they don't get garbage collected
property var featureList: []
function processQueryFeaturesResult(queryResult) {
try {
if (!queryResult || !queryResult.iterator.hasNext) {
// No features returned
console.log("No features returned")
return
}
while (queryResult.iterator.hasNext) {
var feature = queryResult.iterator.next()
// add feature to array to avoid GC
featureList.push(feature);
// connect to loadStatusChanged signal
feature.loadStatusChanged.connect(function(){
if (feature.loadStatus === Enums.LoadStatusLoaded) {
// access attachments once the feature is loaded
}
});
// load the feature
feature.load();
}
}
}
... View more
06-24-2019
08:42 AM
|
0
|
0
|
2548
|
|
POST
|
i believe this is a duplicate of https://community.esri.com/thread/235754-does-arcgis-sdk-qt-supports-msvc-32-bit
... View more
06-24-2019
08:31 AM
|
0
|
0
|
843
|
|
POST
|
Please see the discussion in this related thread - https://community.esri.com/thread/207857-missing-32-bit-libs-in-release-1002-for-windows
... View more
06-24-2019
07:53 AM
|
0
|
0
|
1002
|
|
POST
|
Hey Jeremy- I'm not aware of any public services that uses character marker symbols, although there certainly could be some out there. I'm not sure what happened. It might be worth while to contact Esri Support to troubleshoot to see what changed, but I feel confident in predicting that something on the data/service side has changed since your app was rendering the data fine and it broke with the released version out of the blue. To capture requests and responses, you could also use Fiddler or Charles and view the traffic there. If you can reproduce the issue on a desktop machine it might be easier to do this than with a mobile device. Just to give you an idea (might help aid in troubleshooting), here is an example of a feature service that was published with a character marker symbol. I requested this by appending &returnAdvancedSymbols=true to the URL (e.g. http://testserver:6080/arcgis/rest/services/fc_test_13/FeatureServer/0?f=pjson&returnAdvancedSymbols=true) Default JSON (character makers converted to picture marker symbols - AGOL only supports this) "drawingInfo":{
"renderer":{
"type":"uniqueValue",
"field1":"COUNT",
"field2":null,
"field3":null,
"fieldDelimiter":", ",
"defaultSymbol":null,
"defaultLabel":null,
"uniqueValueInfos":[
{
"symbol":{
"type":"esriPMS",
"url":"6c9d23f3df51f1b4eb320bffdebfb0a4",
"imageData":"iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAZNJREFUOI2tlLFx5DAMRV/gGQbMkK3a4JVhtSGXcboyvG1IbagNKfsZA2QXLChr5Z21PWNEHBD8+AA++MIv2ssX9x1QUkol5zwBSFp+CtYDFzNbgFXS5O4dUCIBwPQdsAHYgKukHiCl1Lv7xcyukhYzK7XW0d3HZ2ADcG3BOedJ0uLurcQOGCTNwNjiH4H1wGZmRVIBRnc/s17j8WBmi6Q54pcz2AW41lrHyPrMrpLegTdJr8AdWBfNLsB0YjQE6+lYEvB2YNgBawMr3KZWgPlU+nucXxurw/0maWvvG9hF0tScLTKlVE4s+xPYJeLLXuaB6sZNRytAznly97/HXnFvG7cWrZJuYDGNPpw7u9DUH0klEu7qjykCPJxmAx04qDt8SzzcrdbaA2OArp/A4uJfSumTuk82uPsS8R0naQBMTWPuPqaU9g04Jqu19s0f67ZXcccs2AzA7O5jzrkAQ0ppX+6Dv2+MHoKFtd1svZvdfQU6dy9m1nb0W7/G3vTDt1PMbOUm7OXM6CnYwVY+ZPJFKPwHJC4TY8MDJ9oAAAAASUVORK5CYII=",
"contentType":"image/png",
"width":14,
"height":14,
"angle":0,
"xoffset":0,
"yoffset":0
},
"value":"2",
"label":"Multipart Feature has 50-100 features",
"description":""
},
{
"symbol":{
"type":"esriSMS",
"style":"esriSMSDiamond",
"color":[
0,
0,
0,
255
],
"size":25,
"angle":0,
"xoffset":0,
"yoffset":5,
"outline":null
},
"value":"1",
"label":"Multipart Feature has less than 50 features",
"description":""
},
{
"symbol":{
"type":"esriSMS",
"style":"esriSMSX",
"color":[
0,
0,
0,
255
],
"size":25,
"angle":100,
"xoffset":0,
"yoffset":7,
"outline":{
"color":[
0,
0,
0,
255
],
"width":6.432937632884479
}
},
"value":"3",
"label":"Multipart Feature has more than 100 features",
"description":""
}
]
},
"transparency":0,
"labelingInfo":null
}, and here is the advanced version (what Runtime requests by default): "drawingInfo":{
"renderer":{
"type":"uniqueValue",
"field1":"COUNT",
"field2":null,
"field3":null,
"fieldDelimiter":", ",
"defaultSymbol":null,
"defaultLabel":null,
"uniqueValueInfos":[
{
"symbol":{
"type":"CIMSymbolReference",
"symbol":{
"type":"CIMPointSymbol",
"symbolLayers":[
{
"type":"CIMVectorMarker",
"enable":true,
"colorLocked":false,
"anchorPointUnits":"Relative",
"scaleStrokesAndFills":true,
"size":12,
"dominantSizeAxis3D":"Z",
"frame":{
"xmin":0,
"ymin":0,
"xmax":531.0147783251231,
"ymax":533.9892692307692
},
"markerGraphics":[
{
"type":"CIMMarkerGraphic",
"geometry":{
"x":0,
"y":0
},
"symbol":{
"type":"CIMPointSymbol",
"symbolLayers":[
{
"type":"CIMVectorMarker",
"enable":true,
"colorLocked":true,
"anchorPoint":{
"x":0,
"y":0
},
"anchorPointUnits":"Points",
"offsetX":265.50738916256154,
"offsetY":266.9946346153846,
"size":533.9892692307692,
"dominantSizeAxis3D":"Z",
"frame":{
"xmin":0,
"ymin":0,
"xmax":531.0147783251231,
"ymax":533.9892692307692
},
"markerGraphics":[
{
"type":"CIMMarkerGraphic",
"geometry":{
"rings":[
[
[
266,
1
],
[
212,
5
],
[
163,
20
],
[
118,
44
],
[
77,
78
],
[
44,
119
],
[
20,
164
],
[
5,
213
],
[
0,
267
],
[
5,
321
],
[
20,
371
],
[
44,
416
],
[
77,
456
],
[
118,
490
],
[
162,
514
],
[
212,
529
],
[
266,
533
],
[
319,
529
],
[
368,
514
],
[
413,
490
],
[
454,
456
],
[
488,
415
],
[
512,
370
],
[
526,
321
],
[
531,
267
],
[
526,
213
],
[
512,
164
],
[
488,
118
],
[
454,
78
],
[
414,
44
],
[
369,
20
],
[
319,
5
],
[
266,
1
]
],
[
[
266,
520
],
[
215,
516
],
[
168,
502
],
[
125,
479
],
[
86,
447
],
[
54,
408
],
[
31,
365
],
[
17,
318
],
[
12,
267
],
[
17,
216
],
[
31,
169
],
[
54,
126
],
[
86,
87
],
[
125,
55
],
[
168,
32
],
[
215,
18
],
[
266,
14
],
[
317,
18
],
[
364,
32
],
[
407,
55
],
[
445,
87
],
[
478,
126
],
[
501,
169
],
[
514,
216
],
[
519,
267
],
[
514,
318
],
[
501,
365
],
[
478,
408
],
[
445,
447
],
[
407,
479
],
[
364,
502
],
[
317,
516
],
[
266,
520
]
],
[
[
269,
64
],
[
227,
67
],
[
189,
78
],
[
154,
97
],
[
123,
123
],
[
97,
154
],
[
78,
189
],
[
67,
227
],
[
63,
268
],
[
67,
310
],
[
78,
348
],
[
97,
383
],
[
123,
414
],
[
154,
440
],
[
189,
458
],
[
227,
469
],
[
269,
473
],
[
310,
469
],
[
348,
458
],
[
382,
440
],
[
414,
414
],
[
440,
382
],
[
458,
348
],
[
469,
310
],
[
473,
268
],
[
469,
227
],
[
458,
189
],
[
440,
154
],
[
414,
123
],
[
383,
97
],
[
348,
78
],
[
310,
67
],
[
269,
64
]
],
[
[
460,
267
],
[
456,
306
],
[
446,
341
],
[
429,
374
],
[
404,
403
],
[
375,
427
],
[
343,
445
],
[
307,
455
],
[
269,
459
],
[
230,
455
],
[
195,
445
],
[
162,
428
],
[
133,
403
],
[
109,
374
],
[
92,
342
],
[
81,
306
],
[
78,
267
],
[
81,
229
],
[
92,
194
],
[
109,
161
],
[
133,
132
],
[
163,
108
],
[
195,
91
],
[
230,
80
],
[
269,
77
],
[
307,
80
],
[
343,
91
],
[
375,
108
],
[
404,
132
],
[
429,
161
],
[
446,
194
],
[
456,
229
],
[
460,
267
]
],
[
[
268,
196
],
[
239,
202
],
[
215,
217
],
[
199,
241
],
[
193,
270
],
[
199,
298
],
[
215,
322
],
[
239,
338
],
[
268,
343
],
[
296,
338
],
[
320,
322
],
[
336,
298
],
[
342,
270
],
[
336,
241
],
[
320,
217
],
[
296,
202
],
[
268,
196
]
]
],
"spatialReference":{
"wkid":null
}
},
"symbol":{
"type":"CIMPolygonSymbol",
"symbolLayers":[
{
"type":"CIMFill",
"enable":true,
"colorLocked":true,
"pattern":{
"type":"CIMSolidPattern",
"color":[
0,
0,
0,
255
]
}
}
]
}
}
]
}
],
"anchorPointUnits":"Points",
"scaleX":1
}
}
]
}
],
"anchorPointUnits":"Relative",
"scaleX":1
},
"symbolName":"Symbol_91"
},
"value":"2",
"label":"Multipart Feature has 50-100 features",
"description":""
},
{
"symbol":{
"type":"CIMSymbolReference",
"symbol":{
"type":"CIMPointSymbol",
"symbolLayers":[
{
"type":"CIMVectorMarker",
"enable":true,
"colorLocked":false,
"anchorPointUnits":"Relative",
"offsetY":5,
"scaleStrokesAndFills":true,
"size":25,
"dominantSizeAxis3D":"Z",
"frame":{
"xmin":0,
"ymin":0,
"xmax":320.0033070882417,
"ymax":320.0034015774816
},
"markerGraphics":[
{
"type":"CIMMarkerGraphic",
"geometry":{
"rings":[
[
[
160.6,
217
],
[
180.2,
194.8
],
[
180.2,
296
],
[
173.8,
296
],
[
173.8,
210.7
],
[
154.5,
234.9
],
[
154.8,
164.9
],
[
160.6,
164.6
],
[
160.6,
217
]
],
[
[
157.9,
29.6
],
[
144.9,
30.7
],
[
132.9,
34.3
],
[
122,
40.1
],
[
112.1,
48.3
],
[
103.9,
58.2
],
[
98.1,
69.2
],
[
94.6,
81.2
],
[
93.4,
94.2
],
[
94.6,
107.4
],
[
98.1,
119.5
],
[
103.9,
130.5
],
[
112,
140.4
],
[
121.8,
148.6
],
[
132.7,
154.5
],
[
144.8,
158
],
[
157.9,
159.2
],
[
171.1,
158
],
[
183.1,
154.5
],
[
194,
148.6
],
[
203.9,
140.4
],
[
212,
130.5
],
[
217.8,
119.5
],
[
221.3,
107.4
],
[
222.4,
94.2
],
[
221.3,
81.2
],
[
217.7,
69.2
],
[
211.9,
58.2
],
[
203.7,
48.3
],
[
193.8,
40.1
],
[
182.9,
34.3
],
[
170.9,
30.7
],
[
157.9,
29.6
]
],
[
[
157.9,
24.2
],
[
172.1,
25.4
],
[
185.2,
29.2
],
[
197,
35.5
],
[
207.7,
44.3
],
[
216.5,
55
],
[
222.8,
66.9
],
[
226.6,
80
],
[
227.8,
94.2
],
[
226.5,
108.4
],
[
222.7,
121.4
],
[
216.4,
133.3
],
[
207.5,
144.1
],
[
196.8,
153.1
],
[
185,
159.5
],
[
172,
163.3
],
[
157.9,
164.6
],
[
143.7,
163.3
],
[
130.6,
159.5
],
[
118.8,
153.2
],
[
108.2,
144.3
],
[
99.3,
133.5
],
[
93,
121.6
],
[
89.3,
108.5
],
[
88,
94.2
],
[
89.3,
80.1
],
[
93.1,
67.1
],
[
99.4,
55.2
],
[
108.3,
44.5
],
[
119,
35.6
],
[
130.8,
29.3
],
[
143.8,
25.5
],
[
157.9,
24.2
]
]
],
"spatialReference":{
"wkid":null
}
},
"symbol":{
"type":"CIMPolygonSymbol",
"symbolLayers":[
{
"type":"CIMFill",
"enable":true,
"colorLocked":true,
"pattern":{
"type":"CIMSolidPattern",
"color":[
0,
0,
0,
255
]
}
}
]
}
},
{
"type":"CIMMarkerGraphic",
"geometry":{
"rings":[
[
[
173.8,
64
],
[
173.8,
71.4
],
[
142.8,
71.4
],
[
142.8,
127
],
[
134.5,
127
],
[
134.5,
64
],
[
173.8,
64
]
]
],
"spatialReference":{
"wkid":null
}
},
"symbol":{
"type":"CIMPolygonSymbol",
"symbolLayers":[
{
"type":"CIMFill",
"enable":true,
"colorLocked":true,
"pattern":{
"type":"CIMSolidPattern",
"color":[
0,
0,
0,
255
]
}
}
]
}
},
{
"type":"CIMMarkerGraphic",
"geometry":{
"rings":[
[
[
134.5,
64
],
[
134.5,
127
],
[
142.8,
127
],
[
142.8,
71.4
],
[
173.8,
71.4
],
[
173.8,
64
],
[
134.5,
64
]
]
],
"spatialReference":{
"wkid":null
}
},
"symbol":{
"type":"CIMPolygonSymbol",
"symbolLayers":[
{
"type":"CIMFilledStroke",
"enable":true,
"colorLocked":true,
"capStyle":"Butt",
"pattern":{
"type":"CIMSolidPattern",
"color":[
0,
0,
0,
255
]
},
"width":0.7937632884479093,
"lineStyle3D":"Strip",
"alignment":"Center",
"joinStyle":"Miter",
"miterLimit":112,
"patternFollowsStroke":false
}
]
}
}
]
}
],
"anchorPointUnits":"Relative",
"scaleX":1
},
"symbolName":"Symbol_92"
},
"value":"1",
"label":"Multipart Feature has less than 50 features",
"description":""
},
{
"symbol":{
"type":"CIMSymbolReference",
"symbol":{
"type":"CIMPointSymbol",
"symbolLayers":[
{
"type":"CIMVectorMarker",
"enable":true,
"colorLocked":false,
"anchorPointUnits":"Relative",
"offsetY":7,
"rotation":100,
"scaleStrokesAndFills":true,
"size":25,
"dominantSizeAxis3D":"Z",
"frame":{
"xmin":0,
"ymin":0,
"xmax":515.3673913043478,
"ymax":515.3673913043478
},
"markerGraphics":[
{
"type":"CIMMarkerGraphic",
"geometry":{
"paths":[
[
[
64,
129
],
[
129,
193
],
[
193,
129
],
[
258,
193
],
[
322,
129
],
[
386,
193
],
[
451,
129
]
]
],
"spatialReference":{
"wkid":null
}
},
"symbol":{
"type":"CIMPolygonSymbol",
"symbolLayers":[
{
"type":"CIMFilledStroke",
"enable":true,
"colorLocked":true,
"capStyle":"Square",
"pattern":{
"type":"CIMSolidPattern",
"color":[
0,
0,
0,
255
]
},
"width":12.865875265768958,
"lineStyle3D":"Strip",
"alignment":"Center",
"joinStyle":"Miter",
"miterLimit":112,
"patternFollowsStroke":false
}
]
}
},
{
"type":"CIMMarkerGraphic",
"geometry":{
"rings":[
[
[
360.5,
167.7
],
[
154.5,
373.7
],
[
154.5,
270.7
],
[
244.6,
180.6
],
[
257.5,
193.4
],
[
321.9,
129.1
],
[
360.5,
167.7
]
]
],
"spatialReference":{
"wkid":null
}
},
"symbol":{
"type":"CIMPolygonSymbol",
"symbolLayers":[
{
"type":"CIMFill",
"enable":true,
"colorLocked":true,
"pattern":{
"type":"CIMSolidPattern",
"color":[
0,
0,
0,
255
]
}
}
]
}
},
{
"type":"CIMMarkerGraphic",
"geometry":{
"rings":[
[
[
244.6,
180.6
],
[
154.5,
270.7
],
[
154.5,
373.7
],
[
360.5,
167.7
],
[
321.9,
129.1
],
[
257.5,
193.4
],
[
244.6,
180.6
]
]
],
"spatialReference":{
"wkid":null
}
},
"symbol":{
"type":"CIMPolygonSymbol",
"symbolLayers":[
{
"type":"CIMFilledStroke",
"enable":true,
"colorLocked":true,
"capStyle":"Butt",
"pattern":{
"type":"CIMSolidPattern",
"color":[
0,
0,
0,
255
]
},
"width":6.432937632884479,
"lineStyle3D":"Strip",
"alignment":"Center",
"joinStyle":"Miter",
"miterLimit":112,
"patternFollowsStroke":false
}
]
}
},
{
"type":"CIMMarkerGraphic",
"geometry":{
"paths":[
[
[
270.4,
257.8
],
[
412,
399.5
]
]
],
"spatialReference":{
"wkid":null
}
},
"symbol":{
"type":"CIMPolygonSymbol",
"symbolLayers":[
{
"type":"CIMFilledStroke",
"enable":true,
"colorLocked":true,
"capStyle":"Butt",
"pattern":{
"type":"CIMSolidPattern",
"color":[
0,
0,
0,
255
]
},
"width":12.865875265768958,
"lineStyle3D":"Strip",
"alignment":"Center",
"joinStyle":"Miter",
"miterLimit":112,
"patternFollowsStroke":false
}
]
}
}
]
}
],
"anchorPointUnits":"Relative",
"scaleX":1
},
"symbolName":"Symbol_93"
},
"value":"3",
"label":"Multipart Feature has more than 100 features",
"description":""
}
]
},
"transparency":0,
"labelingInfo":null
},
... View more
06-24-2019
07:50 AM
|
0
|
4
|
4010
|
|
POST
|
Hey Jeremy- Strange that things stopped working with your production and test apps at the same time - I think this suggests a possible issue in either the publishing process or server side. Can you post some images to show the differences between AGOL and Runtime? Character Marker Symbols are font based, so when you render these in ArcMap or Pro, the symbol is generated from the fonts that are installed on your system (ArcMap and Pro install several Esri fonts). When you publish those as feature services, 2 things happen: 1. These font based symbols are converted to picture marker symbols under the hood so that they can be rendered by any client. Many/most systems that consume this service won't have the font installed, but they can easily render an image. In ArcGIS Online's case, they request these symbols and display those on the map. Runtime has a flag for this as well so we can optionally simply display the symbols as images. This workflow makes it really flexible to work anywhere sine we don't rely on any fonts and simply need to render an image, but it has limitations in that you can no longer change the symbol client side (since it is an image) and it doesn't scale well, as it is pre-baked at a certain size, and that might not look great on certain screens. 2. These font based symbols are vectorized into geometries and an alternative endpoint on the feature service becomes available so that you can render these vectorized symbols instead of the picture marker symbols. This is much more flexible, allows client side edits, and scales well, but it is a much more advanced rendering pipeline. This is supported by Runtime and Pro (and is the default for both), but not supported in Online yet. My theory is that everything looks fine in Online because it is using its default rendering of picture markers, and Runtime looks different because it is using its default of "advanced symbols". One thing you could do to verify this is happening is to look at the requests for Online vs Runtime and in Runtime you will likely see &advancedSymbology=true as a parameter in the request for features. Couple of suggestions: 1) Force Runtime to render with the simple picture marker version of the symbols. You can do this by creating a LoadSettings object and setting it on the Map. Set the useAdvancedSymbology variable to false. This must be set prior to loading the map. More on that here - https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-loadsettings.html. I think this should work around the issue, but it could have some unintended consequences in rendering, so be sure to test out if you notice any regressions. Map {
initUrl: "..."
loadSettings: LoadSettings {
useAdvancedSymbology: false
}
} 2) Dig a bit deeper and verify the issue is indeed related to "simple" vs "advanced" symbols. If you use suggestion 1, this should work around the issue, but advanced symbols should work just fine as well. If you can share any data that showcases the issue, I can take a quick look. Also, I'd suggest you consider if anything else in your stack has changed, such as ArcMap/Pro versions, Enterprise versions, etc? If this used to work on your released client app and it broke out of the blue, it seems likely to be a chance in the service causing the rendering difference.
... View more
06-19-2019
07:16 AM
|
2
|
6
|
4010
|
|
POST
|
Please see the below code. Your code was pretty close, but the graphic needs to have an attribute added with the desired "number". I reformatted the expression a little. Feel free to further tweak it to meet your needs. // #1
SimpleMarkerSymbol* symbol_1 = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle::Circle, QColor("blue"), 10, this);
Point point_1(10.5, 40.5, SpatialReference(4236));
Graphic* g1 = new Graphic(point_1, symbol_1);
// insert attribute called "number" with desired value
g1->attributes()->insertAttribute("number", 1); // <---- THIS IS THE KEY ADDITION
m_graphicsOverlay->setRenderer(new SimpleRenderer(symbol_1, this));
m_graphicsOverlay->graphics()->append(g1);
// #2
SimpleMarkerSymbol* symbol_2 = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle::Circle, QColor("red"), 10, this);
Point point_2(10.5, 40, SpatialReference(4236));
Graphic* g2 = new Graphic(point_2, symbol_2);
g2->attributes()->insertAttribute("number", 2);
m_graphicsOverlay->setRenderer(new SimpleRenderer(symbol_2, this));
m_graphicsOverlay->graphics()->append(g2);
// #3
SimpleMarkerSymbol* symbol_3 = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle::Circle, QColor("green"), 10, this);
Point point_3(10, 40.5, SpatialReference(4236));
Graphic* g3 = new Graphic(point_3, symbol_3);
g3->attributes()->insertAttribute("number", 3);
m_graphicsOverlay->setRenderer(new SimpleRenderer(symbol_3, this));
m_graphicsOverlay->graphics()->append(g3);
//Labeling - label content is driven off the "number" attribute in each graphic.
// MAKE SURE TO UPDATE THE EXPRESSION TO USE THIS SYNTAX
const QString labelJson(R"({"labelExpressionInfo":{"expression":"$feature.number"},"labelPlacement":"esriServerLinePlacementAboveAlong","symbol":{"angle":0,"backgroundColor":[0,0,0,0],"borderLineColor":[0,0,0,0],"borderLineSize":0,"color":[0,0,255,255],"font":{"decoration":"none","size":11.25,"style":"normal","weight":"normal"},"haloColor":[0,0,0,0],"haloSize":0,"horizontalAlignment":"center","kerning":false,"type":"esriTS","verticalAlignment":"middle","xoffset":0,"yoffset":0}})");
LabelDefinition* labelDef = LabelDefinition::fromJson(labelJson, this);
... View more
06-10-2019
12:16 PM
|
2
|
0
|
1694
|
| 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 |
a month ago
|