传单:标记上方的折线

编程入门 行业动态 更新时间:2024-10-19 15:33:31
本文介绍了传单:标记上方的折线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用Leaflet 0.7.7,其标记类型应位于我绘制的折线之后.

I am working with Leaflet 0.7.7 and have a marker type that should go behind Polylines that I draw.

通常,标记会在所有路径上方呈现,但是有没有办法让标记呈现在所有路径下方?谢谢.

Usually markers are rendered above all Paths but is there a way to get a marker to render below? Thanks.

推荐答案

您可以简单地在CSS中将overlayPane(包含矢量/折线的位置)和shadowPane(放置阴影的位置)更改为z-index ),或者如果您希望将所有标记都放在矢量下方,甚至markerPane.

You can simply change the z-index in CSS for the overlayPane (where your vectors / polylines are included) and shadowPane (where shadows are placed), or even the markerPane if you want ALL markers to be placed below vectors.

.leaflet-overlay-pane { z-index: 5; } .leaflet-shadow-pane { z-index: 4; }

演示: jsfiddle/ve2huzxw/39/

更多推荐

传单:标记上方的折线

本文发布于:2023-06-07 22:00:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/568528.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:折线   传单   标记

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!