Offline map without a tile server

1.9k views Asked by At

Tell me, please, I need to create an application that without the Internet will load an (offline) map of some area and it will be possible to indicate the path on it with points (points will be anchored to latitude and longitude coordinates).

Tile server is NOT supposed to be raised, the main emphasis is on autonomy.

Files of the following formats were downloaded from the sites:

  1. http://download.geofabrik.de/russia.html
  • russia-latest.osm.pbf - which is suitable for Osmium, Osmosis, imposm, osm2pgsql, mkgmap and others;
  • russia-latest.osm.bz2 - file with the extension (yields OSM XML when decompressed; use for programs that cannot process the .pbf format).
  1. https://data.maptiler.com/downloads/tileset/osm/russia/central-fed-district/
  • russia_central.mbtiles - format -> MBTiles (PBF)

To create a web interface for displaying cartographic materials on the site, it is planned to use the OpenLayers library (or Leaflet, if it will be easier to organize what was conceived) together with Webix.

When setting up the environment for the first time and connecting the specified files, all attempts ended in failure.

Also, the russia_central.mbtiles file using the mbutil utility tried to unzip both in pictures and in PBF, but I don’t know how to force this entire folder with .pbf files to be processed by OpenLayers, I tried many examples from https://openlayers.org/en/latest/examples/ to no avail :(

Tell me how to attach an autonomous kata to the site or how you can do it from the specified files ?!

1

There are 1 answers

0
Kumail Raza On

Use QGIS 3.x, select the "Generate XYZ tile" (MBTiles) option and generate tiles for your region.