Download metromap-geopackage.zip Copy the link and open DICE, or after tapping the link choose “Open in DICE.”

DICe and GeoPackage

The DICE iOS and Android apps now support GeoPackage for offline map tiles. This OGC standard allows you to store multiple sets of tiles, vectors, and features in a single file.

Each GeoPackage is a SQLite database so you can query and update it’s data.

Below is an example of how to use a GeoPackage for displaying tiles in a DICE report using Leaflet.

	L.tileLayer('geopackage/metromap.gpkg?table=metromap&z={z}&x={x}&y={y}', {
	        attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery (c) <a href="http://cloudmade.com">CloudMade</a>, Icon Map Created by <a href="http://thenounproject.com/term/map/32153/">Simple Icons</a>',
	        maxZoom: 13,
	        minZoom: 11,
	        errorTileUrl: "img/error_tile.png"
	      }).addTo(map);

If you are interested in incorporating GeoPackage into one of your applications, we have SDKs available for many platforms.