-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add marker api #28
Comments
Could be related to the icon image? Haven't had time to look into this, just wanted to flag that we are going to rework the annotations API upstream, so might be better holding of development of this feature until that lands. If you feel this can't wait, feel free to move forward. |
upstream seems to not be happening in the near future, so maybe we should move forward with the annotations approach |
Hm.. You can use this code in public void addMarker(Marker marker) {
MarkerOptions options = new MarkerOptions()
.icon(IconFactory.getInstance(context).defaultMarker())
.position(marker.getPosition())
.snippet(marker.getSnippet())
.title(marker.getTitle());
nativeMapView.addMarker(new Marker(options)); Now, i not founded any exception, but marker does not appear. -- Adding |
@tobrun any updates? |
@kaiquegazola we are working on improving annotations api in https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation. Once finalised, we will work on integrating this inside this project. |
@tobrun Any updates on this? This is the perfect plugin for me, except that it lacks the ability to add markers. It would be cool if we could also specify a custom Flutter widget for the marker icon (like in the other mapbox plugin except with raster tiles)! |
This project will be moved to https://github.com/tobrun/flutter-mapbox-gl |
@tobrun I have tried to add the addMarker capability (without custom icon to start) but seeing an Java exception:
This looks like an upstream problem as the Marker object is correct. can you have a look? https://github.com/seddonm1/flutter-mapbox-gl/tree/add-marker
The text was updated successfully, but these errors were encountered: