Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Anyone knows if there is a "lightway" solution to mount a local tile server?

Feature I'd to provide is local storage of small sections of maps, not more than small city for example, in order to provide some degree of offline maps navigation by pointing javascript functions to the local server when network is not accessible.

I'll appreciate any idea or suggestion!

share|improve this question
Maps on a Stick?… – Mapperz Sep 26 '12 at 17:17

If you are using Quantum GIS, you could utilise the OpenLayers plugin. Progams such as Mapertive can download tiles from OpenStreetMap, using the generate-tiles method. Other programs may be available for other sources. Mapertive exports the images into the 'Tiles' subfolder.

Once you have the tiles downloaded, make a copy of one of the files in the qgis\python\plugins\openlayers_plugin\html folder, except modify the statement which creates a layer.

In this example I am using MS Windows, and OpenStreetMap. I would replace

   var osm = new OpenLayers.Layer.OSM(


var osm = new OpenLayers.Layer.OSM(

I saved this file as qgis\python\plugins\openlayers_plugin\html\osm_local.html

Last thing to do is modify the file, by registering the new html file.

# Layers
self.olLayerTypeRegistry = OlLayerTypeRegistry()

# Add this
self.olLayerTypeRegistry.add( OlLayerType(self, 'OpenStreetMap (Cache)', 'osm_icon.png', 'osm_local.html', True) )

After restarting QGIS, you will have a new option in the OpenLayers menu

enter image description here

share|improve this answer

You can also set up a local tile server using TileLite. It's a lightweight Python tile-server using Mapnik rendering and designed to serve tiles in the OSM (OpenStreetMap) scheme.

Good luck :)

share|improve this answer

i dont know whether it is what you want or not but OpenLayers has Offline Storage for calling tiles from browser local storage. There is an example here

i hope it helps you...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.