javascript - OpenLayers 中的自定义 OverviewMap - 缺少 className 参数

标签 javascript openlayers openlayers-3

example在 Openlayers 网站上有关自定义概览图的参数之一是“className”。在示例中,“className”参数属于 ol.control.OverviewMap 对象,但 object in documentation没有提及该参数,我找不到有关它的任何信息。当该参数从 OverviewMap 对象中删除时,您能解释一下吗?

最佳答案

根据源代码,目前仍在使用。也许这只是文档中的无意遗漏。

https://github.com/openlayers/ol3/blob/master/src/ol/control/overviewmap.js

var className = options.className !== undefined ? options.className : 'ol-overviewmap';

关于javascript - OpenLayers 中的自定义 OverviewMap - 缺少 className 参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41127956/

相关文章:

javascript - 谷歌会索引 hashbang/escaped_fragment 内容的正确 URL

openlayers - Openlayers 3 中的拖放功能

javascript - 在我的本地驱动器上使用 openlayers 显示 kml 文件

javascript - Openlayers 3 - 多线串放大/缩小闪烁层

compiler-errors - 引用错误: OpenLayers is not defined while using osm layer

javascript - npm WARN 已弃用优雅 fs@3.0.8 : graceful-fs version 3

javascript - 如何使用 Javascript 找到虚拟视口(viewport)/屏幕宽度?

javascript - ContentFlow (coverflow) - 如何让它按照我想要的方式工作?

javascript - 如何从 openlayers map 获取 lat/lng 值

javascript - OL3 : Zoom to vector layer on map