代码之家  ›  专栏  ›  技术社区  ›  MomasVII

如何在Mapbox中对ShapeSource组件进行分层

  •  0
  • MomasVII  · 技术社区  · 3 年前

    这是我的地图的基本外观

    <MapWrapper />
        <AlertLayer />
        {!!workPackId && (
          <AssetScopeLayer />
        )}
    </MapWrapper>
    

    里面都是各种各样的 <ShapeSource /> , <CircleLayer /> 和 <SymbolLayer /> 。 这让我在地图上看到了这一点。 enter image description here

    红点是 <AlertLayer /> 但它落在 <AssetScopeLayer /> 。不管怎样,我点的都在下面。

    如何使红点始终位于顶部?

    谢谢

    0 回复  |  直到 3 年前