Releases: adampax/titanium-mapbox
Releases · adampax/titanium-mapbox
64-bit support, updated Mapbox SDK, pin colors
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'
...
removeAnnotation, clearTileCache methods
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 usingRMAnnotation
and loading theRMMapLayer
manually, same as withcreateShape
. This will allow for more customization of the annotation.
addShape method, new Events
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
Initial Annotation Support
Added initial support for creating and adding annotations
Initial Release
Initial release with online and offline map support