Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Offline Maps (mbtiles) for iPad/iPhone

$
0
0

Hi,

for a land register app I'm looking for an offline solution, because in Germany the Datenautobahn is not everwhere.

  1. from marketplace doesn't support draggable annotations.
  2. this ti.map patch from netfunctional works if I compile the example.

Now you have generated my own mbtiles with the perl script 'Geo-OSM-Tiles' and with mbutil. The result is a sqlite DB with suffix 'mbtiles'.

If I embed my mbtilesI see the apple map,but not my OSM map:

var MapNF = require('ti.map');
var mbtilesDB = Ti.Filesystem.getFile(Ti.Filesystem.getResourcesDirectory(), 'assets', 'enkheim.mbtiles').nativePath;
    self.mapview = MapNF.createView({
        mapType : MapNF.STANDARD_TYPE,
        region : {   
            latitude : 50.1559955,
            longitude : 8.7657151,
            animate : true,
            latitudeDelta : 0.005,
            longitudeDelta : 0.005
        },
        tileDB : mbtilesDB
    });
This is copied and modified example.

Question:

How can I solve?

  1. other module
  2. wrong format of my db ?

Rainer


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>