POST
|
Perfect! The sample code works like a charm! Thanks Mike!
... View more
08-05-2013
07:06 AM
|
0
|
0
|
682
|
POST
|
I now had the opportunity to test out the Graphic.MoveTo method and unfortunately it does not work the way I hoped it would. Although it's a lot quicker, I do not get the animation that I was hoping for, where a graphic slides gracefully to the new position in the map (like in GpsLayer). I just wanted to clarify this to anyone who request similar functionality. Cheers, Aslak
... View more
08-05-2013
04:02 AM
|
0
|
0
|
682
|
POST
|
*Yay* it's working now. Thanks dbroux! To be specific, the following did not work (i.e. no tiles are loaded): <esri:Map Name="MyMap" WrapAround="True">
<esri:WmtsLayer Layer="matrikkel_bakgrunn"
Url="http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?"
Version="1.0.0" Visible="True" />
</esri:Map> As soon as I added a ArcGISTiledMapServiceLayer, and then set the TileMatrixSet as below, it worked as a charm: <esri:Map Name="MyMap" WrapAround="True">
<esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /><esri:WmtsLayer Layer="matrikkel_bakgrunn" TileMatrixSet="EPSG:3857"
Url="http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?"
Version="1.0.0" Visible="True" />
</esri:Map> My only issue now is that the loading time of the tiles seems to slow down at times (i.e. suddenly it takes up to 30 seconds to load a new set of tiles). This is a different issue however and I will try to debug it with Fiddler. Again thanks for your help dbroux!
... View more
04-09-2013
05:50 AM
|
0
|
0
|
369
|
POST
|
That's very strange indeed. When you got it to work, did you use Runtime 1.0? I'm using version 2.4, and I cannot get it to work, even if I create a completely new project and copy/paste your code above into it.
... View more
04-08-2013
11:17 PM
|
0
|
0
|
369
|
POST
|
Thanks for your reply dbroux! Luckily for me the map that I want to use in my application is also available as a WMTS. Unfortunately though, nothing happens when I try to load the map (i.e. no tiles are loaded). My code for adding the map is the following: <Esri:WmtsLayer Visible="True"
Version="1.0.0"
Layer="matrikkel_bakgrunn"
Url="http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?" />
Information about the service (i.e. available layers and such) can be found here: http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?Version=1.0.0&service=wmts&request=getcapabilities Does anyone know what I'm doing wrong here? Cheers
... View more
04-08-2013
12:40 PM
|
0
|
0
|
369
|
POST
|
Hi, Does anyone happen to have a sample code for using manipulation delta events to enable touch-based zooming and panning? I'm using version 2.4 of the API, and the built-in zoom/pan of this API does not work on Windows 8 tablets, so I have to build my own. Cheers
... View more
04-01-2013
11:10 PM
|
0
|
0
|
469
|
POST
|
Hi, I'm using a WmsLayer as the basemap in my application. When I pan the map slightly to one side, the WmsLayer will reload all visible tiles, even though the large portion of the tiles have already been loaded. In other words: when I pan the map just slightly, all visible map tiles disappear and load over again. This differs from the behavior of and ArcGISTiledMapLayer, which will only load the tiles that have not already been loaded. Is there some way to get a similar behaviour in a WmsLayer? btw. I'm using ArcGIS API for WPF version 2.4. Cheers
... View more
03-28-2013
04:48 AM
|
0
|
6
|
2777
|
POST
|
Thanks for your reply Mike, this is exactly what I need. Unfortunately I'm using an older version of the API (version 2.4), which does not include the MoveTo() method, so then I guess there is no other option than to implement this functionality myself. I do not have an EDN subscription so unfortunately there's no chance of updating for me I guess. Thanks anyway for your help!
... View more
03-28-2013
04:31 AM
|
0
|
0
|
682
|
POST
|
The functionality in the new API looks great, and as a user of the earlier version ArcGIS API for WPF 2.4 I would really like to upgrade to use this library instead. However, while the earlier version was freely available, it seems like I need an EDN subscription in order to get hold of the new API. Could you clarify for me whether it is possible to get hold of the API without an EDN subscription? I do not need all the other stuff that comes with and EDN subscription, and cannot really afford the yearly cost of having this subscription. Cheers
... View more
03-28-2013
04:26 AM
|
0
|
0
|
935
|
POST
|
The GpsLayer has a nice animation feature where the current location marker glide gracefully to new positions in the map. In my application I would like to have similar animations in a graphicslayer, so that when I update the position of a graphic, it will glide to this new position intead of just changing its location in the blink of a second. Does anyone know if and how this can be achieved?
... View more
03-18-2013
02:59 AM
|
1
|
5
|
4091
|
POST
|
The position of the items being managed in device-independent units, the only way to keep the geographical position of the items is to include the scatter view (with a fixed size) inside a Viewbox. So the display of the scatter view is stretched while zooming in or out but its size doesn�??t change and the items keep their geographical position. The counterpart is that the items scale up and down while zooming since their size in device independent units doesn�??t change but they scale because the viewbox scales. The solution might be to wire up an handler to the map Extent_Changed event and to change the scatterviewitems size dynamically depending on the map scale. But to keep the content of the scatter item unchanged while changing the scatter item size, I guess you have to encapsulate each item inside a viewbox. In short: Surround the scatter view by a viewbox that is inserted in the element layer with a fixed size. Surround by a viewbox each scatter view item that doesn�??t have to scale while zooming On map extent changed event, loop on all scatter view items containing a viewbox and change the items size by a size depending of the map scale. Hope this helps. Thanks again for your suggestion! One question: If I surround each ScatterViewItem with a viewbox, they are no longer ScatterViewItems, and hence it will not be possible to place them on the ScatterView. Is this correct, or did I misunderstand something?
... View more
01-14-2013
05:58 AM
|
0
|
0
|
536
|
POST
|
The position of the items being managed in device-independent units, the only way to keep the geographical position of the items is to include the scatter view (with a fixed size) inside a Viewbox. So the display of the scatter view is stretched while zooming in or out but its size doesn�??t change and the items keep their geographical position. The counterpart is that the items scale up and down while zooming since their size in device independent units doesn�??t change but they scale because the viewbox scales. The solution might be to wire up an handler to the map Extent_Changed event and to change the scatterviewitems size dynamically depending on the map scale. But to keep the content of the scatter item unchanged while changing the scatter item size, I guess you have to encapsulate each item inside a viewbox. In short: Surround the scatter view by a viewbox that is inserted in the element layer with a fixed size. Surround by a viewbox each scatter view item that doesn�??t have to scale while zooming On map extent changed event, loop on all scatter view items containing a viewbox and change the items size by a size depending of the map scale. Hope this helps. Thank you very much for your help and suggestions. I have not yet had a chance to test your idea, but I will have a go and let you know.
... View more
01-14-2013
12:37 AM
|
0
|
0
|
536
|
POST
|
Did you set a fixed width/height on the ScatterView control prior to dropping it inside a ViewBox ? The width and height of the ScatterView (before dropping it inside the ViewBox) was set to Auto.
... View more
01-14-2013
12:30 AM
|
0
|
0
|
536
|
POST
|
Hi, I'm building an application with an interactive map (using the ArcGIS API for WPF) that runs on the Microsoft Surface 2.0 (now known as PixelSense). In my application I have a librarycontainer containing elements that a user can drag out and place on a certain location on the map. I achieve this by placing a scatterview (that envelopes the entire map) in an elementlayer on the map, like this: <esri:ElementLayer><esri:ElementLayer.Children><local:DragDropScatterView esri:ElementLayer.Envelope="-19949487.9573175,-20100080.1372686,20125528.7282505,20131479.5822274" x:Name="ScatterLayer" Background="Transparent" Height="Auto" Width="Auto" ItemContainerStyle="{StaticResource ScatterItemStyle}" /> </esri:ElementLayer.Children></esri:ElementLayer> The problems occur when a user zooms in or out on the map, causing the elements that have been placed in the scatterview to change their position completely. To fix this issue I tried placing the scatterview inside a viewbox. When I do this, the elements maintains the right positions in the map, but now a new problem occurs: The elements scale up and down when I zoom in and out of the map (e.g. when the map is shown in full extent, the elements are almost invisible), while the preferred behavior is that the elements maintain their size when a user zooms in or out on the map (e.g. like the markers in Google Maps). Does anyone have a suggestion as to how I can solve this problem? Cheers
... View more
01-06-2013
11:58 PM
|
0
|
6
|
697
|
POST
|
Hi, I would like to simulate the movement of a vehicle driving along a route retrieved from the RouteTask. To get a smooth visualization of the movement in the map, I need to extract coordinates for (ca.) every 20 meter of the route. Is it possible to get extract such coordinates based on the route result returned by the RouteTask service? Cheers.
... View more
12-10-2012
06:25 AM
|
0
|
0
|
612
|
Title | Kudos | Posted |
---|---|---|
1 | 12-06-2022 12:02 AM | |
2 | 12-07-2022 04:36 AM | |
1 | 06-28-2021 08:46 AM | |
2 | 01-17-2020 04:23 AM | |
1 | 01-07-2020 06:39 AM |
Online Status |
Offline
|
Date Last Visited |
11-22-2023
09:23 AM
|