|
POST
|
Hi, LocationDisplay is designed to control the view where LocationProviders are used to encapsulate the usage of the GPS. We provide default implementation called SystemLocationProvider and, as you are saying, it seems that we don't expose those properties to the user. We default to PositionAccuracy.High, MovementThreshold = 0 and ReportInterval = 1000. I have put note to myself to check if we can expose properties to control the settings in the future. That said, location provider implements ILocationProvider interface that is responsible to provide location and updates to the LocationDisplay and it is very easy to write your own. This is the recommended way to provide location tracking for the runtime applications (when default provider is not enough). If you haven't looked yet LocationDisplay sample, that shows how to implement one. From LocationDisplays point of view, it doesn't really care where the location actually comes from so when you implement custom ILocationProvider, you can use 3rd party libraries to communicate with the device if you aren't keen to write that part yourself. Hope this helps.
... View more
01-20-2016
02:07 AM
|
0
|
3
|
2653
|
|
POST
|
Good thing that the issue was solved. Let me know if there are any more issues.
... View more
01-19-2016
02:06 AM
|
0
|
0
|
399
|
|
POST
|
If you have a reproducer that I can run and see how it really works, I can give a look for it if I can figure it out. It can be related to timing things, your workflow, maybe the collection is not modified in the correct thread or just a simple mistake that both of us are missing here. Let me know if you need any more help with this one.
... View more
01-18-2016
09:00 AM
|
0
|
2
|
3100
|
|
POST
|
Just a continuation to the moving / adding / removing graphics, you can do it something like this var removepoints = _overlay.Graphics.Where(x => Convert.ToInt32(x.Attributes["SymbolID"]) == 3).ToList(); foreach (var removepoint in removepoints) { _overlay.Graphics.Remove(removepoint); } Random rnd = new Random(DateTime.Now.Millisecond); for (int i = 0; i < 10; i++) { var randomX = rnd.Next(Convert.ToInt32(MyMapView.Extent.XMin), Convert.ToInt32(MyMapView.Extent.XMax)); var randomY = rnd.Next(Convert.ToInt32(MyMapView.Extent.YMin), Convert.ToInt32(MyMapView.Extent.YMax)); var randomMapPoint = new MapPoint(randomX, randomY, SpatialReferences.WebMercator); var graphic = new Graphic(randomMapPoint); graphic.Attributes.Add("SymbolID", _activeIncLocationID); _overlay.Graphics.Add(graphic); } Ofc remember to protect against timing issues etc but the principle is the same. EDIT: edited to contain the code
... View more
01-18-2016
08:21 AM
|
0
|
4
|
3100
|
|
POST
|
Here is a simple app that shows one way how to play around with the moving graphic while using UniqueValueRenderer. Let me know if this helps. I have a timer that is moving one of the 3 graphics every second. Similar fashion you should be able to add/remove items from the collection if needed. If this doesn't help, I'll try to make a bit more comprehensive sample.
... View more
01-18-2016
08:00 AM
|
0
|
5
|
3100
|
|
POST
|
Hi Jim, I had a fast overview on the attached file. Couple tips in general. Try to avoid un-necessary projecting but if you need to do that, try to use SpatialReferences.WGS/WebMer factories or SpatialReference.Create() method. You can just update the existing graphics location (geometry) instead of removing previous and creating a new one. I think you can simplify updating the location quite a bit. Also consider using PictureMarkerSymbol.SetSourceAsync method for setting the source picture for the PMS's. What comes to get the graphics visible, make sure that you have the values set correctly to the UniqueValueRenderer and the graphic. If the _activeIncLocationID is always the same, it should use the correct image. Do you see the new graphic but using wrong symbol?
... View more
01-18-2016
07:16 AM
|
0
|
8
|
3100
|
|
POST
|
Hei, Keith, What version you are using and if you can you provide a reproducer?
... View more
01-14-2016
02:13 AM
|
0
|
0
|
954
|
|
POST
|
Hi, I marked this answered and thanks for sharing the solution.
... View more
01-14-2016
02:10 AM
|
0
|
0
|
2355
|
|
POST
|
If you need to use specific projection, you should create the whole mapview/map using that projection from the beginning. ArcGIS Online is publishing basemaps in WGS84 so you need to use other basemaps (hosted either by esri or other entities) with your local projection. When you are setting first layer into the map, it's spatial reference is used in a map if it's not explicitly specified. You can find more information here.
... View more
01-14-2016
02:09 AM
|
0
|
2
|
1170
|
|
POST
|
Hi, Could you make sure that your graphics are in the same SpatialReference with MapView.
... View more
01-14-2016
01:53 AM
|
0
|
0
|
931
|
|
POST
|
If you can, you should be looking ArcGIS Runtime for .NET which is the newer version of runtime that enables you to build applications for the windows platform. You can find more from here. If you are interested about the touch support, we are restricted to the dev device / os but Windows 7 should work. You can find more about system requirements here. You can find more about the supported gestures here and ArcGIS Runtime for .NET is designed for mouse, stylus and touch where the older ArcGIS Runtime for WPF doesn't provide as good support out of the box. You still can build touch based applications with it but it needs a bit more work compared to the .NET SDK.
... View more
01-13-2016
08:59 AM
|
1
|
1
|
1583
|
|
POST
|
Hi, My guess is that the tile layer is in different SpatialReference. Can you make sure that you use the same SR for the graphic too.
... View more
12-16-2015
01:44 AM
|
0
|
0
|
718
|
|
POST
|
ArcGIS Runtime for .NET supports 3d from 10.2.6 onwards. Read more from https://developers.arcgis.com/net/desktop/guide/create-a-3d-map.htm
... View more
12-16-2015
01:39 AM
|
0
|
1
|
1068
|
|
POST
|
Hi Keith, What version you are using? And does the drawing order make any difference?
... View more
12-11-2015
06:53 AM
|
0
|
1
|
3413
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-12-2014 03:52 AM | |
| 1 | 08-27-2015 03:47 AM | |
| 1 | 12-08-2014 09:58 AM | |
| 1 | 05-05-2015 10:19 AM | |
| 1 | 07-30-2015 08:43 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|