yandex_mapkit icon indicating copy to clipboard operation
yandex_mapkit copied to clipboard

zIndex не работает для UserLocationView

Open alexanderkind opened this issue 2 years ago • 0 comments

Добрый день! Не меняется положение маркера пользователя (userLocationView) по отношению к другим маркерам (mapObjects). Маркеру пользователя (userLocationView) устанавливается zIndex меньше, чем у других (mapObjects), но он всегда перекрывает их. Я что-то делаю не так?

Изменение zIndex иконки не даёт результата.

final _userPlacemarkIcon = PlacemarkIcon.single(PlacemarkIconStyle(
    image: BitmapDescriptor.fromAssetImage(Assets.imYourMapMarker),
    zIndex: 1,
));

Изменение zIndex у экземпляра userLocationView - тоже.

var newView = view.copyWith(
  pin: view.pin.copyWith(opacity: 1, icon: _userPlacemarkIcon, zIndex: 1,),
  arrow: view.arrow.copyWith(opacity: 1, icon: _userPlacemarkIcon, zIndex: 1,),
  accuracyCircle:view.accuracyCircle.copyWith(
    fillColor: ThemeColors.baseColor.withOpacity(0.25),
    strokeColor: ThemeColors.baseColor,
  ),
);

Я неправильно использую zIndex?

Flutter doctor

[√] Flutter (Channel stable, 3.0.1, on Microsoft Windows [Version 10.0.19044.2006], locale ru-RU)
Checking Android licenses is taking an unexpectedly long time...[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[!] Visual Studio - develop for Windows (Visual Studio Community 2019 16.3.1)
    X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components:
        MSVC v142 - VS 2019 C++ x64/x86 build tools
         - If there are multiple build tool versions available, install the latest
        C++ CMake tools for Windows
        Windows 10 SDK
[√] Android Studio (version 2021.2)
[√] VS Code (version 1.56.2)
[√] Connected device (4 available)
[√] HTTP Host Availability

image image

alexanderkind avatar Oct 12 '22 12:10 alexanderkind