nativescript-mapbox | : statue_of_liberty : : tokyo_tower : : mount_fuji : Native | Map library

 by   Yermo TypeScript Version: 5.0.1 License: MIT

kandi X-RAY | nativescript-mapbox Summary

kandi X-RAY | nativescript-mapbox Summary

nativescript-mapbox is a TypeScript library typically used in Geo, Map applications. nativescript-mapbox has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Awesome native OpenGL-powered maps - by Mapbox. There is a NativeScript Core Modules bug under Android that causes random crashes on navigation. See ./demo-angular/README.md for a workaround.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              nativescript-mapbox has a low active ecosystem.
              It has 191 star(s) with 97 fork(s). There are 22 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 114 open issues and 223 have been closed. On average issues are closed in 66 days. There are 31 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of nativescript-mapbox is 5.0.1

            kandi-Quality Quality

              nativescript-mapbox has no bugs reported.

            kandi-Security Security

              nativescript-mapbox has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              nativescript-mapbox is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              nativescript-mapbox releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nativescript-mapbox
            Get all kandi verified functions for this library.

            nativescript-mapbox Key Features

            No Key Features are available at this moment for nativescript-mapbox.

            nativescript-mapbox Examples and Code Snippets

            No Code Snippets are available at this moment for nativescript-mapbox.

            Community Discussions

            QUESTION

            fitsSystemWindows pushes action bar down - Nativescript & Android 9.0
            Asked 2019-Nov-06 at 09:29

            With Nativescript : Setting true adds height tot the actionbar on android 9.0. Not setting is stops SOFT_INPUT_ADJUST_RESIZE from working.

            Example picture of the extra height added by Nativescript

            • Tried setting ADJUST_PAN
            • Tried setting ADJUST_RESIZE in main.ts
            ...

            ANSWER

            Answered 2019-Nov-06 at 09:29

            This is still a major problem for my development team in Android. We have tried everything we can think of to fix this and still no joy. We have spent days being frustrated by this simple problem.

            NativeScript team - Please, please can you have another look at this problem.

            Basically setting android:fitsSystemWindows in styles.xml along with android:windowSoftInputMode="adjustResize" in the Android Manifest causes the Status bar / Action Bar to change height when the keyboard is displayed.

            You need to do this otherwise the keyboard overlays the content underneath and there is no way to get to form fields etc.

            I am fairly certain this is not related to RadSideDraw. We removed the sidedraw and the problem still persists.

            We have found a work around to stop this problem at runtime... https://github.com/NativeScript/nativescript-ui-feedback/issues/730#issuecomment-546592655

            However during development every time you save your work and the emulator / phone reloads the Actionbar is then pushed under the statusbar. When the keyboard is displayed the Actionbar then correctly re positions itself.

            Source https://stackoverflow.com/questions/57394233

            QUESTION

            Plugin nativescript-mapbox is not included in preview app on device
            Asked 2019-Jun-28 at 15:02

            Plugin nativescript-mapbox is not included in preview app on device

            tns plugin add nativescript-mapbox

            anyone experiencing this?

            ...

            ANSWER

            Answered 2019-Jun-28 at 15:02

            It means exactly what it says. The Nativescript Preview app only has a limited number of libraries installed, making it usable only for basic, simple apps.

            The Preview app comes with a predefined set of NativeScript plugins. If your app > utilizes a plugin that is not present in the Preview app, you will see a warning > message and your app might not work as expected.

            tns preview documentation

            The best solution while developing your app is to use emulators.

            As a side note, from my experience, I've found that the iOS Preview app has more plugins and generally works better.

            Source https://stackoverflow.com/questions/56612315

            QUESTION

            Singleton class not working with component navigation
            Asked 2019-Jun-17 at 17:58

            I'm trying to create a singleton class so I could avoid opening the same database again.

            I've read about creating a class provider with a static variable so it could stay the same, but I've seen that each time I navigate to another component, the static variable content is lost.

            Here's my code so far couchbase.service.ts

            ...

            ANSWER

            Answered 2019-Jun-17 at 16:49

            This is not how should make use of a singleton service. Let's do this way:

            Change your service like this:

            Source https://stackoverflow.com/questions/56635507

            QUESTION

            How to translate Mapbox GL Native Android Activity example Java app into NativeScript?
            Asked 2019-Apr-01 at 05:50

            I am attempting to track down a nasty crash bug in the NativeScript Mapbox plugin. On android any app built with that plugin crashes onResume.

            To rule out a bug in the Mapbox GL Native Android library, I followed the install steps to create a very simple example app in Java that loads and displays a map.

            That sample app does not crash regardless how many times I pause and resume.

            I notice that the NativeScript Mapbox plugin does not seem to call the recommended Mapbox lifecycle hooks and that there are a number of crashes reported in the Mapbox native issues list where the answer is "follow the lifecycle hook guidelines".

            So my next thought was to see if I can translate the Java code directly into NativeScript following the recommended life cycle hooks (exactly as it's done in the sample app). This way I would be able to determine if the crash is because of the lifecycle hooks not being called correctly or because of some more esoteric NativeScript issue.

            The working Java activity is:

            ...

            ANSWER

            Answered 2019-Apr-01 at 05:50

            We don't have a activity_main.xml in NativeScript. Your UI is built using NativeScript components using XML / JavaScript. To initialise the UI, you have to do this like in original implementation, otherwise you would loose all the core navigation feature provided within framework.

            Source https://stackoverflow.com/questions/55446126

            QUESTION

            How to call Objective-C NSExpression( format: ....) from NativeScript?
            Asked 2019-Mar-02 at 21:37

            I am working on expanding the NativeScript-Mapbox plugin to include the ability to render circles that resize as the map is zoomed. I am working off the example on this page.

            On iOS, I am running into problem trying to translate this NSExpression call into NativeScript:

            ...

            ANSWER

            Answered 2019-Feb-27 at 20:26

            The swift (not objective-c) object you're dealing with there is not an array, but a dictionary.

            Source https://stackoverflow.com/questions/54890753

            QUESTION

            nativescript-mapbox making use of the native MapView object
            Asked 2018-May-16 at 16:11

            Final Edit

            I've found the correct documentation, and can inspect the MapView instance and mapboxMap to see available functions.

            However I'm still not clear on how to actually use the SDK from within JavaScript, for example using mapboxMap.addLayer(layer: Layer). How do I make a new Layer?

            So any tips on how to use a native SDK from within my angular/nativescript app would be lovely.

            Original Question

            I need a bit more control over my Mapbox plugin in my NativeScript project (I need to implement clustering, custom popups, custom (moveable) markers etc) and nativescript-mapbox doesn't provide convenience methods for this.

            According to the documentation, the onMapReady event is meant to return a reference to the native MapView object under args.ios || args.android however when I inspect this object via logging, it appears to just be a string.

            ...

            ANSWER

            Answered 2018-May-16 at 16:11

            com.mapbox.mapboxsdk.maps.MapView{14ffde6 VFED..CL. ........ 0,0-1080,1584} that is an instance, not sure on the logging as a 'string' but you could try `const x = args.android// the instance you are getting; console.dir(x) and see what logs, you should see methods, members, etc.

            As for the type when it's logged, it's giving you the type but it's on the namespace of the full class, so com.mapbox...MapView is your type for the instance you are logging. You can do the same with other layouts/views in NativeScript. Add a console.log(something) where something is a ref to a layout or view (button, label) and you'll see the same. So on that instance you'll have access to whatever the SDK provides. Hope that helps.

            Source https://stackoverflow.com/questions/50341281

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install nativescript-mapbox

            To come up to speed on the plugin, I added extensive trace messages. These can be turned on by replacing 'npm run build.release' with 'npm run build.debug' in the commands above.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i nativescript-mapbox

          • CLONE
          • HTTPS

            https://github.com/Yermo/nativescript-mapbox.git

          • CLI

            gh repo clone Yermo/nativescript-mapbox

          • sshUrl

            git@github.com:Yermo/nativescript-mapbox.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link