locked
MapLocation Class for sample data in Blend RRS feed

  • Question

  • I'm developing a Map application for Windows Phone 8.1 which displays data from the MapLocation class returned in a map Geocode operation. I want to create some sample data in Blend based on the MapLocation class but when I select "All Assemblies" the Windows.Services.Maps namespace is not available as a selection and MapLocation does not show up in any search results.

    Is there a restriction somewhere on what classes can be used for sample data creation? If so, is there a straighforward way to overcome this? Could I, for example, encapsulate a MapLocation in a locally defined class and use it to generate sample data (and of course in the rest of the code)?

    Thanks

    Dean


    Woke up one day and realised reality television had destroyed too many brain cells so started writing App's to re-start my brain.

    Wednesday, September 17, 2014 10:35 PM

Answers

  • Check the two articles,

    http://blogs.msdn.com/b/mikeormond/archive/2010/08/18/simulating-and-mocking-location-data-in-the-windows-phone-7-emulator.aspx

    http://phone7.wordpress.com/2010/08/02/no-device-no-gps-no-matter-with-code/

    Thursday, September 18, 2014 8:37 AM

All replies

  • Hi Dean,

    Per my understanding, I understood that you want to create some simulator data with Blend for map location. I thought we have a straightforward way to create these data. We can simulate the data via Windows Phone Simulator. How to test apps that use location data for Windows Phone 8

    Regards,

    Jimmy


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, September 18, 2014 7:28 AM
  • Thanks but I know how to do that. What I need to do is create an ObservableCollection of MapLocation in Blend as a sample data source. This would represent data returned from a Geolocation query.

    Woke up one day and realised reality television had destroyed too many brain cells so started writing App's to re-start my brain.

    Thursday, September 18, 2014 8:05 AM
  • Check the two articles,

    http://blogs.msdn.com/b/mikeormond/archive/2010/08/18/simulating-and-mocking-location-data-in-the-windows-phone-7-emulator.aspx

    http://phone7.wordpress.com/2010/08/02/no-device-no-gps-no-matter-with-code/

    Thursday, September 18, 2014 8:37 AM