Skip to content

klimeto/titanium-mapbox-android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mapbox Android SDK Wrapper for Titanium

Uses the mbpages branch of the Mapbox Android SDK.

Current State of Development

This is a work in progress,

  • Uses the example map examples.map-i87786ca.
  • For the current iteration, the goal is to expose some API’s from ti.map for setting the location, zoom, and markers.

Source & Test App

The root of this repo contains the module source code and the test app respectively.

Example

var mapbox = require('flg.mapbox');

var mapView = mapbox.createMapView({
	width : Titanium.UI.FILL,
	height : Titanium.UI.FILL,
	top : 3,
	bottom : 3,
	left : 3,
	right : 3,
	region : {
		latitude : 39.743878,
		longitude :  -105.020118,
		latitudeDelta : 0.0005,
		longitudeDelta : 0.0005
	},
	userLocation : showUserLocation
});

win.add(mapView);
win.open();

Properties

region

Dictionary with keys:

  • latitude
  • longitude
  • latitudeDelta
  • longitudeDelta

userLocation

Boolean, show or hide the current location on the map.

annotations

Array of dictionaries with keys:

  • title
  • subtitle
  • latitude
  • longitude

Methods

setRegion

setUserLocation

setAnnotations

About

Android Mapbox SDK Wrapper for Titanium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.4%
  • Java 10.1%
  • Python 2.8%
  • CSS 0.7%