GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hyperloop-modules/hyperloop-mapbox: Use the native Mapbox SDK with Axway Hyperloop.

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
platform/android/res/values
platform/android/res/values
 
 
plugins/ti.alloy
plugins/ti.alloy
 
 
.gitignore
.gitignore
 
 
CHANGELOG.txt
CHANGELOG.txt
 
 
DefaultIcon-ios.png
DefaultIcon-ios.png
 
 
DefaultIcon.png
DefaultIcon.png
 
 
LICENSE
LICENSE
 
 
LICENSE.txt
LICENSE.txt
 
 
MarketplaceArtwork.png
MarketplaceArtwork.png
 
 
Podfile
Podfile
 
 
Podfile.lock
Podfile.lock
 
 
README
README
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
example.jpg
example.jpg
 
 
iTunesConnect.png
iTunesConnect.png
 
 
tiapp.xml
tiapp.xml
 
 

Repository files navigation

Mapbox SDK in Titanium and Hyperloop

Use the Mapbox SDK (iOS and Android) in Axway Hyperloop! This is an example of using the SDK, so this does not expose all possible API's of the SDK. See the official documentation for details.

Note: The examples here are written in ES6 (enable with <transpile>true</transpile> in your tiapp.xml) and Titanium SDK 7.1.0. You can still use it with Titanium 7.0.x and classic ES5 if you want!

Mapbox SDK in Axway Hyperloop

Features

View

import MapBox from 'ti.mapbox';
const mapView = MapBox.createView({
  region: {
    latitude: 52.020388,
    longitude: 9.580078,
    animated: true
  }
});

myWindow.add(mapView.getInstance());

Annotation

const annotation = Mapbox.createAnnotation({
  latitude: 52.020388,
  longitude: 9.580078
});

mapView.addAnnotation(annotation.getInstance());

iOS Configuration

Add the following tags to your plist-section of the tiapp.xml and change YOUR_MAPBOX_ACCESS_TOKEN to your actual access token

<!-- Mapbox configuration -->
<key>MGLMapboxAccessToken</key>
<string>YOUR_MAPBOX_ACCESS_TOKEN</string>

<!-- General Geolocation permissions -->
<key>NSLocationWhenInUseUsageDescription</key>
<string>Can we access your location while using the app?</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Can we access your location?</string>

Android Configuration

  1. Place your access token in Resources/android/ti.mapbox/index.js
  2. Ensure you have installed at least Gradle 4.1 by running brew install gradle and brew update gradle
  3. Run gradle to pull down the necessary android libraries into platform/android:
gradle getDeps
  1. Now build!
appc run -p android

License

Apache 2.0

Authors

  • Hans Knöchel (Axway Appcelerator)
  • Chris Williams (Axway Appcelerator)

About

Use the native Mapbox SDK with Axway Hyperloop.

Topics

hyperloopmapbox-ios-sdktitanium

Resources

Readme
Activity
Custom properties

Stars

14 stars

Watchers

5 watching

Forks

9 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.