/* 2017-12-4 15:15:45 | 修改 木遥(微信: http://marsgis.cn/weixin.html ) */ $(document).ready(function () { initPage(); bindEvents(); // sidebarScrollFix() }); let aceEditor; let containExamples = true; function initPage() { initEditor(); screenResize(); } function screenResize() { window.onresize = function () { mapHeight(); }; } function findConfig(locationParam, search) { if (search && search.length > 1) { search = search.substr(1); } let exConfig = haoutil.storage.get("exConfig"); if (!exConfig) { return; } exConfig = JSON.parse(exConfig); if (!exConfig || !exConfig.length) { return; } for (let index1 = 0; index1 < exConfig.length; index1++) { let item = exConfig[index1]; if (!item.children) { return; } for (let index2 = 0; index2 < item.children.length; index2++) { let item2 = item.children[index2]; if (!item2.children) { return; } for (let index3 = 0; index3 < item2.children.length; index3++) { let item3 = item2.children[index3]; if (search) { if (item3.fileName == locationParam && item3.params == search) { document.title = item3.name // + " 【" + item2.name + " " + item.name + "】 | Mars3D示例 | 合肥火星科技有限公司"; return; } } else { if (item3.fileName == locationParam) { document.title = item3.name //+ " 【" + item2.name + " " + item.name + "】 | Mars3D示例 | 合肥火星科技有限公司"; return; } } } } } } //初始化编辑器 function initCodeEditor() { if (!aceEditor) { aceEditor = ace.edit("editor"); aceEditor.setTheme("ace/theme/xcode"); aceEditor.getSession().setMode("ace/mode/html"); aceEditor.getSession().setUseWrapMode(true); aceEditor.setShowPrintMargin(false); aceEditor.$blockScrolling = Infinity; } aceEditor.setValue($("#editor").val()); aceEditor.clearSelection(); aceEditor.moveCursorTo(0, 0); } //初始化编辑器以及预览内容 function initEditor() { loadExampleHtml(); initCodeEditor(); let t = { "result": [ { "name": "快速开始", "icon": "fa-globe", "children": [ { "name": "创建三维场景", "details": "", "children": [ { "name": "快速创建地球", "version": "3.0", "thumbnail": "a10_createMap.jpg", "fileName": "a10_createMap" }, { "name": "根据配置文件创建地球", "version": "3.0", "thumbnail": "a10_createMap_url.jpg", "fileName": "a10_createMap_url" }, { "name": "原生Cesium来创建地球", "version": "2.1", "thumbnail": "a10_createMap_viewer.jpg", "fileName": "a10_createMap_viewer" } ] }, { "name": "场景参数化", "details": "地图所有参数均可以存储在json或后端服务中", "children": [ { "name": "scene 场景参数", "version": "3.0", "thumbnail": "a15_scene.jpg", "fileName": "a15_scene" }, { "name": "scene.center 默认视角", "version": "3.0", "thumbnail": "a15_scene_center.jpg", "fileName": "a15_scene_center" }, { "name": "terrain 三维地形", "version": "3.0", "thumbnail": "b10_terrain.jpg", "fileName": "b10_terrain" }, { "name": "basemaps 瓦片底图", "version": "3.0", "thumbnail": "a15_basemaps.jpg", "fileName": "a15_basemaps" }, { "name": "layers 叠加图层", "version": "3.0", "thumbnail": "a15_layers.jpg", "fileName": "a15_layers" }, { "name": "control 控件", "version": "3.0", "thumbnail": "a15_control.jpg", "fileName": "a15_control" } ] }, { "name": "场景基础控制", "children": [ { "name": "map相关事件", "version": "1.9", "thumbnail": "a20_event.jpg", "fileName": "a20_event" }, { "name": "多语言支持", "version": "3.0", "thumbnail": "a20_lang.jpg", "fileName": "a20_lang" } ] } ] }, { "name": "三维地形", "icon": "fa-area-chart", "children": [ { "name": "地形图层", "children": [ { "name": "地形服务", "version": "1.7", "thumbnail": "b10_terrain.jpg", "fileName": "b10_terrain" }, { "name": "天地图地形", "version": "2.0", "thumbnail": "b10_terrain_tdt.jpg", "fileName": "b10_terrain_tdt", "plugins": "tdt" }, { "name": "地形夸张", "version": "1.7", "thumbnail": "b10_terrainExaggeration.jpg", "fileName": "b10_terrainExaggeration" } ] } ] }, { "name": "瓦片图层", "icon": "fa-photo", "children": [ { "name": "在线地图服务", "details": "支持直接加载常用的互联网在线地图服务", "children": [ { "name": "天地图", "version": "1.1", "thumbnail": "c10_tdt.jpg", "fileName": "c10_tdt" }, { "name": "高德", "version": "1.1", "thumbnail": "c10_gaode.jpg", "fileName": "c10_gaode" }, { "name": "腾讯", "version": "2.1", "thumbnail": "c10_tentect.jpg", "fileName": "c10_tentect" }, { "name": "百度", "version": "1.7", "thumbnail": "c10_baidu.jpg", "fileName": "c10_baidu" }, { "name": "OpenStreetMap(OSM)", "version": "1.1", "thumbnail": "c10_osm.jpg", "fileName": "c10_osm" }, { "name": "谷歌【已被封】", "version": "1.1", "thumbnail": "c10_google.jpg", "fileName": "c10_google" }, { "name": "微软Bing", "version": "1.1", "thumbnail": "c10_bing.jpg", "fileName": "c10_bing" }, { "name": "Mapbox", "version": "1.1", "thumbnail": "c10_mapbox.jpg", "fileName": "c10_mapbox" }, { "name": "ArcGIS Online", "version": "1.1", "thumbnail": "c10_arcgis_online.jpg", "fileName": "c10_arcgis_online" }, { "name": "Cesium Ion服务", "version": "3.0", "thumbnail": "c10_ion.jpg", "fileName": "c10_ion" }, { "name": "Mapbox矢量瓦片(.pbf)", "version": "1.6", "thumbnail": "c10_mvt.jpg", "fileName": "c10_mvt" }, { "name": "实时交通态势图", "version": "3.0", "thumbnail": "c10_realtimeTraffic.jpg", "fileName": "c10_realtimeTraffic" } ] }, { "name": "标准瓦片服务", "details": "支持加载在离线或私有环境发布的各种标准服务", "children": [ { "name": "本地单张图片", "version": "1.1", "thumbnail": "c15_image.jpg", "fileName": "c15_image" }, { "name": "xyz金字塔瓦片", "version": "1.1", "thumbnail": "c15_xyz.jpg", "fileName": "c15_xyz" }, { "name": "arcgis格式瓦片", "version": "1.4", "thumbnail": "c15_arcgis_cache.jpg", "fileName": "c15_arcgis_cache" }, { "name": "OGC WMS服务", "version": "1.1", "thumbnail": "c15_wms.jpg", "fileName": "c15_wms" }, { "name": "OGC WMTS服务", "version": "1.1", "thumbnail": "c15_wmts.jpg", "fileName": "c15_wmts" }, { "name": "ArcGIS Server服务", "version": "1.1", "thumbnail": "c15_arcgis.jpg", "fileName": "c15_arcgis" }, { "name": "EPSG4490坐标系", "version": "1.9", "thumbnail": "c16_4490.jpg", "fileName": "c16_4490" } ] }, { "name": "图层参数及控制", "children": [ { "name": "图层管理", "version": "3.0", "thumbnail": "c20_manageLayers.jpg", "fileName": "c20_manageLayers" }, { "name": "瓦片底图的参数调试", "version": "3.1", "thumbnail": "c20_tileLayer_edit.jpg", "fileName": "c20_tileLayer_edit" }, { "name": "色彩及透明度属性", "version": "1.3", "thumbnail": "c20_tileLayer_options.jpg", "fileName": "c20_tileLayer_options" }, { "name": "动态时序图片(雷达图)", "version": "1.7", "thumbnail": "c20_tileLayer_time.gif", "fileName": "c20_tileLayer_time" } ] } ] }, { "name": "控件", "icon": "fa-briefcase", "children": [ { "name": "初始化控件", "details": "Cesium内置的控件,构造地图时按需传参配置", "children": [ { "name": "底图切换控制", "version": "1.1", "thumbnail": "d10_baseLayerPicker.jpg", "fileName": "d10_baseLayerPicker" }, { "name": "偏振立体(VR)", "version": "1.1", "thumbnail": "d10_vr.jpg", "fileName": "d10_vr" }, { "name": "POI兴趣点搜索(Cesium原生)", "version": "1.1", "thumbnail": "d10_geocoder.jpg", "fileName": "d10_geocoder" }, { "name": "控件控制(显示及关闭)", "version": "2.0", "thumbnail": "d10_showhide.jpg", "fileName": "d10_showhide" } ] }, { "name": "内置控件", "details": "Mars3D内置的控件,直接按需调用即可", "children": [ { "name": "SmallTooltip 鼠标小提示窗", "version": "1.3", "thumbnail": "d15_small_tooltip.jpg", "fileName": "d15_small_tooltip" } ] }, { "name": "自定义控件", "children": [ { "name": "导航球", "version": "3.0", "thumbnail": "d20_compass.jpg", "fileName": "d20_compass" }, { "name": "自定义样式导航球", "version": "3.0", "thumbnail": "d20_compass_custom.jpg", "fileName": "d20_compass_custom" }, { "name": "比例尺", "version": "3.0", "thumbnail": "d20_distanceLegend.jpg", "fileName": "d20_distanceLegend" }, { "name": "下侧状态栏", "version": "3.0", "thumbnail": "d20_locationBar.jpg", "fileName": "d20_locationBar" }, { "name": "自定义工具栏按钮", "version": "3.0", "thumbnail": "d20_toolButton.jpg", "fileName": "d20_toolButton" }, { "name": "放大缩小工具栏按钮", "version": "1.9", "thumbnail": "d20_zoomNavigation.jpg", "fileName": "d20_zoomNavigation" }, { "name": "鼠标按下特效", "version": "3.0", "thumbnail": "d20_mouseDownView.jpg", "fileName": "d20_mouseDownView" }, { "name": "卷帘对比", "version": "3.0", "thumbnail": "d20_mapSplit.jpg", "fileName": "d20_mapSplit" }, { "name": "鹰眼地图", "version": "1.8", "thumbnail": "d20_overviewmap.jpg", "fileName": "d20_overviewmap" }, { "name": "移动端位置定位", "version": "1.6", "thumbnail": "d20_geolocation.jpg", "fileName": "d20_geolocation" }, { "name": "POI兴趣点搜索", "version": "3.1", "thumbnail": "d20_poiQuerybar.jpg", "fileName": "d20_poiQuerybar" } ] } ] }, { "name": "矢量图层", "icon": "fa-server", "children": [ { "name": "三维模型图层", "children": [ { "name": "glTF 小模型图层", "version": "3.0", "thumbnail": "e15_modelLayer.jpg", "fileName": "e15_modelLayer" }, { "name": "3D Tiles 三维模型图层", "version": "3.0", "thumbnail": "e15_tilesetLayer.jpg", "fileName": "e15_tilesetLayer" } ] }, { "name": "标准格式文件", "children": [ { "name": "水域GeoJson图层", "version": "3.0", "thumbnail": "e20_geojson_water.gif", "fileName": "e20_geojson_water" }, { "name": "WKT解析加载(转GeoJson方式)", "version": "1.9", "thumbnail": "e22_wkt.jpg", "fileName": "e22_wkt" } ] }, { "name": "WFS矢量服务", "children": [ { "name": "ArcGIS WFS图层", "version": "3.0", "thumbnail": "e25_arcgis_wfs.jpg", "fileName": "e25_arcgis_wfs" }, { "name": "ArcGIS WFS图层贴模型", "version": "3.0", "thumbnail": "e25_arcgis_wfs_surface.jpg", "fileName": "e25_arcgis_wfs_surface" } ] }, { "name": "其他矢量图层", "children": [ { "name": "矢量数据Lod加载", "version": "1.7", "thumbnail": "e30_lodGraphicLayer.jpg", "fileName": "e30_lodGraphicLayer" }, { "name": "高德POI图层", "version": "3.0", "thumbnail": "e30_gaode_poi.jpg", "fileName": "e30_gaode_poi" }, { "name": "三维地名服务", "version": "2.0", "thumbnail": "e30_tdtDmLayer.jpg", "fileName": "e30_tdtDmLayer", "plugins": "tdt" }, { "name": "经纬网图层", "version": "3.0", "thumbnail": "e30_graticuleLayer.jpg", "fileName": "e30_graticuleLayer" } ] } ] }, { "name": "矢量数据", "icon": "fa-puzzle-piece", "children": [ { "name": "Entity基础对象", "details": "适用于需要属性机制控制,并且小于一千条数据的加载场景。Entity 支持各种属性、自定义控制及操作,功能强大但渲染效率要弱些。", "children": [ { "name": "Point 点 ", "version": "1.5", "thumbnail": "f10_entity_point.jpg", "fileName": "f10_entity_point" }, { "name": "Billboard 图标点", "version": "1.5", "thumbnail": "f10_entity_billboard.jpg", "fileName": "f10_entity_billboard" }, { "name": "字体图片点", "version": "3.0", "thumbnail": "f10_entity_fontBillboard.jpg", "fileName": "f10_entity_fontBillboard" }, { "name": "Plane 平面", "version": "1.5", "thumbnail": "f10_entity_plane.jpg", "fileName": "f10_entity_plane" }, { "name": "Box 盒子", "version": "1.5", "thumbnail": "f10_entity_box.jpg", "fileName": "f10_entity_box" }, { "name": "Circle 圆、圆柱", "version": "1.5", "thumbnail": "f10_entity_circle.jpg", "fileName": "f10_entity_circle" }, { "name": "Ellipse 椭圆、椭圆柱", "version": "1.5", "thumbnail": "f10_entity_ellipse.jpg", "fileName": "f10_entity_ellipse" }, { "name": "Cylinder 圆锥", "version": "1.5", "thumbnail": "f10_entity_cylinder.jpg", "fileName": "f10_entity_cylinder" }, { "name": "圆锥追踪体", "version": "3.0", "thumbnail": "f16_coneTrack.jpg", "fileName": "f16_coneTrack" }, { "name": "Ellipsoid 球、半球、椭球", "version": "1.5", "thumbnail": "f10_entity_ellipsoid.jpg", "fileName": "f10_entity_ellipsoid" }, { "name": "半球、雷达范围", "version": "3.0", "thumbnail": "f10_entity_hemisphere.jpg", "fileName": "f10_entity_hemisphere" }, { "name": "Model 小模型", "version": "2.1", "thumbnail": "f10_entity_model.jpg", "fileName": "f10_entity_model" }, { "name": "Path 轨迹", "version": "3.0", "thumbnail": "f15_entity_path.jpg", "fileName": "f15_entity_path" }, { "name": "Polyline 线", "version": "1.5", "thumbnail": "f15_entity_polyline.jpg", "fileName": "f15_entity_polyline" }, { "name": "曲线", "version": "1.5", "thumbnail": "f15_entity_polyline_curve.jpg", "fileName": "f15_entity_polyline_curve" }, { "name": "PolylineVolume 管道线", "version": "1.5", "thumbnail": "f15_entity_polylineVolume.jpg", "fileName": "f15_entity_polylineVolume" }, { "name": "Corridor 走廊", "version": "1.5", "thumbnail": "f15_entity_corridor.jpg", "fileName": "f15_entity_corridor" }, { "name": "Wall 墙", "version": "1.5", "thumbnail": "f15_entity_wall.jpg", "fileName": "f15_entity_wall" }, { "name": "Polygon 面", "version": "1.5", "thumbnail": "f15_entity_polygon.jpg", "fileName": "f15_entity_polygon" }, { "name": "正多边形", "version": "3.0", "thumbnail": "f16_polygon_regular.jpg", "fileName": "f16_polygon_regular" }, { "name": "扇形", "version": "3.0", "thumbnail": "f16_polygon_sector.jpg", "fileName": "f16_polygon_sector" } ] }, { "name": "Primitive基础对象", "details": "适用于几千条数据的加载场景。Primitive 是更底层的实现方式,渲染效率更高,但功能性较差。", "children": [ { "name": "Point 点(支持大数据)", "version": "3.0", "thumbnail": "f20_primitive_point.jpg", "fileName": "f20_primitive_point" }, { "name": "Billboard 图标点(支持大数据)", "version": "3.0", "thumbnail": "f20_primitive_billboard.jpg", "fileName": "f20_primitive_billboard" }, { "name": "Plane 平面", "version": "3.0", "thumbnail": "f20_primitive_plane.jpg", "fileName": "f20_primitive_plane" }, { "name": "Box 盒子", "version": "3.0", "thumbnail": "f20_primitive_box.jpg", "fileName": "f20_primitive_box" }, { "name": "Circle 圆、椭圆、圆柱", "version": "3.0", "thumbnail": "f20_primitive_circle.jpg", "fileName": "f20_primitive_circle" }, { "name": "Cylinder 圆锥、圆柱", "version": "3.0", "thumbnail": "f20_primitive_cylinder.jpg", "fileName": "f20_primitive_cylinder" }, { "name": "Frustum 四棱锥体", "version": "3.0", "thumbnail": "f20_primitive_frustum.jpg", "fileName": "f20_primitive_frustum" }, { "name": "光锥体", "version": "3.0", "thumbnail": "f30_lightCone.gif", "fileName": "f30_lightCone" }, { "name": "Ellipsoid 球、半球、椭球", "version": "3.0", "thumbnail": "f20_primitive_ellipsoid.jpg", "fileName": "f20_primitive_ellipsoid" }, { "name": "Model 小模型", "version": "2.1", "thumbnail": "f20_primitive_model.jpg", "fileName": "f20_primitive_model" }, { "name": "Polyline 线", "version": "3.0", "thumbnail": "f25_primitive_polyline.jpg", "fileName": "f25_primitive_polyline" }, { "name": "PolylineVolume 管道线", "version": "3.0", "thumbnail": "f25_primitive_polylineVolume.jpg", "fileName": "f25_primitive_polylineVolume" }, { "name": "Corridor 走廊", "version": "3.0", "thumbnail": "f25_primitive_corridor.jpg", "fileName": "f25_primitive_corridor" }, { "name": "动态河流", "version": "1.9", "thumbnail": "f35_dynamicRiver.gif", "fileName": "f35_dynamicRiver" }, { "name": "道路", "version": "1.9", "thumbnail": "f35_road.jpg", "fileName": "f35_road" }, { "name": "Wall 墙", "version": "3.0", "thumbnail": "f25_primitive_wall.jpg", "fileName": "f25_primitive_wall" }, { "name": "扩散围墙", "version": "3.0", "thumbnail": "f35_diffuseWall.gif", "fileName": "f35_diffuseWall" }, { "name": "走马灯围墙", "version": "3.0", "thumbnail": "f35_scrollWall.gif", "fileName": "f35_scrollWall" }, { "name": "Polygon 面", "version": "3.0", "thumbnail": "f25_primitive_polygon.jpg", "fileName": "f25_primitive_polygon" }, { "name": "水域面", "version": "3.0", "thumbnail": "f35_water.jpg", "fileName": "f35_water" }, { "name": "井", "version": "3.0", "thumbnail": "f35_pit.jpg", "fileName": "f35_pit" } ] }, { "name": "Primitive大数据对象", "details": "适用于大数据的加载场景。Primitive合并渲染是支持大数据的加载方式。", "children": [ { "name": "ModelCombine 大量模型", "version": "3.0", "thumbnail": "f26_primitive_modelCombine.jpg", "fileName": "f26_primitive_modelCombine" }, { "name": "FlatBillboard 平面图标", "version": "2.1", "thumbnail": "f26_flatBillboard.jpg", "fileName": "f26_flatBillboard" }, { "name": "PolylineCombine 大量线", "version": "3.1", "thumbnail": "f27_primitive_polylineCombine.jpg", "fileName": "f27_primitive_polylineCombine" }, { "name": "PolygonCombine 大量面", "version": "3.0", "thumbnail": "f27_primitive_polygonCombine.jpg", "fileName": "f27_primitive_polygonCombine" }, { "name": "WaterCombine 大量水面", "version": "3.1", "thumbnail": "f27_primitive_waterCombine.jpg", "fileName": "f27_primitive_waterCombine" } ] }, { "name": "其他矢量对象", "children": [ { "name": "粒子效果", "version": "3.0", "thumbnail": "f30_particleSystem.jpg", "fileName": "f30_particleSystem" } ] }, { "name": "点状对象案例", "children": [ { "name": "图标点+文字(entity方式含聚合)", "version": "1.4", "thumbnail": "f40_billboardEntity.jpg", "fileName": "f40_billboardEntity" }, { "name": "图标点+文字(primitive方式)", "version": "1.8", "thumbnail": "f40_billboardPrimitive.jpg", "fileName": "f40_billboardPrimitive" }, { "name": "AQI空气质量指数", "version": "1.5", "thumbnail": "f40_worker_aqi.jpg", "fileName": "f40_worker_aqi" }, { "name": "动态效果点", "version": "1.7", "thumbnail": "f40_divGraphic_daxue.gif", "fileName": "f40_divGraphic_daxue" }, { "name": "统计柱状图", "version": "1.7", "thumbnail": "f40_cylinder_gdp.jpg", "fileName": "f40_cylinder_gdp" }, { "name": "水闸放水效果", "version": "1.9", "thumbnail": "f40_particleSystem_water.gif", "fileName": "f40_particleSystem_water" }, { "name": "卫星正摄动画", "version": "3.0", "thumbnail": "f40_weixin.gif", "fileName": "f40_weixin" }, { "name": "危化品扩散效果", "version": "2.0", "thumbnail": "f40_diffusion.jpg", "fileName": "f40_diffusion" }, { "name": "扫描效果", "version": "3.0", "thumbnail": "f40_scanCircle.gif", "fileName": "f40_scanCircle" } ] }, { "name": "线面状对象案例", "children": [ { "name": "公交线", "version": "3.0", "thumbnail": "f45_busLine.jpg", "fileName": "f45_busLine" }, { "name": "光晕线", "version": "1.2", "thumbnail": "f45_glowline.jpg", "fileName": "f45_glowline" }, { "name": "柱状线", "version": "1.2", "thumbnail": "f45_vline.jpg", "fileName": "f45_vline" }, { "name": "竖直飞线", "version": "3.0", "thumbnail": "f45_vline_flow.gif", "fileName": "f45_vline_flow" }, { "name": "一带一路", "version": "2.2", "thumbnail": "f45_oneBeltOneRoad.jpg", "fileName": "f45_oneBeltOneRoad" }, { "name": "城市拓扑连线", "version": "3.0", "thumbnail": "f45_line_city.jpg", "fileName": "f45_line_city" }, { "name": "迁徙效果", "version": "1.7", "thumbnail": "f45_line_qx.gif", "fileName": "f45_line_qx" }, { "name": "气象流动线", "version": "2.1", "thumbnail": "f45_line_wind.gif", "fileName": "f45_line_wind" }, { "name": "北京公交线(OD线)", "version": "2.2", "thumbnail": "f45_odline.gif", "fileName": "f45_odline" }, { "name": "民航航线(OD线)", "version": "3.0", "thumbnail": "f45_odline_flights.jpg", "fileName": "f45_odline_flights" }, { "name": "高压电线(自动计算线)", "version": "1.5", "thumbnail": "f45_tower.jpg", "fileName": "f45_tower" }, { "name": "动态轨迹路线", "version": "1.6", "thumbnail": "f45_flypath.gif", "fileName": "f45_flypath" }, { "name": "卫星成像过程", "version": "1.6", "thumbnail": "f45_satellite_foot.gif", "fileName": "f45_satellite_foot" }, { "name": "渐变区域", "version": "3.0", "thumbnail": "f45_polyGradient.jpg", "fileName": "f45_polyGradient" }, { "name": "行政区数据统计图", "version": "3.1", "thumbnail": "f45_quyuNum.jpg", "fileName": "f45_quyuNum" }, { "name": "行政区突出展示", "version": "3.0", "thumbnail": "f45_district.jpg", "fileName": "f45_district" }, { "name": "行政区突出展示2", "version": "3.1", "thumbnail": "f45_district2.jpg", "fileName": "f45_district2" }, { "name": "矿区岩层效果", "version": "2.0", "thumbnail": "f45_kuangqu.jpg", "fileName": "f45_kuangqu" }, { "name": "立体户型图", "version": "3.0", "thumbnail": "f45_huxing.jpg", "fileName": "f45_huxing" }, { "name": "台风轨迹(综合案例)", "version": "3.0", "thumbnail": "f45_typhoon.jpg", "fileName": "f45_typhoon" }, { "name": "智慧社区", "version": "3.1", "thumbnail": "f45_community.jpg", "fileName": "f45_community" }, { "name": "数字城市", "version": "3.1", "thumbnail": "f45_digitalCity.jpg", "fileName": "f45_digitalCity" } ] }, { "name": "视频融合应用", "children": [ { "name": "视频材质", "version": "1.6", "thumbnail": "f55_videoMaterial.jpg", "fileName": "f55_videoMaterial" }, { "name": "视频材质(HLS协议)", "version": "1.6", "thumbnail": "f55_videoMaterial_hls.jpg", "fileName": "f55_videoMaterial_hls" }, { "name": "视频2D投射", "version": "1.9", "thumbnail": "f55_video2D.jpg", "fileName": "f55_video2D" }, { "name": "视频2D投射(HLS协议)", "version": "1.9", "thumbnail": "f55_video2D_hls.jpg", "fileName": "f55_video2D_hls" }, { "name": "视频3D贴物投射", "version": "1.8", "thumbnail": "f55_video3D.jpg", "fileName": "f55_video3D" }, { "name": "视频3D贴物投射(HLS协议)", "version": "1.8", "thumbnail": "f55_video3D_hls.jpg", "fileName": "f55_video3D_hls" } ] }, { "name": "卫星场景对象", "children": [ { "name": "相控阵雷达范围", "version": "1.7", "thumbnail": "f30_rectangularSensor.gif", "fileName": "f30_rectangularSensor" }, { "name": "CamberRadar 双曲面雷达范围", "version": "1.8", "thumbnail": "f60_space_camberRadar.jpg", "fileName": "f60_space_camberRadar", "plugins": "space" }, { "name": "ConicSensor 圆椎体(固定竖立朝上)", "version": "1.8", "thumbnail": "f60_space_conicSensor_up.jpg", "fileName": "f60_space_conicSensor_up", "plugins": "space" }, { "name": "ConicSensor 圆椎体(任意方向)", "version": "1.8", "thumbnail": "f60_space_conicSensor.jpg", "fileName": "f60_space_conicSensor", "plugins": "space" }, { "name": "ConicSensor 圆椎体动态展示", "version": "1.8", "thumbnail": "f60_space_conicSensor_dynamic.gif", "fileName": "f60_space_conicSensor_dynamic", "plugins": "space" }, { "name": "ConicSensor 圆椎体追踪目标", "version": "1.8", "thumbnail": "f60_space_conicSensor_lookAt.gif", "fileName": "f60_space_conicSensor_lookAt", "plugins": "space" }, { "name": "RectSensor 四棱椎体", "version": "1.8", "thumbnail": "f60_space_rectSensor.jpg", "fileName": "f60_space_rectSensor", "plugins": "space" }, { "name": "RectSensor 四棱椎体追踪目标", "version": "3.0", "thumbnail": "f60_space_rectSensor_lookAt.jpg", "fileName": "f60_space_rectSensor_lookAt", "plugins": "space" }, { "name": "RectSensor 大量四棱椎体", "version": "3.0", "thumbnail": "f60_space_rectSensor_list.jpg", "fileName": "f60_space_rectSensor_list", "plugins": "space" }, { "name": "SatelliteSensor 卫星视锥体", "version": "1.8", "thumbnail": "f60_space_satelliteSensor.jpg", "fileName": "f60_space_satelliteSensor", "plugins": "space" }, { "name": "SatelliteSensor 卫星视锥体动态展示", "version": "1.8", "thumbnail": "f60_space_satelliteSensor_dynamic.gif", "fileName": "f60_space_satelliteSensor_dynamic", "plugins": "space" }, { "name": "外太空物", "version": "2.0", "thumbnail": "f61_space_point.jpg", "fileName": "f61_space_point" }, { "name": "Satellite TLE实时展示", "version": "1.9", "thumbnail": "f61_satellite.jpg", "fileName": "f61_satellite", "plugins": "space" }, { "name": "Satellite TLE实时展示(多相机)", "version": "1.9", "thumbnail": "f61_satellite_coneList.jpg", "fileName": "f61_satellite_coneList", "plugins": "space" }, { "name": "Satellite 自定义动态位置", "version": "1.9", "thumbnail": "f61_satellite_position.jpg", "fileName": "f61_satellite_position", "plugins": "space" }, { "name": "多卫星TLE实时展示", "version": "2.0", "thumbnail": "f61_satellite_list.gif", "fileName": "f61_satellite_list", "plugins": "space" }, { "name": "卫星星下点计算", "version": "3.0", "thumbnail": "f61_satellite_rayEarthPosition.jpg", "fileName": "f61_satellite_rayEarthPosition", "plugins": "space" }, { "name": "卫星过境动态展示", "version": "2.0", "thumbnail": "f61_satellite_change.gif", "fileName": "f61_satellite_change", "plugins": "space" }, { "name": "卫星过境分析", "version": "1.9", "thumbnail": "f62_satellite_gjfx.jpg", "fileName": "f62_satellite_gjfx", "plugins": "space" }, { "name": "成像范围计算", "version": "1.9", "thumbnail": "f62_satellite_shading.jpg", "fileName": "f62_satellite_shading", "plugins": "space" } ] }, { "name": "飞行漫游路线", "children": [ { "name": "室内漫游", "version": "2.2", "thumbnail": "f65_roamLine_indoor.gif", "fileName": "f65_roamLine_indoor" }, { "name": "行人漫游", "version": "2.0", "thumbnail": "f65_roamLine_walk.gif", "fileName": "f65_roamLine_walk" }, { "name": "贴地表表面漫游", "version": "1.8", "thumbnail": "f65_roamLine_ground.gif", "fileName": "f65_roamLine_ground " }, { "name": "贴模型表面漫游", "version": "2.0", "thumbnail": "f65_roamLine_ground_tileset.gif", "fileName": "f65_roamLine_ground_tileset " }, { "name": "飞行路线", "version": "1.6", "thumbnail": "f65_roamLine_plane.gif", "fileName": "f65_roamLine_plane" }, { "name": "飞行路线(带投射)", "version": "2.0", "thumbnail": "f65_roamLine_plane_ray.gif", "fileName": "f65_roamLine_plane_ray" }, { "name": "多个飞行路线", "version": "2.1", "thumbnail": "f65_roamLine_plane_multi.jpg", "fileName": "f65_roamLine_plane_multi" }, { "name": "实时动态轨迹路线", "version": "2.2", "thumbnail": "f65_dynamicRoamLine.jpg", "fileName": "f65_dynamicRoamLine" } ] }, { "name": "服务数据查询", "children": [ { "name": "ArcGIS Server矢量服务查询", "version": "2.0", "thumbnail": "f70_query_arcgis.jpg", "fileName": "f70_query_arcgis" }, { "name": "ArcGIS Server面的查询统计分析", "version": "3.1", "thumbnail": "f70_query_arcgis_polygon.jpg", "fileName": "f70_query_arcgis_polygon" }, { "name": "GeoServer矢量服务查询(OGC WFS)", "version": "1.9", "thumbnail": "f70_query_geoserver.jpg", "fileName": "f70_query_geoserver" }, { "name": "高德POI点查询", "version": "1.9", "thumbnail": "f70_query_gaodePOI.jpg", "fileName": "f70_query_gaodePOI" }, { "name": "高德路径规划查询", "version": "1.9", "thumbnail": "f70_query_gaodeRoute.jpg", "fileName": "f70_query_gaodeRoute" }, { "name": "高德路径规划查询(多条)", "version": "1.9", "thumbnail": "f70_query_gaodeRouteList.jpg", "fileName": "f70_query_gaodeRouteList" } ] }, { "name": "编辑及控制", "details": "绘制及编辑文字、点、线、面、立体等各类数据", "children": [ { "name": "标绘数据展示(马拉松)", "version": "1.7", "thumbnail": "f80_draw_read.jpg", "fileName": "f80_draw_read" }, { "name": "军事标绘", "version": "1.9", "thumbnail": "f80_military_plot.jpg", "fileName": "f80_military_plot" }, { "name": "框选数据", "version": "1.8", "thumbnail": "f80_isInPoly.jpg", "fileName": "f80_isInPoly" }, { "name": "Property属性机制演示", "version": "3.0", "thumbnail": "f80_property.jpg", "fileName": "f80_property" }, { "name": "线面内插值计算", "version": "2.0", "thumbnail": "f80_interPoly.jpg", "fileName": "f80_interPoly" }, { "name": "图层数据贴地高度", "version": "3.0", "thumbnail": "f80_clampToGround_calcHeight.jpg", "fileName": "f80_clampToGround_calcHeight" } ] } ] }, { "name": "gLTF小模型", "icon": "fa-fighter-jet", "children": [ { "name": "相关矢量对象", "children": [ { "name": "ModelEntity对象", "version": "2.1", "thumbnail": "f10_entity_model.jpg", "fileName": "f10_entity_model" }, { "name": "ModelPrimitive对象", "version": "2.1", "thumbnail": "f20_primitive_model.jpg", "fileName": "f20_primitive_model" }, { "name": "ModelCombine对象(大数据+合并渲染)", "version": "3.0", "thumbnail": "f26_primitive_modelCombine.jpg", "fileName": "f26_primitive_modelCombine" }, { "name": "ModelLayer图层对象", "version": "3.0", "thumbnail": "e15_modelLayer.jpg", "fileName": "e15_modelLayer" } ] }, { "name": "gLTF编辑控制", "children": [ { "name": "gltf模型标绘(含参数编辑)", "version": "1.7", "thumbnail": "g05_draw_gltf.jpg", "fileName": "g05_draw_gltf" }, { "name": "gltf模型库", "version": "2.1", "thumbnail": "g05_gltfList.jpg", "fileName": "g05_gltfList" }, { "name": "gltf零部件控制(运载火箭)", "version": "1.8", "thumbnail": "g05_gltf_rocket.jpg", "fileName": "g05_gltf_rocket" }, { "name": "模型自旋转", "version": "1.8", "thumbnail": "g05_gltf_rotate.gif", "fileName": "g05_gltf_rotate" } ] } ] }, { "name": "3DTiles三维模型", "icon": "fa-building-o", "children": [ { "name": "各类3dtiles模型", "children": [ { "name": "县城城区(倾斜摄影)", "version": "1.5", "thumbnail": "e15_tilesetLayer_shequ.jpg", "fileName": "e15_tilesetLayer", "params": "data=qx-shequ" }, { "name": "文庙(倾斜摄影)", "version": "1.5", "thumbnail": "e15_tilesetLayer_simiao.jpg", "fileName": "e15_tilesetLayer", "params": "data=qx-simiao" }, { "name": "桥梁(BIM建模)", "version": "2.0", "thumbnail": "g10_bim.jpg", "fileName": "g10_bim" }, { "name": "教学楼(BIM建模)", "version": "2.0", "thumbnail": "g10_bim_shinei.jpg", "fileName": "g10_bim_shinei" }, { "name": "地下管网(人工建模)", "version": "2.0", "thumbnail": "g10_piping.jpg", "fileName": "g10_piping" }, { "name": "合肥市区(城市白模)", "version": "1.9", "thumbnail": "k20_jzwStyle.gif", "fileName": "k20_jzwStyle" }, { "name": "全球城市白膜(OSM在线)", "version": "3.0", "thumbnail": "g10_osmBuildingsLayer.jpg", "fileName": "g10_osmBuildingsLayer" }, { "name": "长春倾斜摄影", "version": "3.0", "thumbnail": "g10_changchun.jpg", "fileName": "g10_changchun" } ] }, { "name": "三维模型单体化", "children": [ { "name": "ClassificationType单体化模型(叠加另外1个3dtiles)", "version": "1.9", "thumbnail": "g15_dth_classificationType.jpg", "fileName": "g15_dth_classificationType" }, { "name": "分栋矢量单体化(叠加矢量数据)", "version": "1.6", "thumbnail": "g15_dth_fd.jpg", "fileName": "g15_dth_fd" }, { "name": "分栋矢量单体化编辑", "version": "1.9", "thumbnail": "g15_dth_fd_edit.jpg", "fileName": "g15_dth_fd_edit" }, { "name": "分层矢量单体化", "version": "3.1", "thumbnail": "g15_dth_fc.jpg", "fileName": "g15_dth_fc" }, { "name": "分层分户矢量单体化", "version": "3.1", "thumbnail": "g15_dth_fcfh.jpg", "fileName": "g15_dth_fcfh" }, { "name": "矢量单体化(叠加WFS服务)", "version": "2.0", "thumbnail": "g15_dth_wfs.jpg", "fileName": "g15_dth_wfs" } ] }, { "name": "样式及效果设置", "children": [ { "name": "建筑物样式", "version": "3.0", "thumbnail": "g18_style_jzw.jpg", "fileName": "g18_style_jzw" }, { "name": "单击查看分户", "version": "3.0", "thumbnail": "g18_style_fh.jpg", "fileName": "g18_style_fh" }, { "name": "BIM分层展示", "version": "3.0", "thumbnail": "g18_style_fc.jpg", "fileName": "g18_style_fc" }, { "name": "自定义Shader", "version": "3.1.12", "thumbnail": "g18_customShader.jpg", "fileName": "g18_customShader" } ] }, { "name": "模型编辑控制", "children": [ { "name": "模型位置XYZ平移(不贴球面)", "version": "1.6", "thumbnail": "g20_3dtiles_move.jpg", "fileName": "g20_3dtiles_move" }, { "name": "单模型场景(无地球)", "version": "1.7", "thumbnail": "g20_onlyModel.jpg", "fileName": "g20_onlyModel" } ] } ] }, { "name": "场景控制", "icon": "fa-cubes", "children": [ { "name": "视图切换和对比", "children": [ { "name": "二维三维视图切换", "version": "1.2", "thumbnail": "h10_sceneMode.jpg", "fileName": "h10_sceneMode" }, { "name": "双屏对比", "version": "1.6", "thumbnail": "h10_mapCompare.jpg", "fileName": "h10_mapCompare" }, { "name": "二三维联动(与openlayers)", "version": "3.1", "thumbnail": "h10_link_ol.jpg", "fileName": "h10_link_ol" }, { "name": "街景联动", "version": "3.1", "thumbnail": "h10_streetview.jpg", "fileName": "h10_streetview" } ] }, { "name": "场景背景控制", "children": [ { "name": "场景出图(导出图片)", "version": "1.8", "thumbnail": "h15_expImage.jpg", "fileName": "h15_expImage" }, { "name": "自定义空间背景图", "version": "1.7", "thumbnail": "h15_backgroundImg.jpg", "fileName": "h15_backgroundImg" }, { "name": "自定义天空盒", "version": "1.3", "thumbnail": "h15_skybox.jpg", "fileName": "h15_skybox" }, { "name": "近地天空盒", "version": "1.9", "thumbnail": "h15_skybox_nearground.jpg", "fileName": "h15_skybox_nearground" } ] }, { "name": "视角相机控制", "children": [ { "name": "视角书签", "version": "3.0", "thumbnail": "h20_bookmark.jpg", "fileName": "h20_bookmark" }, { "name": "开场动画", "version": "1.5", "thumbnail": "h20_openFlyAnimation.gif", "fileName": "h20_openFlyAnimation" }, { "name": "绕点环绕飞行", "version": "1.4", "thumbnail": "h20_rotatePoint.gif", "fileName": "h20_rotatePoint" }, { "name": "原地四周旋转", "version": "1.4", "thumbnail": "h20_rotateOut.gif", "fileName": "h20_rotateOut" }, { "name": "第一人称贴地漫游", "version": "2.2", "thumbnail": "h20_firstPersonRoam.jpg", "fileName": "h20_firstPersonRoam" }, { "name": "视点飞行", "version": "3.0", "thumbnail": "h20_viewPoints.jpg", "fileName": "h20_viewPoints" }, { "name": "视角历史记录", "version": "2.0", "thumbnail": "h20_cameraHistory.jpg", "fileName": "h20_cameraHistory" }, { "name": "限定视角范围", "version": "2.0", "thumbnail": "h20_cameraHistory_limit.jpg", "fileName": "h20_cameraHistory_limit" } ] }, { "name": "鼠标交互控制", "children": [ { "name": "鼠标中右键互换(操作习惯)", "version": "2.0", "thumbnail": "h25_mourseType.jpg", "fileName": "h25_mourseType" }, { "name": "街景操作习惯", "version": "2.2", "thumbnail": "h25_streetView.jpg", "fileName": "h25_streetView" }, { "name": "坐标拾取和转换", "version": "1.4", "thumbnail": "h25_selectPoint.jpg", "fileName": "h25_selectPoint" } ] }, { "name": "各种特效", "children": [ { "name": "雾天气", "version": "1.9", "thumbnail": "h30_fog.jpg", "fileName": "h30_fog" }, { "name": "雨天气", "version": "1.6", "thumbnail": "h30_rain.jpg", "fileName": "h30_rain" }, { "name": "雪天气", "version": "1.9", "thumbnail": "h30_snow.gif", "fileName": "h30_snow" }, { "name": "云图", "version": "3.0", "thumbnail": "h30_cloud.jpg", "fileName": "h30_cloud" }, { "name": "水面倒影 Demo", "version": "1.9", "thumbnail": "h30_daoying.jpg", "fileName": "h30_daoying" }, { "name": "泛光特效", "version": "1.6", "thumbnail": "h35_bloom.jpg", "fileName": "h35_bloom" }, { "name": "亮度效果", "version": "1.9", "thumbnail": "h35_brightness.jpg", "fileName": "h35_brightness" }, { "name": "夜视效果", "version": "1.9", "thumbnail": "h35_nightVision.jpg", "fileName": "h35_nightVision" }, { "name": "黑白效果", "version": "1.9", "thumbnail": "h35_blackAndWhite.jpg", "fileName": "h35_blackAndWhite" }, { "name": "马赛克效果", "version": "1.9", "thumbnail": "h35_mosaic.jpg", "fileName": "h35_mosaic" }, { "name": "景深效果", "version": "1.9", "thumbnail": "h35_depthOfField.jpg", "fileName": "h35_depthOfField" } ] } ] }, { "name": "分析", "icon": "fa-futbol-o", "children": [ { "name": "空间分析", "children": [ { "name": "量算 (长度、面积、高度、角度)", "version": "1.6", "thumbnail": "k10_measure.jpg", "fileName": "k10_measure" }, { "name": "剖面分析", "version": "1.6", "thumbnail": "k10_measure_section.jpg", "fileName": "k10_measure_section" }, { "name": "方量分析(体积)", "version": "1.8", "thumbnail": "k10_measure_volume.jpg", "fileName": "k10_measure_volume" }, { "name": "通视分析", "version": "1.9", "thumbnail": "k10_sightline.jpg", "fileName": "k10_sightline" }, { "name": "缓冲分析", "version": "1.6", "thumbnail": "k10_buffer.jpg", "fileName": "k10_buffer" }, { "name": "可视域分析", "version": "1.8", "thumbnail": "k10_viewShed3D.jpg", "fileName": "k10_viewShed3D" }, { "name": "地表透明(地下模式)", "version": "1.8", "thumbnail": "k10_underground.gif", "fileName": "k10_underground" }, { "name": "日照分析", "version": "1.5", "thumbnail": "k10_shadows.gif", "fileName": "k10_shadows" }, { "name": "天际线描边", "version": "1.9", "thumbnail": "k10_skyline.jpg", "fileName": "k10_skyline" } ] }, { "name": "地形相关", "children": [ { "name": "地形开挖", "version": "1.8", "thumbnail": "k15_terrainClip.jpg", "fileName": "k15_terrainClip" }, { "name": "地形开挖(planes)", "version": "1.6", "thumbnail": "k15_terrainPlanClip.jpg", "fileName": "k15_terrainPlanClip" }, { "name": "等高线", "version": "1.6", "thumbnail": "k15_contourLine.jpg", "fileName": "k15_contourLine" }, { "name": "坡度坡向", "version": "2.0", "thumbnail": "k15_slope.jpg", "fileName": "k15_slope" }, { "name": "淹没分析(矢量面)", "version": "1.6", "thumbnail": "k15_floodByGraphic.jpg", "fileName": "k15_floodByGraphic" }, { "name": "淹没分析(globe材质)", "version": "1.8", "thumbnail": "k15_floodByMaterial.jpg", "fileName": "k15_floodByMaterial" } ] }, { "name": "模型相关", "children": [ { "name": "gltf模型剖切", "version": "2.1", "thumbnail": "k20_modelPlanClip.jpg", "fileName": "k20_modelPlanClip" }, { "name": "3dtiles模型剖切(BIM)", "version": "1.8", "thumbnail": "k20_tilesetPlanClip.jpg", "fileName": "k20_tilesetPlanClip" }, { "name": "3dtiles模型剖切(倾斜摄影)", "version": "2.0", "thumbnail": "k20_tilesetPlanClip2.jpg", "fileName": "k20_tilesetPlanClip2" }, { "name": "模型压平", "version": "2.0", "thumbnail": "k20_tilesetFlat.jpg", "fileName": "k20_tilesetFlat" }, { "name": "模型裁剪开挖", "version": "2.0", "thumbnail": "k20_tilesetClip.jpg", "fileName": "k20_tilesetClip" }, { "name": "模型淹没分析", "version": "2.0", "thumbnail": "k20_tilesetFlood.jpg", "fileName": "k20_tilesetFlood" }, { "name": "限高分析", "version": "3.0", "thumbnail": "k20_limitHeight.jpg", "fileName": "k20_limitHeight" } ] }, { "name": "客户端空间分析", "children": [ { "name": "生成随机数据(点线面)", "version": "3.1", "thumbnail": "k25_random.jpg", "fileName": "k25_random" }, { "name": "生成网格", "version": "3.1", "thumbnail": "k25_grid.jpg", "fileName": "k25_grid" }, { "name": "点相关计算", "version": "3.1", "thumbnail": "k25_point.jpg", "fileName": "k25_point" }, { "name": "最近点分析", "version": "3.1", "thumbnail": "k25_nearestPoint.jpg", "fileName": "k25_nearestPoint" }, { "name": "线相关计算", "version": "3.1", "thumbnail": "k25_line.jpg", "fileName": "k25_line" }, { "name": "线求交", "version": "3.1", "thumbnail": "k25_lineIntersect.jpg", "fileName": "k25_lineIntersect" }, { "name": "线上最近点", "version": "3.1", "thumbnail": "k25_nearestPointOnLine.jpg", "fileName": "k25_nearestPointOnLine" }, { "name": "最短路径", "version": "3.1", "thumbnail": "k25_shortestPath.jpg", "fileName": "k25_shortestPath" }, { "name": "面相关计算", "version": "3.1", "thumbnail": "k25_polygon.jpg", "fileName": "k25_polygon" }, { "name": "面求交", "version": "2.3", "thumbnail": "k25_intersect.jpg", "fileName": "k25_intersect" }, { "name": "面切割", "version": "3.1", "thumbnail": "k25_polygonClipByLine.jpg", "fileName": "k25_polygonClipByLine" }, { "name": "等值面", "version": "2.1", "thumbnail": "k25_isobands.jpg", "fileName": "k25_isobands" } ] } ] }, { "name": "可视化", "icon": "fa-street-view", "children": [ { "name": "普通可视化", "children": [ { "name": "贴地热力图", "version": "1.6", "thumbnail": "m10_heatLayer.jpg", "fileName": "m10_heatLayer", "plugins": "heatmap" }, { "name": "高度热力图", "version": "3.0", "thumbnail": "m10_heatLayer_height.jpg", "fileName": "m10_heatLayer_height", "plugins": "heatmap" }, { "name": "立体曲面热力图", "version": "2.0", "thumbnail": "m10_heatLayer_arc.jpg", "fileName": "m10_heatLayer_arc", "plugins": "heatmap" }, { "name": "全国温度图", "version": "1.9", "thumbnail": "m10_kriging.jpg", "fileName": "m10_kriging" }, { "name": "风向图", "version": "1.7", "thumbnail": "m10_windLayer.gif", "fileName": "m10_windLayer", "plugins": "wind" }, { "name": "风向图(canvas方式)", "version": "2.2", "thumbnail": "m10_canvasWindLayer.gif", "fileName": "m10_canvasWindLayer", "plugins": "wind" } ] }, { "name": "MapV支持", "children": [ { "name": "蜂巢图", "version": "1.7", "thumbnail": "m20_mapv_gridHoneycomb.jpg", "fileName": "m20_mapv_gridHoneycomb", "plugins": "mapv" }, { "name": "方格图", "version": "1.7", "thumbnail": "m20_mapv_gridPoint.jpg", "fileName": "m20_mapv_gridPoint", "plugins": "mapv" }, { "name": "微博", "version": "1.7", "thumbnail": "m20_mapv_pointWeibo.gif", "fileName": "m20_mapv_pointWeibo", "plugins": "mapv" }, { "name": "动态点", "version": "1.7", "thumbnail": "m20_mapv_pointTime.gif", "fileName": "m20_mapv_pointTime", "plugins": "mapv" }, { "name": "简单线", "thumbnail": "m20_mapv_polyline.jpg", "fileName": "m20_mapv_polyline", "plugins": "mapv" }, { "name": "强度线", "version": "1.7", "thumbnail": "m20_mapv_polylineIntensity.jpg", "fileName": "m20_mapv_polylineIntensity", "plugins": "mapv" }, { "name": "动态轨迹", "version": "1.7", "thumbnail": "m20_mapv_lineTime.gif", "fileName": "m20_mapv_lineTime", "plugins": "mapv" }, { "name": "强边界图", "version": "1.7", "thumbnail": "m20_mapv_lineForceEdgeBunding.jpg", "fileName": "m20_mapv_lineForceEdgeBunding", "plugins": "mapv" }, { "name": "迁徙图", "version": "1.7", "thumbnail": "m20_mapv_qianxi.gif", "fileName": "m20_mapv_qianxi", "plugins": "mapv" }, { "name": "大迁徙图", "version": "1.7", "thumbnail": "m20_mapv_qianxiTime.gif", "fileName": "m20_mapv_qianxiTime", "plugins": "mapv" } ] }, { "name": "ECharts支持", "children": [ { "name": "饼形图标记", "version": "3.1", "thumbnail": "m30_divGraphic_pie.jpg", "fileName": "m30_divGraphic_pie" }, { "name": "散点图 全省经济指标", "version": "1.6", "thumbnail": "m30_echarts_sandian1.gif", "fileName": "m30_echarts_sandian1", "plugins": "echarts" }, { "name": "散点图 城市空气质量", "version": "1.6", "thumbnail": "m30_echarts_sandian2.jpg", "fileName": "m30_echarts_sandian2", "plugins": "echarts" }, { "name": "散点图 态势", "version": "1.6", "thumbnail": "m30_echarts_sandian3.jpg", "fileName": "m30_echarts_sandian3", "plugins": "echarts" }, { "name": "流出线", "version": "1.6", "thumbnail": "m30_echarts_line_chu.gif", "fileName": "m30_echarts_line_chu", "plugins": "echarts" }, { "name": "流出线2", "version": "2.0", "thumbnail": "m30_echarts_line_chu2.gif", "fileName": "m30_echarts_line_chu2", "plugins": "echarts" }, { "name": "流入线", "version": "1.6", "thumbnail": "m30_echarts_line_ru.gif", "fileName": "m30_echarts_line_ru", "plugins": "echarts" }, { "name": "物流运输图", "version": "1.6", "thumbnail": "m30_echarts_line1.gif", "fileName": "m30_echarts_line1", "plugins": "echarts" }, { "name": "人口迁徙图", "version": "1.6", "thumbnail": "m30_echarts_line2.gif", "fileName": "m30_echarts_line2", "plugins": "echarts" }, { "name": "流向动态效果", "version": "1.6", "thumbnail": "m30_echarts_line3.gif", "fileName": "m30_echarts_line3", "plugins": "echarts" }, { "name": "流向动态效果", "version": "1.6", "thumbnail": "m30_echarts_line4.jpg", "fileName": "m30_echarts_line4", "plugins": "echarts" }, { "name": "道路拥堵图", "version": "1.6", "thumbnail": "m30_echarts_lineroad.jpg", "fileName": "m30_echarts_lineroad", "plugins": "echarts" } ] }, { "name": "Three.js支持", "children": [ { "name": "集成Demo", "version": "3.0", "thumbnail": "m32_three.jpg", "fileName": "m32_three" } ] }, { "name": "ammo物理引擎支持", "children": [ { "name": "车辆运动", "version": "1.4", "thumbnail": "m33_ammo_vehicle.gif", "fileName": "m33_ammo_vehicle" }, { "name": "转动(旗子)", "version": "1.4", "thumbnail": "m33_ammo_turn_cloth.jpg", "fileName": "m33_ammo_turn_cloth" }, { "name": "转动(球)", "version": "1.4", "thumbnail": "m33_ammo_turn_rope.jpg", "fileName": "m33_ammo_turn_rope" }, { "name": "撞击(软体)", "version": "1.4", "thumbnail": "m33_ammo_softbody_volume.jpg", "fileName": "m33_ammo_softbody_volume" }, { "name": "撞击(断裂体)", "version": "1.4", "thumbnail": "m33_ammo_convex_break.jpg", "fileName": "m33_ammo_convex_break" } ] }, { "name": "虚拟仿真", "children": [ { "name": "动画脚本演示", "version": "3.0", "thumbnail": "m35_dhjb.jpg", "fileName": "m35_dhjb" }, { "name": "无人机航拍过程", "version": "2.0", "thumbnail": "m35_wrjhp.gif", "fileName": "m35_wrjhp" }, { "name": "铁路仿真", "version": "2.0", "thumbnail": "m35_railway.gif", "fileName": "m35_railway" }, { "name": "船舶模拟", "version": "1.3", "thumbnail": "e21_czml_chuanbo.gif", "fileName": "e21_czml", "params": "data=chuanbo" }, { "name": "飞机模拟", "version": "1.3", "thumbnail": "e21_czml_feiji.gif", "fileName": "e21_czml", "params": "data=feiji" }, { "name": "火箭发射过程", "version": "2.0", "thumbnail": "e21_czml_huojian.gif", "fileName": "e21_czml", "params": "data=huojian" }, { "name": "实时卫星轨迹", "version": "2.0", "thumbnail": "f61_satellite_list.gif", "fileName": "f61_satellite_list", "plugins": "space" } ] } ] } ] } let index = 1; for (let i = 0; i < t.result.length; i++) { let td = t.result[i].children for (let k = 0; k < td.length; k++) { const element = td[k].children for (let l = 0; l < element.length; l++) { // console.log(element[l].name) console.log(index) index++; } } } } function loadExampleHtml() { let locationParam = getLocationParam(); if (!locationParam) { return; } findConfig(locationParam, window.location.search); locationParam = id2FileName(locationParam); let href = window.location.pathname; let mapUrl = href.substr(0, href.lastIndexOf("/") + 1); mapUrl = mapUrl + locationParam + window.location.search; if (!mapUrl) { return; } let cacheVersion = "20210501"; if (mapUrl.indexOf("?") == -1) { mapUrl += "?time=" + cacheVersion; } else if (mapUrl.indexOf("time=" + cacheVersion) == -1) { mapUrl += "&time=" + cacheVersion; } console.log("加载示例页面:" + mapUrl); var html = $.ajax({ url: mapUrl, async: false, error: function (error) { haoutil.msg("该页面不存在,请检查地址!"); html = ""; }, }).responseText; if (html && html != "") { html = html.replace(new RegExp(/[\s]*]*?\/?>/, "gm"), ""); $("#editor").val(html); loadPreview(html); } } function getLocationParam() { let param = window.location.toString(); if (param.indexOf("#") === -1) { return "11_online_tdt"; } param = param.split("#"); if (param && param.length > 0) { return param[1]; } } //运行代码 function run() { let iframeContent = $("#editor").val(); if (editor) { iframeContent = aceEditor.getValue(); } loadPreview(iframeContent); } //填充预览效果内容 function loadPreview(content) { let iFrame = createIFrame(), iframeDocument = iFrame.contentWindow.document; iframeDocument.open(); iframeDocument.write(content); iframeDocument.close(); let doc = document; iFrame.addEventListener("load", function () { mapHeight(); //setTimeout(function () { // doc.title = iframeDocument.title; //}, 100); }); mapHeight(); } function loadIFrameForSrc(url) { createIFrame(); $("#innerPage").attr("src", url); mapHeight(); } function createIFrame() { let preViewPane = $("#previewPane"); preViewPane.empty(); let iframe = document.createElement("iframe"); $(iframe).attr("id", "innerPage"); $(iframe).attr("name", "innerPage"); preViewPane.append(iframe); return iframe; } //重置编辑器 function refresh() { initEditor(); run(); } // function initSelect() { // let hash = window.location.hash // let id // if (hash.indexOf('#') === -1) { // id = $('section#sidebar .thirdMenu a.link').first().attr('id') // window.location.hash = id ? '#' + id : window.location.hash // } else { // id = hash.split('#')[1] // } // selectMenu(id) // } function mapHeight() { let doc = $("#innerPage").contents(); doc.find("html").height("100%"); doc.find("body").height("100%"); } function bindEvents() { $("#sidebar ul.third-menu a").click(function (evt) { let target = $(evt.target).parent().parent(); let nodeId = evt.target.id; //如果点击的是span节点还要往上一层 if (evt.target.localName === "span") { nodeId = target.attr("id"); } if (nodeId) { //阻止冒泡防止上层事件响应导致修改url hash值 evt.preventDefault(); window.location.hash = "#" + nodeId; initEditor(); evt.stopPropagation(); } }); let codePane = $("#codePane"); let previewPane = $("#previewPane"); let expand = !!1; $("#showCodeBtn").click(function () { if (expand) { //编辑器和预览宽度5:7 $(this).text(" 收缩").css({ left: "500px" }); $(this).addClass(" fa-compress"); $(this).removeClass("fa-arrows-alt"); codePane.show(10, function () { previewPane.removeClass("col-md-12"); previewPane.addClass("col-md-7"); codePane.addClass("col-md-5"); $("#showCodeBtn").css({ left: $("#codePane").width() + 5 + "px" }); if (aceEditor) { aceEditor.resize(); } }); } else { //预览独占一行 $(this).text(" 源码").css({ left: "0px" }); $(this).addClass("fa-arrows-alt"); $(this).removeClass(" fa-compress"); codePane.hide(200, function () { codePane.removeClass("col-md-5"); previewPane.removeClass("col-md-7"); previewPane.addClass("col-md-12"); }); } expand = !expand; }); if (haoutil.system.getRequestByName("code")) { $("#showCodeBtn").click(); } // window.addEventListener('hashchange', function () { // let hash = window.location.hash // if (hash.indexOf('#') !== -1) { // let id = hash.split('#')[1] // selectMenu(id) // } // }) }