Giter Site home page Giter Site logo

matiseams / ti-mapbox-gl Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 180.78 MB

Titanium wrapper for new Mapbox GL Native SDK (https://github.com/mapbox/mapbox-gl-native)

License: Other

Java 2.94% JavaScript 1.51% Objective-C 50.45% Python 1.34% Makefile 34.25% Shell 1.38% HTML 0.12% C++ 8.00%

ti-mapbox-gl's People

Contributors

timanrebel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ti-mapbox-gl's Issues

Unable to use setMyLocationEnabled

I am trying to get the location drawable to show up on Android for the user's current location. By default it is not showing up so I am trying mapboxMap.setMyLocationEnabled(true) but this is throwing the following error:

Suppressed: java.lang.ClassNotFoundException: com.mapbox.mapboxsdk.maps.widgets.UserLocationView

Set Access token method is missing

In order to use mapbox api URLs there needs to be a method for setting the access token, otherwise:
[ERROR] : TiApplication: (main) [122,4253] Sending event: exception on thread: main msg:com.mapbox.mapboxsdk.exceptions.InvalidAccessTokenException:
[ERROR] : TiApplication: Using MapView requires setting a valid access token. Use setAccessToken on Mapview to provide one.

I would set it here in the handleCreationDict function in MapViewProxy.java:

    // Handle creation options
    @Override
    public void handleCreationDict(KrollDict options) {
        Log.e(TAG, "***** handleCreationDict");

        super.handleCreationDict(options);

        if (options.containsKey("styleUrl")) {
            styleUrl = TiConvert.toString(options.get("styleUrl"));
        }

        if (options.containsKey("accessToken")) {
            accessToken = TiConvert.toString(options.get("accessToken"));
        }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.