Titanium Mapbox Versions Save

Titanium Module Wrapper for MapBox iOS SDK

v0.5

9 years ago

With PR #16 the module now has:

  • 64 bit support
  • ability to change pin colors
  • Updated to latest Mapbox iOS SDK
  • Ability to set individual pin colors
  • Access mbtiles outside of /Resources directory

With the latest Mapbox iOS SDK, an access token will be required, such as:

mapbox.createView({
  accessToken: 'myAccestokenhere'
...

v0.4

10 years ago

New Methods

removeAnnotation("my title")

  • Remove an annotation or shape using removeAnnotation() method, and passing the annotation/shape's tile as a string, or by passing the entire annotation/shape object.

removeAllAnnotations()

  • Removes all annotations and shapes from the map

clearTileCache()

  • Removes any map tile images that were cached while viewing a remove map.
  • Remote maps are cached by default, so this is useful to call when you don't want any map caching, or when making styling changes to the remote map

Changes

  • mapViewRegionDidChange now returns the new map center point's latitude and longitude
  • Internally, createAnnotation is now using RMAnnotation and loading the RMMapLayer manually, same as with createShape. This will allow for more customization of the annotation.

v0.3

10 years ago

New Methods

  • Added the addShape method for adding shapes to the map, including polygons, lines and routes.

New Events

  • tapOnAnnotation
  • longPressOnMap

Fixes

  • backgroundColor on map now working

v0.2

10 years ago

Added initial support for creating and adding annotations

v0.1

10 years ago

Initial release with online and offline map support