Skip to content
Titanium SDK

ti.map

Officialtidev/ti.map

Native Apple Maps and Google Maps for iOS and Android.

Install

A module is a zip you unpack in your project. There is no installer command yet - a ti module install is planned but does not exist today, so the steps below are the ones that work.

  1. 1. Download the release archive

  2. 2. Unpack it at your project root

    cd /path/to/your-project
    unzip ~/Downloads/ti.map-android-5.7.0.zip
    unzip ~/Downloads/ti.map-iphone-7.3.1.zip

    The archive already contains the full path, so it lands in place:

    • modules/android/ti.map/5.7.0/
    • modules/iphone/ti.map/7.3.1/
  3. 3. Add it to tiapp.xml

    <modules>
      <module platform="android" version="5.7.0">ti.map</module>
      <module platform="iphone" version="7.3.1">ti.map</module>
    </modules>

    The platform attribute is the packager’s name for the platform, which is iphone for iOS - the same word the archive uses in its own path.

  4. 4. Require it from your app

    const mod = require('ti.map');