POST
|
I want to change the symbol for the locationChanged event. I used the method setDefaultSymbol. But every time the gps changes, I get the circle-symbol. I have tried the other functions to change the symbol, but without success. How can I the the symbol?
... View more
11-01-2018
04:48 AM
|
0
|
1
|
342
|
POST
|
Thank you very much. It is now working. I have tried the positionUpdate Signal and I now get the altitude. Is this a bug in ArcGIS?
... View more
08-15-2018
09:41 AM
|
0
|
1
|
479
|
POST
|
connect(m_MapView->locationDisplay(),SIGNAL(locationChanged(Esri::ArcGISRuntime::Location)),this,SLOT(locationChanged(Esri::ArcGISRuntime::Location)));
... View more
08-13-2018
08:07 AM
|
0
|
3
|
479
|
POST
|
I have written a small app with qt and arcgis 100.3. When the gps information changes the slot LocationChanged is called. I thought that I would get the altitude from Location.position.z. But I always get 0 for the altitude. What do I have to do to get the actual altitude? void FlightMap::locationChanged(Esri::ArcGISRuntime::Location location) { Point pos=location.position(); x=pos.x(); y=pos.y(); z=pos.z(); }
... View more
08-12-2018
06:59 AM
|
0
|
5
|
663
|
POST
|
Hi Luke, after creating a new developer account everything is working fine. Thank you very, very much for the good support. I have another question to this topic. Because of the limited count of tile downloads (100000), is it possible to combine several .tbk-files?
... View more
08-11-2017
04:16 AM
|
0
|
1
|
230
|
POST
|
It is a developer account.(ArcGIS Online Public Account)
... View more
08-09-2017
07:48 AM
|
0
|
1
|
1348
|
POST
|
Hi Luke, If I want to use one of the recommended Basemaps I get an error, when I try to save the map: You can not add the National Geographic World Map (for Export) layer to the map because you do not have permission to use this layer.
... View more
08-08-2017
08:44 PM
|
0
|
3
|
1348
|
POST
|
Hi Luke, I created two maps on the arcgis portal and I set them to offline. The first Basemap is National Geographic and the other one is Openstreetmap. I used the OfflineMapTask. With the National Geographic Basemap I get the following Error "User does not have permissions to access 'natgeo_world_map.mapserver'." " and with the other map I get this Error "Unsupported layer type" "Layer type is not supported for taking offline" Openstreetmap. A tmp folder is generated which contains a package.info and a p13 folder which contains a mobile_map.mmap file. I have only a developer account and i am planning to use the lite licence. Is it possible that my liecence dosen't allow to download offline maps (mmpk or tpks).
... View more
08-06-2017
09:55 AM
|
0
|
5
|
1348
|
POST
|
Many thanks for your advice. I have modified the ExportTiles sample and have used the recommended classes. But every time when I call the exportTileCacheFromCorners function I get the following error: Job failed. Job error 6 Illegal state. The online map must have an item property which is its online portal item What is the reason for this error? I have included some code snippets. void ExportTiles::componentComplete() { QQuickItem::componentComplete(); GenerateOfflineMapJob *job; m_cre=new Credential("User","Password "); // find QML MapView component m_mapView = findChild<MapQuickView*>("mapView"); ArcGISTiledLayer* tiledLayer = new ArcGISTiledLayer(m_serviceUrl); //http://sampleserver6.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer Basemap* basemap = new Basemap(tiledLayer, this); m_map = new Map(basemap, this); // set an initial viewpoint Envelope env(12362601, 936021, 10187678, 2567213, SpatialReference(3857)); Viewpoint viewpoint(env); m_map->setInitialViewpoint(viewpoint); // set map on the map view m_mapView->setMap(m_map); } void ExportTiles::exportTileCacheFromCorners(double xCorner1, double yCorner1, double xCorner2, double yCorner2, QString dataPath) { // create an envelope from the QML rectangle corners auto corner1 = m_mapView->screenToLocation(xCorner1, yCorner1); auto corner2 = m_mapView->screenToLocation(xCorner2, yCorner2); auto extent = Envelope(corner1, corner2); auto tileCacheExtent = GeometryEngine::project(extent, SpatialReference::webMercator()); Envelope env(12362601, 936021, 10187678, 2567213, SpatialReference(3857)); // create the task with the url and load it m_task=new OfflineMapTask(m_map,m_cre); connect(m_task, &OfflineMapTask::createDefaultGenerateOfflineMapParametersCompleted, this, [this, env](QUuid, GenerateOfflineMapParameters parameters) { m_parameters=parameters; m_parameters.setAreaOfInterest(env); GenerateOfflineMapJob *job=m_task->generateOfflineMap(m_parameters,"/home/user/tmp"); if (job) { connect(job,&GenerateOfflineMapJob::jobStatusChanged,job,[job,this]() { QList<JobMessage> msg; JobStatus status=job->jobStatus(); switch (job->jobStatus()) { case JobStatus::Failed: msg=job->messages(); for (int i=0;i<msg.count();i++) { qDebug() << msg.message(); } emit updateStatus("Export failed"); emit hideWindow(5000, false); break; case JobStatus::NotStarted: emit updateStatus("Job not started"); break; case JobStatus::Paused: emit updateStatus("Job paused"); break; case JobStatus::Started: emit updateStatus("In progress..."); break; case JobStatus::Succeeded: emit updateStatus("Adding TPK..."); emit hideWindow(1500, true); //displayOutputTileCache(job->result()); break; default: break; } }); bool rueck=job->start(); } else { emit updateStatus("Export failed"); emit hideWindow(5000, false); } }); TaskWatcher tw=m_task->createDefaultGenerateOfflineMapParameters(env); }
... View more
07-30-2017
09:25 AM
|
0
|
1
|
1348
|
POST
|
What is the best way to generate an offline Map. I only need a basemap without any layers displayed (Basemap* basemap = Basemap::topographic(this)) which i can take offline or is it possible to download a whole area like germany? I read the Create an offline map—ArcGIS Runtime SDK for Qt | ArcGIS for Developers but couldn't find any samples.
... View more
07-23-2017
06:54 AM
|
1
|
11
|
3239
|
POST
|
Hello, I have two endpoints of an elliptic arc and the center point. Is there a simple way to draw such an arc and how can I achieve this. I tried it with the GeometryEngine::sectorGeodisc but i had problems calculating the wright semiAxis1Length and semiAxis2Length parameters. I am using the C++ API and ArcGis QT100.0
... View more
06-17-2017
12:42 AM
|
0
|
1
|
879
|
Title | Kudos | Posted |
---|---|---|
1 | 07-23-2017 06:54 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|