Comments (7)
Are u referencing mapboxsdk
anywhere ?
from nativescript-mapbox.
I do have the same in plain javascript as well
from nativescript-mapbox.
iOS or Android, and are you doing this before application.start();
perhaps?
from nativescript-mapbox.
I'm doing it in the constructor without issues. Might want to try moving it there, although I tried with ngInit and it worked fine there as well.
from nativescript-mapbox.
I'm having the same issue on Android only with plain javascript:
JS: Error in mapbox.show: TypeError: Cannot read property 'mapboxsdk' of undefined
from nativescript-mapbox.
-
uninstall the application from device
-
remove and add the plugin again
-
build the application
-
Run it.
It worked for me, and it works for most of the plugin with such issues.
from nativescript-mapbox.
Got it. I think the problem was that I forgot to add
<service android:name="com.mapbox.mapboxsdk.telemetry.TelemetryService" />
to my AndroidManifest.xml
.
from nativescript-mapbox.
Related Issues (20)
- clusters HOT 8
- Is there a way to have buildings render in 3D?
- tap on map cause an app crash on android HOT 6
- MGLCoordinateInCoordinateBounds and other Geometry methods not available in iOS typings
- Event when map has stopped moving HOT 1
- docs need an update. trackUser not working as expected
- args.android is undefined in onMapReady
- [iOS] removePolylines does not work without passing parameter
- Map not displaying on Android HOT 2
- MapBox center map not working
- Black map and 'mapReady' not fired
- Doesn't work with NS7 HOT 10
- Unable to draw lines based on the coordinates that were returned by the directions API
- showUserLocation is not working on ios14 HOT 1
- addPolygon show pop up
- How to add image for internal map. https://docs.mapbox.com/ios/maps/examples/image-source/ HOT 1
- setMapStyle and removeOnDidFailLoadingMapListener
- Doesn't work with nativescript 7 HOT 4
- how to set language?
- mapbox.addImage() doesn't work from locale storage HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-mapbox.