|
POST
|
Hi I am trying to accomplish like this picture first make difference of 2 geometries then expand the extent of gray color to few kms I have made geometry difference but does not know how to expand the gray color extent function getExtentEnvelope(){ const sr = ArcGISRuntimeEnvironment.createObject("SpatialReference", { "wkid": 4326}); return ArcGISRuntimeEnvironment.createObject("Envelope", { xMin: xMinVal, yMin: yMinVal, xMax: xMaxVal, yMax: yMaxVal, spatialReference:sr}); }
with this the code gray color shows only to its extent limits.
WHole code is in previous conversation of this thread
... View more
08-27-2020
09:35 PM
|
0
|
2
|
4979
|
|
POST
|
how to call user mobile other application from inside my qml application.
... View more
08-26-2020
03:13 AM
|
0
|
4
|
1919
|
|
POST
|
Hi i want to calculate distance betweeen 2 coordinates returned one after other to calculate distance between them. I found distanceTo() function , but didn't get any example. how to use it
... View more
08-26-2020
03:02 AM
|
0
|
1
|
897
|
|
POST
|
It gives me error module \"QtPositioning\" version 5.15 is not installed" so i import 5.11 version I am using arcgis appstudio version 4.2 Query 1: Plus i want this to be happen on when user sign in on my property, so i will do that but how to put it in if condition to start on login if condition checking and how to stop it. like if user sign-out from the property. I will use the code on sign on click but how to stop on sign-out btn click
... View more
08-25-2020
09:33 PM
|
0
|
1
|
1329
|
|
POST
|
Lucas Danzinger Is this task still on your list, i just want help with extent expamsion to some few kms, Can u. help me for it.
... View more
08-25-2020
08:39 PM
|
0
|
4
|
4979
|
|
POST
|
I get this link Position display—ArcGIS Runtime SDK for Qt | ArcGIS for Developers Is their any example for recording. tracklog etc
... View more
08-25-2020
03:46 AM
|
0
|
3
|
1329
|
|
POST
|
HI i want to get user location coordinates without going to its map page like this link i followed. It works only on map page Get the path covered by user and display current location So that i can show user history on map even when it switched to any other page of application. Is their any way so that even when a user is not on map page my app get its coordinates. This is the code i edited for map page only. import QtQuick 2.6 import QtQuick.Controls 2.2 import Esri.ArcGISRuntime 100.6 Rectangle { id: rootRectangle clip: true width: 800 height: 600 readonly property int initialZoomScale: 8000 property bool trackingEnabled: false property Point lastPosition: null // add a mapView component MapView { anchors.fill: parent Map { BasemapDarkGrayCanvasVector {} } // set initial viewpoint near UCLA, Los Angeles ViewpointCenter { Point { x: -13185535.98 y: 4037766.28 } targetScale: initialZoomScale } Button { id: button text: trackingEnabled ? "Stop tracking" : "Start tracking" anchors.horizontalCenter: parent.horizontalCenter width: 200 onClicked: trackingEnabled =! trackingEnabled } // if tracking is enabled then show location history locationDisplay.onLocationChanged: { if (!trackingEnabled) return; if (lastPosition !== null) { polylineBuilder.addPoint(lastPosition); } // update last position lastPosition = locationDisplay.location.position; console.log(JSON.stringify(lastPosition.json)); // update the polyline locationHistoryLineOverlay.graphics.append(ArcGISRuntimeEnvironment.createObject("Graphic", {geometry: polylineBuilder.geometry})); console.log(JSON.stringify(polylineBuilder.geometry.json.paths)); } Component.onCompleted: { locationDisplay.autoPanMode = Enums.LocationDisplayAutoPanModeCompassNavigation; locationDisplay.start(); } GraphicsOverlay { id: locationHistoryLineOverlay SimpleRenderer { SimpleLineSymbol { color: "blue" style: Enums.SimpleLineSymbolStyleDash width: 5 } } } }//End Mapview PolylineBuilder { id: polylineBuilder spatialReference: SpatialReference { wkid: 4326 } } }
... View more
08-25-2020
03:24 AM
|
0
|
4
|
1374
|
|
POST
|
I am trying it this way and is succeed also and want to expand graphics of overlayGray to some more km distance from my extent, can u help me how to expand it:my extent Here in getExtentEnvelope() i counted the xmin xmax etc values manually, so the polygon appears on my whole screen. The pictures i attached below are some zoomed out images. Component.onCompleted: {
var overlaygeometry=''; // add the polygon var rings = userMap.getpolygon;//boundaries from db graphicsOverlay.graphics.append(createGraphic(createPolygon(rings), fillSymbol)); overlaygeometry=GeometryEngine.difference(getExtentEnvelope(), createPolygon(rings)); graphicsOverlay.graphics.append(createGraphic(overlaygeometry, overlayGray)); }//End components.loaded SimpleFillSymbol{ id:overlayGray style: Enums.SimpleFillSymbolStyleSolid color: Qt.rgba(1,1,0,0.2) } function getExtentEnvelope(){ const sr = ArcGISRuntimeEnvironment.createObject("SpatialReference", { "wkid": 4326}); return ArcGISRuntimeEnvironment.createObject("Envelope", { xMin: xMinVal, yMin: yMinVal, xMax: xMaxVal, yMax: yMaxVal, spatialReference:sr}); }
function createGraphic(geometry, symbol) { var graphic = ArcGISRuntimeEnvironment.createObject("Graphic"); graphic.geometry = geometry; graphic.symbol = symbol; return graphic; }//end createGraphic
function createPolygon(ring) { // create polygon using json const sr = { "wkid": 4326}; var boundaryJson = {"rings":ring,"spatialReference":sr}; var boundary= ArcGISRuntimeEnvironment.createObject("Polygon", {"json": boundaryJson}); return boundary; }
... View more
08-20-2020
04:49 AM
|
0
|
5
|
4979
|
|
POST
|
Hi guys can anyone help me in this task, as it is quite intricate for me to plot gray area outside polygons and then get difference of them
... View more
08-19-2020
05:14 AM
|
0
|
0
|
4979
|
|
POST
|
hi i could not found any link to download appstudio for my project on mac, they are just asking for setting the plateform for testing.??\
... View more
08-19-2020
03:06 AM
|
0
|
1
|
736
|
|
POST
|
Hi , I am facing using some issues with features of navigation, so i need to upgrade from older version of 100.6 to 100.8 here is the already install version details of arcgis appstudio. Query: Kindly help me to tell how to upgrade from older version to new..
... View more
08-17-2020
11:20 PM
|
0
|
3
|
809
|
|
POST
|
When is 100.9 is going to release as i got the problem to use and test it for my app . Is their any otherway meanwhile
... View more
08-17-2020
09:19 PM
|
0
|
1
|
1222
|
|
POST
|
Thanks it worked. I was trying to stringify it, but didn't know, i have to stringify the json property of the point. Thanks a lot again
... View more
08-17-2020
03:23 AM
|
0
|
0
|
3405
|
|
POST
|
Hi , I am trying to get path covered by user to display it using polyline. I m already displaying current location. But don't know how to get path it covered , As their is no starting point and no end point for route. End point is the current location just like the navigate route. But i can't use navigate route. as it demands for start point etc. Query: When user enters my property Boundary, from that moment I want to track and get the location of users showing current location Any idea or example will be helpful //This is how i am displaying current location
mapView.locationDisplay.autoPanMode = Enums.LocationDisplayAutoPanModeCompassNavigation; mapView.locationDisplay.start();
... View more
08-17-2020
03:03 AM
|
0
|
4
|
1299
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-28-2020 10:30 PM | |
| 1 | 12-27-2020 09:03 PM | |
| 1 | 05-17-2020 10:15 PM | |
| 2 | 04-21-2020 10:39 PM | |
| 3 | 09-09-2020 08:44 PM |
| Online Status |
Offline
|
| Date Last Visited |
04-30-2024
05:15 AM
|