1

Esri's ArcGIS for WPF does not seem to have any real MVVM support or binding support; unless I'm mistaken.

Anyway, I am creating a tracking application and it needs to track objects via GPS coordinates.

I have implemented a custom IGeoPositionWatcher<GeoCoordinate> which is used with the GpsLayer. This all works perfectly. I can modify the GPS coordinates and my little dot on the map moves smoothly to it's final resting place. My problem is that I can't use the little dot and arrow that comes with the GpsLayer. I need a custom MarkerSymbol to be something similar to the following:

<Grid>
 <Image Source={Binding Pogostick.HeightImage} />
 <TextBlock Text={Binding Pogostick.PogoId} />
</Grid>

I have a list (amount unknown and changes at any given moment) of these "pogosticks" which are always tracking by GPS and need to have the symbol update according to its status. The problem is that I can't get the Pogostick object to be the DataContext for the custom MarkerSymbol.ControlTemplate and there for my image source and text do not show.

I'm trying to avoid using a Graphic in a GraphicLayer and would like this to work with the GpsLayer. Is there a way to do this at all? Am I even approaching this correctly... should I be using a GraphicLayer or a FeatureLayer?

I want to render these tracked pogosticks on the user's desktop app and not by editing layers or features on the map service. Perhaps I should be using a custom renderer?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Dec 13, 2013 at 3:54

1 Answer 1

0

I've solved the problem on my own and posted the answer over on StackOverflow

I posted the question on StackOverflow before I realized there was a StackExchange site for GIS. So I'll ask my GIS related questions here from now on.

answered Dec 13, 2013 at 21:44

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.