Thr0TT1e
Thr0TT1e

Reputation: 45

Offline map without a tile server

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
  1. https://data.maptiler.com/downloads/tileset/osm/russia/central-fed-district/

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 ?!

Upvotes: 3

Views: 2257

Answers (1)

Kumail Raza
Kumail Raza

Reputation: 91

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

Upvotes: 0

Related Questions