nativescript-mapbox | : statue_of_liberty : : tokyo_tower : : mount_fuji : Native | Map library
kandi X-RAY | nativescript-mapbox Summary
kandi X-RAY | nativescript-mapbox Summary
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
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nativescript-mapbox
nativescript-mapbox Key Features
nativescript-mapbox Examples and Code Snippets
Community Discussions
Trending Discussions on nativescript-mapbox
QUESTION
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:29This 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.
QUESTION
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:02It 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.
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.
QUESTION
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:49This is not how should make use of a singleton service. Let's do this way:
Change your service like this:
QUESTION
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:50We 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.
QUESTION
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:26The swift (not objective-c) object you're dealing with there is not an array, but a dictionary.
QUESTION
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:11com.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.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nativescript-mapbox
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page