geoxml3:z-index 问题和鼠标悬停时更改光标
我目前正在开发 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以使用自定义光标
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) }