MapSwitch

GeoGlobe.Widget. MapSwitch

底图切换

Constructor

new MapSwitch(dom, baseMap)

Example
var baseMap = [
                {
                    layers: [new GeoGlobe.TDTLayer('vec_c'),new GeoGlobe.TDTLayer('cva_c')],
                    icon: './天地图矢量.png',
                    text: '天地图矢量'
                },
                {
                    layers: [new GeoGlobe.TDTLayer('img_c'),new GeoGlobe.TDTLayer('cia_c')],
                    icon: './天地图影像.png',
                    text: '天地图影像'
                }
            ];
    var widget = new GeoGlobe.Widget.MapSwitch('html-widget',baseMap);
    map.addWidget(widget)
Parameters:
Name Type Description
dom String 绑定dom节点的id
baseMap Array 所要切换底图组

Members

baseMaps :Array

图层数据集合
Type:
  • Array