Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/410.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在openlayers的缩放控件下添加一些图像_Javascript_Openlayers - Fatal编程技术网

Javascript 如何在openlayers的缩放控件下添加一些图像

Javascript 如何在openlayers的缩放控件下添加一些图像,javascript,openlayers,Javascript,Openlayers,我是openlayers的新手,我只想在openlayers上添加一些可以控制放大/缩小的图像,比如compass图像或任何东西,其中图像位置在IMG文件夹中。我可以在openlayers上使用什么样的代码?看看本例中的第二个映射:(使用自定义标记进行ZoomControl)。如果您不介意,可以给我看一个代码示例吗?因为只要有一个例子,我就能做到。但是,如果这让您感到不安,请不要这样做:)谢谢^ ^示例中有到源代码的链接。我不知道你会错过什么…@tonio,你的链接是dead@jlandercy

我是openlayers的新手,我只想在openlayers上添加一些可以控制放大/缩小的图像,比如compass图像或任何东西,其中图像位置在IMG文件夹中。我可以在openlayers上使用什么样的代码?

看看本例中的第二个映射:(使用自定义标记进行ZoomControl)。

如果您不介意,可以给我看一个代码示例吗?因为只要有一个例子,我就能做到。但是,如果这让您感到不安,请不要这样做:)谢谢^ ^示例中有到源代码的链接。我不知道你会错过什么…@tonio,你的链接是dead@jlandercy链接已修复。