You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the following code doesn't work for SDF images that need to be colored:
final symbol = await mapController?.addSymbol(
SymbolOptions(
geometry: LatLng(latitude, longitude),
iconImage: 'assets/images/winterbolt.png',
iconSize: 0.5,
iconColor: 'red',
)
);
But the following does work and correctly colors the image red:
final bytes = await rootBundle.load('assets/images/winterbolt.png');
final list = bytes.buffer.asUint8List();
await mapController?.addImage('winterbolt', list, true);
// place Symbol
final symbol = await mapController?.addSymbol(
SymbolOptions(
geometry: LatLng(latitude, longitude),
iconImage: 'winterbolt',
iconSize: 0.5,
iconColor: 'red',
),
);
Maybe the solution is just to add a parameter for SDF to addSymbol?
The text was updated successfully, but these errors were encountered:
assemblethis
changed the title
SDF images work on Android when adding image to controller but not when referenced directly when adding symbol
SDF images are colored as defined on Android when adding image to controller but not when referenced directly when adding symbol
Dec 26, 2022
assemblethis
changed the title
SDF images are colored as defined on Android when adding image to controller but not when referenced directly when adding symbol
[Android] SDF images are colored as defined when adding image to controller but not when referenced directly when adding symbol
Dec 26, 2022
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I noticed that the following code doesn't work for SDF images that need to be colored:
But the following does work and correctly colors the image red:
Maybe the solution is just to add a parameter for SDF to addSymbol?
The text was updated successfully, but these errors were encountered: