Open DmitriySimonov opened 9 months ago
try to put your userLocation Marker inside SizedBox and give them small size
@DmitriySimonov you didnt like my suggestion ? did you overcome the issue ? or you need some fixes from our side ?
i will work on this try to make quick fix for it sorry for any late
try to put your userLocation Marker inside SizedBox and give them small size
That didn't help, and the error remained
i will try to do fix for that
small question is the icon marker shown ok for you the only issue is userLocation icon ?
small question is the icon marker shown ok for you the only issue is userLocation icon ?
Yes
I tried rewriting the code this way and it helped, the display userLocation became normal.
But the error in the console remains
userLocationMarker: UserLocationMaker(
personMarker: MarkerIcon(
iconWidget: Image.asset(
Const.ICON_MAP_MARKER_PERSON,
width: 100,
height: 100,
),
),
directionArrowMarker: MarkerIcon(
iconWidget: Image.asset(
Const.ICON_MAP_MARKER_PERSON_DIRECTED,
width: 100,
height: 100,
),
),
),
you need to show us more of your code where you're using addMarker? and the issue of userLocation we will solved also
you need to show us more of your code where you're using addMarker? and the issue of userLocation we will solved also
final MarkerIcon icon = MarkerIcon(
iconWidget: SvgPicture.asset(
Const.ICON_MAP_MARKER_LOAD_SVG,
height: 30,
),
);
await mapController.addMarker(
GeoPoint(latitude: 0.0, longitude: 0.0),
markerIcon: icon,
iconAnchor: IconAnchor(anchor: Anchor.top),
);
ah you're using svg as icon ok give me sometime to do some verification and maybe i need to add some sepecific api in MarkerIcon to make svg render more smooth if the display of userlocation is normal keep that fix and share with me to see how i can adjust my ios side with it and i will do quick fix for svg side
@DmitriySimonov for use case try to add width also in SvgPicture.asset
Unfortunately I can't do that right now, no access to IOS, and won't be for a long time(
flutter_osm_plugin: ^1.0.0-dev.4
The icon on the IOS phone is huge and an error appears in the logs. Everything is fine on Android phones.
Code:
icons:
Screen:
flutter doctor: