OpenLayers 中的自定义 OverviewMap - 缺少 className 参数
Custom OverviewMap in OpenLayers - missing className parameter
在 example on Openlayers website regarding customizing overview maps one of parameter is "className". In example "className" parameter belong to ol.control.OverviewMap object but 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';
在 example on Openlayers website regarding customizing overview maps one of parameter is "className". In example "className" parameter belong to ol.control.OverviewMap object but 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';