none
GeoCoordinateCollection RRS feed

  • Question

  • I'm currently converting from WP8 to UWP and looked to Jayway's blog for some pointers as to what needs to change.

    So GeoCoordinateCollection is now GeoPath, but the Positions are read only, so I can't add, remove or change the order of them.

    Given that I have lots of code that adds, removes and counts GeoCoordinates in GeoCordinateCollections, could anyone (that has already been there) suggest how I should preserve this functionality in the absence of GeoCoordinateCollections ?

    Thanks

     
    Saturday, January 7, 2017 4:37 PM

Answers

  • GeoPath is designed to be read-only

    If you need writeable collections of coordinates I would suggest creating a simple writeable collection class containing a list of BasicGeoposition that has a method/operator to convert to GeoPath when needed.

    Monday, January 9, 2017 8:14 PM
    Moderator