Google Maps API v3 draggableCursor选项(如位置) [英] Google Maps API v3 draggableCursor options such as position

查看:565
本文介绍了Google Maps API v3 draggableCursor选项(如位置)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个长镜头,但我想知道,如果在谷歌地图API v3中有任何设置,将允许我设置在我的自定义draggableCursor的提示/结束(缺少一个更好的词)的位置光标应该是。默认设置似乎是图片的左上角是光标点,但我想要它是左下角。

This is a long shot, but I was wondering if there were any settings in Google Maps API v3 that would allow me to set where on my custom "draggableCursor" the tip/end (for lack of a better word) of the cursor should be. The default settings seem to be that the top left hand corner of the image is the cursor point, but I want it to be the bottom left hand side.

这里是我的代码:

map.setOptions({ draggableCursor: 'url(images/markers/you_marker.cur), default' });


推荐答案

游标的热点应该在 .cur 文件。如果没有指定任何其他位置,它默认为左上角。 API简单指定要使用哪个光标文件。

The hotspot for a cursor should be defined in the .cur file. It defaults to the top-left in the absence of any other position being specified. The API simply specifies which cursor file to use.

http://www.axialis.com/tutorials/what-is-a-cursor.html#t8 (提供其他光标设计程序)。

http://www.axialis.com/tutorials/what-is-a-cursor.html#t8 (other cursor design programs are available).

这篇关于Google Maps API v3 draggableCursor选项(如位置)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆