volga-volga / react-native-yamap

React Native Yandex Maps | Яндекс Карты | Yandex.MapKit implementation for react native | YandexMaps
148 stars 81 forks source link

Circle rendered under map labels #171

Closed Reeywhaar closed 1 year ago

Reeywhaar commented 1 year ago

Hi!

I'm struggling to understand why Circle is rendered below map labels. Is it expected?. Setting zIndex doesn't help.

Thank you!

image
ch3rn1k commented 1 year ago

Hello! Yeah, that is expected. POI shows on top level layer, same as Logo and Copyright, that's why Circle renders below.

If this confusing - you can hide all POI via mapStyle prop:

<YaMap
  mapStyle={JSON.stringify([
    {
      types: ['point'],
      stylers: {
        visibility: 'off'
      }
    }
  ]}
/>
Reeywhaar commented 1 year ago

Thank you, now I understand!

Also, I've found out that I can switch to "raster" map type as a workaround :-)