OsmSharp / ui

The UI components.
http://osmsharp.com/
GNU General Public License v2.0
138 stars 91 forks source link

WinRT / Universal app support #215

Open jcmm33 opened 9 years ago

jcmm33 commented 9 years ago

There doesn't appear to be (from trying to use NuGet anyway) a way of using OsmSharp within a WP8.1/Win8.1 Universal app.

Is this easily solvable?

xivk commented 9 years ago

I'm surprised this doesn't work. Maybe I should have another look at the PCL profile I use. Any idea what I should change?

Also, at the moment only routing is supported on windows devices. No map rendering, markers, ...

jcmm33 commented 9 years ago

I believe the profile used to cover this and meet Xamarin requirements is 259.

On your comments about support on the platform are you saying there is no support for maps even if tiles were pulled from a remote server? Do you need to be able to render lines instead?

If map rendering wasn't supported (and please excuse my slight ignorance on what your software does) but does the routing just take a couple of coordinates and then return a sequence of steps which could be applied to another map?

And one final question on the routing, how long does it typically take to calculate a route - we would preferably like to update in real time a users position to selected items on a map without the user having to keep pressing a 'give me the route'.

thanks in advance

jcmm33 commented 9 years ago

On the point about map rendering the Win2D library that MS has been working on may well be a solution for WP/WinRT vector rendering of the maps.

xivk commented 9 years ago

A calculation just takes two lat/lons and returns a route object. You should be able to convert this to a line to display on any other map. About speed: at the moment it depends how big the area is you are providing offline. It's going to be difficult to provide this realtime.

And yes, if you know of a good way of doing the same WP/WinRT let me know. I will have a look at that Win2D stuff...

jcmm33 commented 9 years ago

On the speed front, if i were say within 1km of the location in a town would it be reasonable to suggest that it would take under a second ? What we are trying to achieve here is as the user selects venues from a list the map updates with the route to that location from the users location, but we would only be doing this when the user is quite close to the venue.

xivk commented 9 years ago

That may be possible but the dataset you are putting on the device will have to be for an entire country or city?

jcmm33 commented 9 years ago

The dataset would be for the city.

xivk commented 9 years ago

Ok, then I would say you have chance of this work with the current state of the code.

LdwgWffnschmdt commented 8 years ago

Hey, have you taken a look at map rendering for Windows? The new Universal App Platform (Windows 10, Windows 10 Mobile...) sounds promising and Win2D seems also really mature already. Are you interested in developing this? It should not be too difficult for you, as you are already familiar with the codebase and everything is C#. How is your time plan? If I were to try this on my own, where should I start? "Porting" one of the mobile versions (Andoid/iOS) or the WinForms variant? And one question aside, would OsmSharp be capable of handling a whole country or more easily? I mean rendering and routing?

xivk commented 8 years ago

@LdwgWffnschmdt Maybe you can contact @JoeCooper he's apart from me the one with the most and best knowledge of OsmSharp's ui implementation.

An entire country routing yes, rendering no for now.