geoxml3:z-index 问题和鼠标悬停时更改光标

发布于 2024-11-28 12:24:04 字数 440 浏览 6 评论 0原文

我目前正在开发 Google Maps API v3 项目,并使用 geoxml3 加载一些具有折线的 kml 文件。但是,我想使用 API 的 kmllayer 选项来加载仅包含标记的 kml 文件(它比 geoxml3 快得多)。

第一个问题:geoxml3 折线始终位于标记之上,并且我找不到为 kmllayer 提供更高 z 索引的方法。折线后面的标记看起来不太好。

第二个问题:每次光标越过通过 geoxml3 加载的折线时,光标都会更改为链接手。是否可以在鼠标悬停时指定另一个光标?

测试页面为http://www.cicloviaslx.com/indexs4.html。启用“Parques”复选框以查看 z-index 问题。抱歉代码混乱,但我正在进行大量测试。

I'm currently working on a Google Maps API v3 project and I'm using geoxml3 to load some kml files which have polylines. However, I'd like to use the API's kmllayer option to load a kml file which has only markers (it's much faster than geoxml3).

First problem: the geoxml3 polylines are always above the markers, and I can't find a way to give a higher z-index to the kmllayer. Markers behind polylines don't look so good.

Second problem: the cursor changes to the link-hand every time it goes over the polylines loaded via geoxml3. Is it possible to specify another cursor on mouseover?

The test page is http://www.cicloviaslx.com/indexs4.html. Enable the "Parques" checkbox to see the z-index problem. Sorry for the messy code, but I have a lot of testing going on.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤君无依 2024-12-05 12:24:04

是的,您可以使用自定义光标
body {cursor: url(mycursor.cur) }

或者,在悬停时使用
body a:hover { 光标: url(mycursor.cur) }

yes, you can customize your cursor by using
body { cursor: url(mycursor.cur) }

or, to do it on hover use
body a:hover { cursor: url(mycursor.cur) }

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文