Comments (8)
This seems to be subject to refactoring quite a bit in the Android Mapbox SDK. I'll have to do a bit of research..
from nativescript-mapbox.
Ha, lol, I've just replicated that UI by manually adding 2 markers one the same spot (my location) using those blue and white drawables. So I guess I can release a good v1 based on that approach tomorrow. Thx!
from nativescript-mapbox.
Oh wow, that icon may come in handy if the version I just pushed is flaky. The advantage of the current version is though that the plugin uses icons bundled with the Mapbox SDK.
Available in 2.2.0 which is now on GitHub and very soon on npm as well.
from nativescript-mapbox.
+1
Same problem on Android 2.3. Works on IOS.
from nativescript-mapbox.
Tried a few thing that should work but didn't. I'm contemplating drawing the user location via a custom marker myself for now.
from nativescript-mapbox.
Thanks for following up on this one. Just let me know if you would like me to test anything.
You have probably allready taken a look at the sample application from mapbox. But here is the information just in case. It contains user location and userlocation button. I downloaded test app from google play and it 's showing location as expected.
Google Play
https://play.google.com/store/apps/details?id=com.mapbox.mapboxandroiddemo&hl=en
Github project
https://github.com/mapbox/mapbox-android-demo
from nativescript-mapbox.
Great i will test it :-)
EDIT: if you would like to go for one marker/image solution : https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/src/main/res/drawable-xxhdpi/ic_circle.png
from nativescript-mapbox.
Can confirm version 2.2.0 of plugin on Android 2.3.0 is showing location as expected. Thank's a lot @EddyVerbruggen.
Is it possible to add the accuracy marker/image also ?
https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/src/main/res/drawable-xxhdpi/circle_icon.png
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.