POST
|
Hi, I am totally new in developing apps with the AppStudio and qml, so hopefully the questionis not too easy. I want to calculate the distance and the azimuth (bearing) from my current (gps)-position to a point on the map. What i already did: I added a positionDisplay to my map. positionDisplay { compass: Compass { id: compass active: true // Create a variable to hold azimuth property double azimuth: 0 // Change sensor axis depending on 'userOrientation' property axesOrientationMode: Compass.UserOrientation onReadingChanged: { // Called when a new compass reading is available compass.azimuth = reading.azimuth;
//Or better Call it when Reading is available?
//geoResult = locationPoint.geodesicDistance(toPoint); } } positionSource: PositionSource { id: positionSource active: true onPositionChanged: { locationPoint.valid = position.longitudeValid && position.latitudeValid locationPoint.x = position.coordinate.longitude; locationPoint.y = position.coordinate.latitude; geoResult = locationPoint.geodesicDistance(toPoint); locationPointChanged(); } } }
The points are set like this
property Point locationPoint : Point {
property bool valid : false spatialReference: SpatialReference { wkid: 4326 } } property Location toPoint :Location{ coordinate { latitude: 55.314835 longitude: 8.458156 } }
I thought I could use the GeodesicDistanceResult to get distance and azimuth, but it didn't worked.
GeodesicDistanceResult{
id:geoResult }
like in my "onPositionChanged"
geoResult = locationPoint.geodesicDistance(toPoint)
so what's wrong or how do i have to use it?
Thanks in advance!
Thomas
... View more
02-08-2016
02:40 AM
|
0
|
1
|
3825
|
POST
|
To "refresh" the Button States in my Ribbon i call OEditor.Select.Execute(null); So the Buttons get the new states. That works for me 🙂 best regards
... View more
08-15-2013
11:22 PM
|
0
|
0
|
195
|
POST
|
Hello, I am developing an Application using WPF. My Requirements are: 1) Select Graphics on Map via Editor --> works fine 2) Show these selected Graphics (Attributes) in a seperate Window (DatGrid, ListBox..whatever --> works fine 3) Click on Button removes SelectedItem from DataGrid AND Unselects the referenced Graphic on Map !!! This is my Problem !!! How do I have develop the last Part (3) ? I already know how to unselect the Graphic in DataGrid and in Map, but the Editor Event is not fired. That would be important because a lot of Buttons listens to these Events and are disabled / collapsed in some of the states. I saw an example how to unselect a Graphic with the SELECT Command and the CommandParameter REMOVE, but I can not use it in CodeBehind, right? It would be great if it is possible to call something like this --> oEditor.Unselect(MyGraphic); But the only thing I found is oEditor.ClearSelection. Do you have hints for me how to fix the problem ? best regards, Thomas
... View more
08-15-2013
04:19 AM
|
0
|
1
|
535
|
POST
|
Hi, I want to create an App for receiving the Metadata published by ArcGis Server 10. I heared its possible now, but I can´t find any information how it works (query, format ...) Do you have any suggestions or hints for me ? Best regards, Thomas
... View more
03-12-2012
01:13 AM
|
0
|
1
|
384
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|