Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25729] Hyperloop: iOS - Unable to load Mapbox using Hyperloop

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionNot Our Bug
Resolution Date2018-01-27T17:10:10.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsHyperloop
Labelsn/a
ReporterVictor Vazquez Montero
AssigneeHans Knöchel
Created2018-01-26T21:26:59.000+0000
Updated2018-08-06T17:52:05.000+0000

Description

Attachments

FileDateSize
HyperloopDemo.zip2018-01-26T21:25:40.000+000010010451
HyperloopDemo-fixed.zip2018-01-27T17:07:24.000+00009520041
Screen_Shot_2018-01-26_at_1.29.28_PM.png2018-01-26T21:25:52.000+0000156131

Comments

  1. Hans Knöchel 2018-01-27

    I cannot see any reference to the Mapbox SDK in the sample project. Here is an example of using Cocoapods to manage the framework:
       install! 'cocoapods',
                :integrate_targets => false
        
       platform :ios, '8.0'
       

    Change to the actual app name

    target 'HyperloopDemo' do pod 'Mapbox-iOS-SDK' end
    Doing that, you can instantiate a new view:
       var UIScreen = require('UIKit/UIScreen');
       var UIViewAutoresizingFlexibleWidth = require('UIKit').UIViewAutoresizingFlexibleWidth;
       var UIViewAutoresizingFlexibleHeight = require('UIKit').UIViewAutoresizingFlexibleHeight;
       var MGLMapView = require('MapBox/MGLMapView');
       
       var mapView = new MGLMapView.alloc().initWithFrame(UIScreen.mainScreen.bounds);
       mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
       
       // ... Create your Titanium view ...
       
       myTitaniumView.add(mapView);
       
  2. Hans Knöchel 2018-01-27

    Fixed their project for them and re-attached it under "HyperloopDemo-fixed.zip". There were a couple of issues: * Mapbox SDK wasn't included * Mapbox API-key were missing * Mapbox geolocation permissions were missing I've also updated our [Mapbox sample-app](https://github.com/hyperloop-modules/ti.mapbox) that can be used as an additional reference. Cheers!
  3. Eric Merriman 2018-08-06

    Closing as "not our bug". If you disagree, please reopen.

JSON Source