|
POST
|
You shouldn't need to I don't think. Maybe you can try printing console.log(myApp.authManager) when the apps Component.onComplete event occurs to see what it displays?
... View more
09-20-2017
09:26 AM
|
0
|
1
|
1236
|
|
POST
|
Its hard to tell without seeing all of the code - but it looks to me as though the property has not notified QML that the authManager is ready yet. Do you have a signal that you emit in the c'tor of your type to show that the property (the singleton) has changed? Or is the property marked CONSTANT?
... View more
09-20-2017
09:19 AM
|
0
|
14
|
1236
|
|
POST
|
You would need to register it (probably in your main.cpp) for QML - something like this: qmlRegisterUncreatableType<AuthenticationManager>("Esri.MyApp", 1, 0, "AuthenticationManager", "AuthenticationManager is uncreateable");
... View more
09-20-2017
09:00 AM
|
0
|
17
|
1236
|
|
POST
|
Hi Nicholas, have you registered the `AuthenticationManager` as a singleton and exposed it as a property from C++? If you are able to share some of your code I may be able to see if there is a problem
... View more
09-20-2017
08:31 AM
|
0
|
19
|
1664
|
|
POST
|
Hi Nicholas, that makes sense to me. You may also want to check out the OfflineMapTask (OfflineMapTask Class | ArcGIS for Developers ) for that workflow.
... View more
09-20-2017
07:00 AM
|
0
|
22
|
1664
|
|
POST
|
Hi Nicholas, For exporting tiles from these services you will need to authenticate with an arcgisonline account. This guide topic Access the ArcGIS platform—ArcGIS Runtime SDK for Qt | ArcGIS for Developers should give you some idea of how to go about authenticating your app. You probably want to look at the AuthenticationManager section. The API reference for that type (AuthenticationManager Class | ArcGIS for Developers ) also has some useful information. Basically, you need to respond to the request for a token with some credentials - using the AuthenticationManager (singleton) with an AuthenticationView qml component will give you a sign in experience. Does that make sense? One question I had is whether this is a one time export (e.g. to prepare the data) or if this is something you would like your app to do ever time it runs? I hope that helps, Luke
... View more
09-20-2017
06:43 AM
|
0
|
24
|
1664
|
|
POST
|
Hi Arthur, thanks for trying out the SDK. Are you using QtCreator as your IDE? If so, you should be able to create a template ArcGISRuntime project by going to: File/New File or Project/ArcGIS/ and choosing "ArcGISRuntime 100.2 QtQuick C++ App" This will create a simple project with a QQuickWindow which displays a `MapQuickView` or a `SceneQuickView`. You can also check out some of the Dev Labs (Get Started with ArcGIS DevLabs | ArcGIS for Developers) which guide you through some common project patterns. If you are not able to see the "ArcGIS" section under "New File or Project" you may need to re-run the PostInstaller which comes with the SDK (this provides the template projects to QtCreator). I hope that helps, Luke
... View more
09-20-2017
03:19 AM
|
1
|
1
|
1019
|
|
POST
|
Hi Nicholas - which online basemap are you trying to export with? If you are using the standard base maps you will find that they do not support exporting tile packages. However, you can use the maps defined in this group instead: http://www.arcgis.com/home/group.html?id=3a890be7a4b046c7840dc4a0446c5b31#overview I hope that helps, Luke
... View more
09-20-2017
03:12 AM
|
0
|
26
|
1664
|
|
POST
|
Hi Anat, unfortunately there is not currently any API to change the brightness for the whole MapQuickView and all of its contents. You are correct that you could use the ImageAdjustmentLayer to set the brightness for some of the layers in your map - specifically: - ArcGISMapImageLayer - ImageTiledLayer - RasterLayer Does your map contain any of these layer types? If so, and you want to change the brightness on just these types, I think you could do something like: 1. connect to a UI signal or something when you want to change to a new brightness value 2. get the LayerListModels of operational layers from the map and the base/reference layers from the basemap 3. for each of the models, iterate over the layers and attempt to cast to an ImageAdjustmentLayer 4. if the cast was successful, call setBrightness with the new value Here is some example code to get your started: LayerListModel* operationalLayers = map->operationalLayers(); LayerListModel* baseLayers = map->basemap()->baseLayers(); LayerListModel* refLayers = map->basemap()->referenceLayers(); for (LayerListModel* model : {operationalLayers, baseLayers, refLayers}) { for (int i = 0; i < model->rowCount(); ++i) { Layer* layer = model->at(i); if (!layer) continue; ImageAdjustmentLayer* imageAdjustmentLyr = qobject_cast<ImageAdjustmentLayer*>(layer); if (!imageAdjustmentLyr) continue; imageAdjustmentLyr->setBrightness(newBrightness); } } I hope that helps. Luke
... View more
09-12-2017
03:56 AM
|
0
|
1
|
1485
|
|
POST
|
H Nicholas, if you can walk the vertices of the geometry (e.g. using ImmutablePartCollection and so on) you should be able to use the distanceGeodetic method on GeometryEngine (GeometryEngine Class | ArcGIS for Developers ) to determine the azimuth from the start to the end point of your segments.
... View more
09-07-2017
06:27 AM
|
2
|
0
|
1799
|
|
POST
|
Hi Nicholas, assuming you can determine the angle you would like to show your arrows at for each segment, you could achieve something like this by adding SimpleMarkerSymbols, with the style set to Triangle. If you use a renderer with a rotation expression you can set an attribute on each Graphic to rotate to your desired angle. The code below shows a simple example: GraphicsOverlay* overlay = new GraphicsOverlay(this); m_mapView->graphicsOverlays()->append(overlay); SimpleMarkerSymbol* symbol = new SimpleMarkerSymbol(SimpleMarkerSymbolStyle::Triangle, Qt::red, 25, this); Graphic* g1 = new Graphic(Point(0., 0., SpatialReference::wgs84()), this); g1->attributes()->insertAttribute("ANGLE", 10); overlay->graphics()->append(g1); Graphic* g2 = new Graphic(Point(51., 0., SpatialReference::wgs84()), this); g2->attributes()->insertAttribute("ANGLE", 45); overlay->graphics()->append(g2); Graphic* g3 = new Graphic(Point(51., 22., SpatialReference::wgs84()), this); g3->attributes()->insertAttribute("ANGLE", 28); overlay->graphics()->append(g3); SimpleRenderer* renderer = new SimpleRenderer(symbol, this); renderer->setRotationExpression("[ANGLE]"); overlay->setRenderer(renderer); If you would like to more complex arrow symbols, there are probably two approaches you could take: 1. Use a PictureMarkerSymbol with an image of your arrow 2. Use a CompositeSymbol to combine several SimpleMarkerSymbols (e.g. a Triangle and a Square) to make the arrow shape I hope that helps, Luke
... View more
09-07-2017
04:17 AM
|
0
|
2
|
1799
|
|
POST
|
Hi Juan, I think the problem here is that you are directly printing the Point to qDebug(). The problem is that we do not support this operater for the Point type - so you are actually printing invalid geometry details. If you want to see a string representation of the point you can do something like: qDebug()<<" Punto :: "<<mapPoint.toJson(); I hope that makes helps. Luke
... View more
09-06-2017
02:20 AM
|
2
|
1
|
1480
|
|
POST
|
That doesn't sound expected - would you be able to post your code and I'll see if I can reproduce?
... View more
09-05-2017
04:27 AM
|
0
|
1
|
652
|
|
POST
|
Do you mean that you are unable to pan outside of the extents of the raster data-set?
... View more
09-05-2017
04:16 AM
|
0
|
3
|
4100
|
|
POST
|
Also, this call var centerPoint = Qt.point(34.89521560479882, 32.133239999999994) is creating the incorrect type (I think its a QML Point). You should be creating an ArcGIS Point type by doing something like: var centerPoint = GeometryEngine.project(ArcGISRuntimeEnvironment.createObject("Point", {x: 34.89521560479882, y: 32.133239999999994, spatialReference: sr})
... View more
09-05-2017
03:47 AM
|
0
|
0
|
4100
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-04-2018 04:22 AM | |
| 1 | 11-02-2022 06:25 AM | |
| 1 | 07-12-2022 05:35 AM | |
| 4 | 10-21-2021 01:58 AM | |
| 1 | 07-12-2021 01:09 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-23-2024
09:16 AM
|