You are not logged in.

#1 2019-11-29 08:51:58

siloam
New Member
Registered: 2019-11-29
Posts: 2

Android map server

Hello everyone,
Do exist any map/tile SERVERS that work on on Android? I need a map server that serve tiles locally on Android machine.
I appreciate any help. We will have the national census in Poland and we are in need to provide offline maps in our PWA app for CAPI purposes.

Best regards,
Marek Marczak
Statistics Poland

Last edited by siloam (2019-11-29 11:29:38)

Offline

#2 2019-11-29 17:17:20

stephan75
Member
Registered: 2008-05-28
Posts: 2,756

Re: Android map server

I never heard from a map server that runs on android ...

Why is it a requirement to have that map server on an android device?

Why don't you use map servers on any capable Linux or Windows systems, and have "only" client apps on the android devices?

Offline

#3 2019-11-29 17:20:35

Viajero Perdido
Member
Registered: 2016-10-13
Posts: 75

Re: Android map server

Hello.  I don't know about any *tile server* software, but you might want to look at vector maps in MapsForge format instead.  A vector map for all of Poland from https://www.openandromaps.org/en/downloads/europe weighs in at just under 1GB (likely more when uncompressed), and the MapsForge library for displaying the maps is open source.  With this, you wouldn't need a server because the tiles would be generated on-the-fly in the Android device.

A number of existing Android apps already use these maps.  Hopefully, the precompiled vector map will include all the elements you need for your project.  Another source is: http://download.mapsforge.org/maps/v5/europe/.  The latter omits contour lines which you probably don't need; the former includes them.

Last edited by Viajero Perdido (2019-11-29 17:29:34)

Offline

#4 2019-11-29 20:17:00

siloam
New Member
Registered: 2019-11-29
Posts: 2

Re: Android map server

stephan75 wrote:

I never heard from a map server that runs on android ...

Why is it a requirement to have that map server on an android device?

Why don't you use map servers on any capable Linux or Windows systems, and have "only" client apps on the android devices?

Our PWA app is supposed to run well in online and offline mode. Internet connection is not always awailable - especially in countryside. We cannot assume that polsters will have internet access all the time.

Viajero Perdido wrote:

Hello.  I don't know about any *tile server* software, but you might want to look at vector maps in MapsForge format instead.  A vector map for all of Poland from https://www.openandromaps.org/en/downloads/europe weighs in at just under 1GB (likely more when uncompressed), and the MapsForge library for displaying the maps is open source.  With this, you wouldn't need a server because the tiles would be generated on-the-fly in the Android device.

A number of existing Android apps already use these maps.  Hopefully, the precompiled vector map will include all the elements you need for your project.  Another source is: http://download.mapsforge.org/maps/v5/europe/.  The latter omits contour lines which you probably don't need; the former includes them.

I am aware of it. I know about other formats as well (MBTiles, RMap... etc). The problem is we have PWA app and we need to integrate maps into the app in CAPI mode (offline maps for polsters). The library you've mentioned provide maps for Android native apps - not for PWAs. I've already tried to save tiles in Indexeddb. Unfortunately Indexeddb is not very fast and has size limitations. I think we have two options - to serve maps locally just for the PWA (it has wms client built with leaflet.js) or rewrite the app (using i.e NativeScript).

Offline

#5 2019-11-29 22:08:00

Tordanik
Moderator
From: Germany
Registered: 2008-06-17
Posts: 2,437
Website

Re: Android map server

Serving raster images as tiles is straightforward: Something like tile.openstreetmap.org is just a simple "zoom/tileX/tileY.png" directory structure that can be served by any web server, and leaflet.js works well with it.

Now, rendering the tiles on the Android device itself is probably more work. So the feasability of the above might depend on if you can ship the finished tiles with your software (which is only plausible for larger areas if you don't need too many zoom levels).

Offline

Board footer

Powered by FluxBB