如何在 openlayers 3 中添加图像 ol.control.ZoomToExtent
how to add image ol.control.ZoomToExtent in openlayers 3
在ol.control.ZoomToExtent中,Openlayers3 使用'E' 字符进行查看(http://openlayers.org/en/v3.5.0/examples/navigation-controls.html)。
但我想添加 image.How 来执行此操作?
设置控件时,您可以向其传递多个选项,其中之一是 label (ZoomToExtent Documentation).
将 label 设置为 '' 并将 className 设置为特定样式,为 CSS 中的元素设置样式,根据需要添加图像。
在ol.control.ZoomToExtent中,Openlayers3 使用'E' 字符进行查看(http://openlayers.org/en/v3.5.0/examples/navigation-controls.html)。 但我想添加 image.How 来执行此操作?
设置控件时,您可以向其传递多个选项,其中之一是 label (ZoomToExtent Documentation).
将 label 设置为 '' 并将 className 设置为特定样式,为 CSS 中的元素设置样式,根据需要添加图像。