-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Comments
Osmand could run a server on that device and serve the display output as tiles. |
this would definitely help other apps including MicroG which provides system-wide map service yet depending on online OSM. |
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. |
пн, 15 окт. 2018 г., 5:52 vshcherb:
Basically Apps could naturally open OsmAnd with special overlays on top of
it.
Wow, this may solve some of the "API" requests.
Can you drop a link to documentation and/or example apps? That would be
very handy.
Though embedding maps into apps is still very important.
|
@vshcherb , thanks a lot.
Yet OsmAnd Sample apk link is broken. Anyone aware?
|
links updated |
thanks! though 45M sample is scary :)))
|
It is, it includes lots of native code and lots of icons which we are going to simplify and make it easier. |
@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. 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. |
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
The text was updated successfully, but these errors were encountered: