Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Feature Request] API to embed (offline) map in other app #3787

Open
azrdev opened this issue May 18, 2017 · 10 comments
Open

[Feature Request] API to embed (offline) map in other app #3787

azrdev opened this issue May 18, 2017 · 10 comments
Labels
Nice to Have Should be fixed but there is no priority or no possibility to fix it within current horizon planning

Comments

@azrdev
Copy link

azrdev commented May 18, 2017

It would be useful to allow a third-party app to create a mapview which renders -- through osmand -- the offline map data (obf files). You can use a library like osmdroid to get an OSM mapview, but that will fetch its own pre-rendered tiles, and thus requires an Internet connection.

For an app which could benefit from such an API, see e.g. streetcomplete/StreetComplete#122

@vshcherb vshcherb added the Nice to Have Should be fixed but there is no priority or no possibility to fix it within current horizon planning label May 20, 2017
@erdmark
Copy link

erdmark commented Oct 24, 2017

Osmand could run a server on that device and serve the display output as tiles.

@ildar
Copy link

ildar commented Oct 11, 2018

this would definitely help other apps including MicroG which provides system-wide map service yet depending on online OSM.

@vshcherb
Copy link
Member

Unfortunately we realized this is not an API but SDK kind of utility. We're are looking forward with API we have today. Basically Apps could naturally open OsmAnd with special overlays on top of it.

@ildar
Copy link

ildar commented Oct 15, 2018 via email

@vshcherb
Copy link
Member

@ildar
Copy link

ildar commented Oct 17, 2018 via email

@vshcherb
Copy link
Member

links updated

@ildar
Copy link

ildar commented Nov 1, 2018 via email

@vshcherb
Copy link
Member

vshcherb commented Nov 4, 2018

It is, it includes lots of native code and lots of icons which we are going to simplify and make it easier.

@Bibi56
Copy link

Bibi56 commented Aug 14, 2019

@vshcherb "Unfortunately we realized this is not an API but SDK kind of utility".

I don't understand (or let's say I propose an API ;-)), most of the apps (if not all) requesting OSM tiles online are using the TMS schema, so if you provide a TMS server, it should be fine.
Let's http://localhost:/<style>/X/Y/Z.. Format being probably PNG or JPG or ODF. Or PBF ;-)

Not completely sure if it would require a network or just Internet enabled. In theory just Internet enabled.

The file:// protocol doesn't seem to be correct (missing tiles and Android restrictions).

The "OsmAnd Sample" way seems to be a way to integrate OsmAnd into another app. This would mean installing as much ODF files as OsmAnd-based applications,right? ;-(. My SD-card has only 256 GB, I thought it was big enough.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Nice to Have Should be fixed but there is no priority or no possibility to fix it within current horizon planning
Projects
None yet
Development

No branches or pull requests

5 participants