【发布时间】:2014-12-28 10:53:02
【问题描述】:
我感觉 OpenLayers 3 不像 OpenLayers 2 那样区分底图和其他图层(OL2 图层有一个isBaseLayer property,但我在 OL3 中没有看到等效的)。
我猜在向地图添加图层时必须有某种方法来设置顺序......类似于
map.addLayer(newBasemap, 1); // where all other layers would have an ordering greater than 1
但是当我查看文档时,我看到的只是addLayer(layer),它将新层置于其他层之上。
如何确保新的(底图)图层位于其他图层下方而不是顶部?
【问题讨论】:
标签: openlayers-3