Skip to main content

Layer zIndex

Live Editor
<div>
  <MapContainer center={[126.841784, 35.191406]} width="100%" height="500px">
    <CustomCircle
      center={[126.841884, 35.191516]}
      radius={20}
      color="RED"
      zIndex={1}
    >
      <InnerText>Circle1</InnerText>
    </CustomCircle>
    <CustomCircle
      center={[126.841784, 35.191406]}
      radius={20}
      color="BLUE"
      zIndex={2}
    >
      <InnerText>Circle2</InnerText>
    </CustomCircle>
  </MapContainer>
</div>
Result
Loading...

zIndex 설정으로 각 레이어의 우선순위를 결정할 수 있습니다.