-
Notifications
You must be signed in to change notification settings - Fork 504
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 aka symbols not working #108
Comments
I'm working on Android, not working as well |
Hi @fauzipadlaw, are you adding a custom symbol or a default one? If you could provide a code snippet it would really help. Note that custom symbols have been implemented in PR #79 which has not been merged yet. |
Hi @TimothySealy, I use the default. in state:
|
Just to be sure, if you run the example application do you see a symbol on the map? I have just tested your snippet by modifying the example app (specifically the "Place symbol" page) and it seems to work but when opening the "Place symbol" for the second time I get the following error (which has also been reported here #104):
|
Having the same issue, has this been solved yet?? |
I updated the void _onMapCreated(MapboxMapController controller) {
this.controller = controller;
controller.onSymbolTapped.add(_onSymbolTapped);
this.controller.addSymbol(
SymbolOptions(
geometry: LatLng(-33.840002, 151.204478),
iconImage: "airport-15"),
);
} And I'm seeing the symbol correclty loaded and not hitting exceptions mentioned here: Happy to take another look if a full reproducible example is provided. |
@BwesShr what is the value of driver icon? Does this icon image exist in your style? |
@tobrun it is working now |
This issue came back with 0.0.5 and it seems to be a timing issue. I get this error when adding a symbol in the
|
@mopfattn You should only add symbols/lines/circles after the |
Agreed, we also need to update our internal examples for this as well |
I have recently tried to implement the mapbox in flutter and I am trying to add symbols and route to the mapbox map. But no symbols are displayed in the screen.
mapController.addSymbol(
SymbolOptions(
geometry: LatLng(
latitude,
longitude,
),
iconImage: driverIcon,
),
);
The text was updated successfully, but these errors were encountered: