|
POST
|
Looks like we need to add some clarification to our doc. You can accomplish this with a MouseArea and accepting the mouse events to let everything propagate through. MapView {
id: mapView
anchors.fill: parent
// add a map to the mapview
Map {
// add the BasemapTopographic basemap to the map
BasemapTopographic {}
}
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onMouseXChanged: {
console.log(mouse.x, mouse.y)
}
onPressed: mouse.accepted = false
}
}
... View more
10-15-2018
09:37 AM
|
1
|
0
|
1723
|
|
POST
|
Hi, this is not currently possible, but we are looking into it for the future
... View more
10-15-2018
08:30 AM
|
0
|
3
|
1497
|
|
POST
|
We have a sample for that. It uses Qt Quick, so the UI portions won't be relevant for you, but the Portal related code should be - arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_CppSamples/CloudAndPortal/ShowOrgBasemaps at master · Esri/arcgis-runtime-s… You can see that once the Portal loads, we call fetchBasemaps - arcgis-runtime-samples-qt/ShowOrgBasemaps.cpp at master · Esri/arcgis-runtime-samples-qt · GitHub Once basemapsChanged emits, you can access the BasemapListModel and display that in a view of some sort (like List or GridView) Portal Class | ArcGIS for Developers The list model has roles for the thumbnail URL, name, etc - BasemapListModel Class | ArcGIS for Developers
... View more
10-12-2018
08:19 AM
|
0
|
5
|
3179
|
|
POST
|
Sounds like you want something like the split workflow from Desktop? Methods for splitting line features—Help | ArcGIS for Desktop We don't really have anything like that at the moment
... View more
10-12-2018
07:42 AM
|
0
|
1
|
3613
|
|
BLOG
|
Hi Luke- From my experience, changing the system temp folder shouldn't delete any temp files - it should just redirect where new temp files are placed. The reason this step is useful is because some IT groups set up machines to store temp files on a network drive somewhere, which can often times introduce a lag in what should be a small and simple I/O operation. By changing that to a local drive like C:\Temp, that'll make sure it is a quick local I/O operation without any network overhead. Unfortunately, I don't have a lot of great suggestions on how to determine what it was set to before, other than to check with your IT team to see where the default location is for your organization. You could also check with coworkers to see what their system's default location is, and then try to go to a similar location on your system. If your IT team does not do anything special, the typical default is C:\Users\<your_username>\AppData\Local\Temp. Side note - I know this doesn't help you at this point, but for future reference, I'd also suggest not storing anything of high importance in the system temp directory, as these files are typically subject to getting automatically cleaned up by whatever developer/application created them. I don't believe windows itself will go clean the directory automatically, but applications that created temp files might delete those temp files at a given interval, so it's probably best practice to only leave things in the Temp directory that can be cleaned up at any time. I hope this helps. -Lucas
... View more
10-10-2018
03:47 PM
|
1
|
0
|
8809
|
|
POST
|
Yep, good call. These are now on GitHub too (in case you don't want to download the viewers) - arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_QMLSamples/DisplayInformation/ShowLabelsOnLayers at master · Esri/arcgis-ru…
... View more
10-10-2018
09:31 AM
|
2
|
0
|
1636
|
|
POST
|
If it fails to load with http://arcgis.com, I think that suggests some sort of network issue. It works in general on Linux - we run full certification testing on all the supported platforms.
... View more
10-10-2018
08:26 AM
|
0
|
8
|
3179
|
|
POST
|
I think the issue might be related to the Project call. In your example, what spatial reference is the Map in? My assumption is web mercator. If you use a wgs84 basemap instead and don't call project, it seems to properly give you xMin/Max beyond 180/-180. For example, here is some QML that gives me expected behavior // add a mapView component
MapView {
id: mapView
anchors.fill: parent
// add a map to the mapview
Map {
Basemap {
ArcGISTiledLayer {
url: "http://services.arcgisonline.com/arcgis/rest/services/ESRI_Imagery_World_2D/MapServer"
}
}
}
}
Button {
text: "Get WGS84 Extent"
onClicked: {
text.text = JSON.stringify(mapView.currentViewpointExtent.extent.json)
}
}
Text {
id: text
anchors.centerIn: parent
width: parent.width / 2
wrapMode: Text.WrapAnywhere
color: "white"
} I think it might be expected that the xMin/Max defaults to -180/180 when you call project because the coordinates you are passing in from the original geometry are outside the bounds of the spatial reference, and so once that gets processed in the project function, it just defaults. With all of that said, if your end goal is the use web mercator and do a spatial query across the dateline, I think this is the general workflow you could follow: - get the viewpoint extent Envelope - don't project - normalize the geometry to get folded geometry use normalizeCentralMeridian. - This will give you back a multipart polygon where 1 part is on the western side and one is on the eastern side of the dateline - Pass that into your query parameters, as this should work with multipart geometries For example, your query will perform against: instead of
... View more
10-10-2018
08:02 AM
|
1
|
0
|
3348
|
|
POST
|
I see what you're saying now. It seems like something is not working right, because as soon as I pan from 179 to 180, the xMin drops from what my actual xMin is to -180. I'll investigate a little more, but this seems like a bug of some sort
... View more
10-10-2018
07:32 AM
|
1
|
1
|
3348
|
|
POST
|
Your 10.2.3 example uses Local Server. Have you tried 100.x with Local Server? Perhaps that'll give you the expected output - arcgis-runtime-samples-qt/DynamicWorkspaceRaster.cpp at master · Esri/arcgis-runtime-samples-qt · GitHub If that doesn't work, I think you might want to consider contacting Esri support to work through this issue. They will be able to help troubleshoot your issue further
... View more
10-08-2018
08:17 AM
|
0
|
1
|
5642
|
|
POST
|
Norbert- are you on the same internal network? If not, is your portal accessible outside your network? Also, did you set up your proxy? It should be as simple as the code in the doc: QUrl portalUrl = QUrl("http://geoportal.mycompany.com");
Credential* portal_Credential = new Credential(portalUsername, portalPassword, this);
Portal* onPremisesPortal = new Portal(portalUrl, portal_Credential, this);
connect(onPremisesPortal, &Portal::loadStatusChanged, [this, onPremisesPortal](LoadStatus loadStatus)
{
if (loadStatus == LoadStatus::Loaded)
{
PortalInfo* info = onPremisesPortal->portalInfo();
qDebug() << info->portalName();
}
});
onPremisesPortal->load();
... View more
10-08-2018
08:11 AM
|
0
|
10
|
3179
|
|
POST
|
Hi Norbert, This documentation discusses how you sign into your Portal - Access the ArcGIS platform—ArcGIS Runtime SDK for Qt | ArcGIS for Developers To access items, see this topic - Access portal content—ArcGIS Runtime SDK for Qt | ArcGIS for Developers And to search, see this topic - Search for content—ArcGIS Runtime SDK for Qt | ArcGIS for Developers The high level workflow is: - Create Portal object using your URL, and pass in credentials with username and password - Load the Portal and wait fo it to be done loading - Call findItems on the Portal object by passing in query parameters - Get your desired Portal Item from this list
... View more
10-08-2018
06:52 AM
|
2
|
12
|
3179
|
|
POST
|
Wayne- Maybe you can use the GeometryEngine::normalizeCentralMeridian function to get a folded geometry, and then store that geometry - GeometryEngine Class | ArcGIS for Developers If you want to later zoom to that folded geometry, you can call MapView::setViewpointGeometry - MapView Class | ArcGIS for Developers
... View more
10-05-2018
10:40 AM
|
0
|
0
|
3348
|
|
POST
|
You'll want to connect up to the mouseClicked signal coming off the MapView. This will pass through a QMouseEvent, which can be used to create a Point. You can then add that Point as a Graphic. For example: connect(m_mapView, &MapGraphicsView::mouseClicked, this, [this](QMouseEvent& mouseEvent)
{
// obtain the map point
const double screenX = mouseEvent.x();
const double screenY = mouseEvent.y();
Point newPoint = m_mapView->screenToLocation(screenX, screenY);
// create graphic
Graphic* graphic = new Graphic(newPoint, this);
// add to overlay
m_graphicsOverlay->graphics()->append(graphic);
}
... View more
10-01-2018
06:29 AM
|
2
|
1
|
1355
|
|
POST
|
You can follow the code in this sample - arcgis-runtime-samples-qt/ArcGISTiledLayerUrl.cpp at master · Esri/arcgis-runtime-samples-qt · GitHub Only difference is you'll point it to a local file URL instead of an online URL (e.g. "file:///Users/username/folder/Topographic.tpk")
... View more
09-28-2018
01:56 PM
|
0
|
0
|
1174
|
| 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
|