/TiOpenStreetMap

example to use Titanium Android OSM module

Primary LanguageJavaMIT LicenseMIT

What is TiOsm?

TiOsm is a titanium mobile module enabling a titanium mobile application on Android devices to access open streat map. In appcelerator's open mobile marketplace, there're already OpenStreetMap Module, but it currently supports only iOS platform and will not support Android in the near future. So I decide to write a titanium module to bridge osmdroid.

Prerequired

You have to download the following java libraries and place them under android/lib

How to build

First of all, edit titanium platform, Android SDK and NDK paths in the build.properties to fit your environment. Then just type

ant

You'll get the module binary in the following directory.

android/dist/net.tiosm-android-0.1.zip

How to use

To access this module from JavaScript, see the following example:

android/example/app.js

The following command will build and install an example app into the android emulator.

ant run

TODOs:

  • MyLocationOverlay
  • Annotations
  • To support more features osmdroid has