|
POST
|
As the service is cached at server side, I recommend you to use ArcGISTiledMapServiceLayer instead of ArcGISDynamicMapServiceLayer. However this should work as well with an ArcGISDynamicMapServiceLayer so may be you run into another issue. Let us know how it works with ArcGISTiledMapServiceLayer.
... View more
02-06-2015
05:25 AM
|
0
|
2
|
1357
|
|
POST
|
Thanks Anatolii, Glad to know you enjoyed the sample 🙂
... View more
02-06-2015
01:49 AM
|
0
|
1
|
4811
|
|
POST
|
The distorsion between web mercator coordinates and real world distance is: 1/cos(latitude) i.e no distorsion at equator, infinite distorsion at poles. If you polyline is small enough to consider that the distorsion is constant along the line and that a straight line is an acceptable approximation for a geodesic you could use 1/cos(latitude of the center of your polyline) as ratio. As likely in your case, it's easier to get the center Y web mercator coordinates than the latitude, you can also define the ratio as: ratio = Math.Cosh(Y/earthRadius); with earthRadius approximatively equals to 6378137
... View more
02-06-2015
12:49 AM
|
2
|
3
|
4811
|
|
POST
|
Yes you are right. A soon as you want to address specific fields you need to query the layers by using a QueryTask. The query 'where' property allows you to set a SQL where clause.
... View more
02-02-2015
12:31 AM
|
2
|
0
|
479
|
|
POST
|
For panning/zooming to a line or polygon, you have the following options: - use PanTo if you want to keep the map resolution - use the former CenterAndZoom with geometry.Extent.GetCenter() if you want to zoom at a predefined resolution (but not sure the full geometry will be inside the map extent) - or most simple, use ZoomTo(geometry) or something like ZoomTo(geometry.Expand(1.2))
... View more
01-30-2015
04:38 AM
|
2
|
2
|
2123
|
|
POST
|
Due to animation PanTo and ZoomToResolution are asynchronous operations that give undefined results if they are executed simultaneously. One option may be to create a method that do both actions at the same time (e.g. centerAndZoom method)
... View more
01-30-2015
01:49 AM
|
2
|
5
|
2123
|
|
POST
|
Setting FindParameters Contains property to false seems to be what you are looking for..
... View more
01-29-2015
08:08 AM
|
2
|
1
|
672
|
|
POST
|
but when the expanded display is "incorporated" inside the maptip (XAML) its control or manipulation is not permitted. The probl is that any attempts to change its size, visibility, opacity, etc. will produce a runtime error. Isn't it what the maptip sample is doing when you click on the state name?
... View more
01-28-2015
06:17 AM
|
0
|
1
|
2200
|
|
POST
|
If the expanded display was inside the main maptip as in the referenced sample, you should avoid the Z display issue. Or did I miss something?
... View more
01-28-2015
04:24 AM
|
0
|
3
|
2200
|
|
POST
|
I don't know where is exactly your problem but there is lot of samples in the interactive SDK that binds the map to a control. See for example the MapProgressBar. If you want to look at the code of the control itself, it's available on github.
... View more
01-28-2015
02:16 AM
|
0
|
1
|
1200
|
|
POST
|
Sorry I am not aware of any other SL library reading shapefiles. The best option seems to tweak the referenced Library to get it working with the latest SL version.
... View more
01-28-2015
02:12 AM
|
0
|
1
|
899
|
|
POST
|
You might look at the toolkit maptip sample which implements this kind of behavior. The toolkit code is available on github.
... View more
01-28-2015
02:08 AM
|
0
|
5
|
2200
|
|
POST
|
If your graphics are features coming from a service you can get the features under any geometry with a spatial query task executed at server side (sample). If your graphics are created locally, FindGraphicsInHostCoordinates is likely what you need. If you react to map gesture events you may also consider using the DirectlyOver method.
... View more
01-27-2015
12:00 AM
|
0
|
0
|
616
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-14-2025 09:24 AM | |
| 1 | 06-13-2013 09:22 AM | |
| 1 | 04-29-2022 02:21 AM | |
| 1 | 04-29-2022 02:28 AM | |
| 1 | 09-07-2021 03:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-30-2025
08:06 AM
|