| | |
| | | <script src="./static/SmartEarthSDK/Workers/jquery-2.0.3.js"></script> |
| | | <script src="./static/SmartEarthSDK/SmartEarth.min.js"></script> |
| | | <script src="./static/SmartEarthSDK/Workers/layui/layui.all.js"></script> |
| | | <script src="./static/polyline.js"></script> |
| | | </head> |
| | | |
| | | <body oncontextmenu="return false;" ondragstart="return false;" onselectstart="return false;"> |
| | |
| | | import coord from "@/components/poplayer/coord"; |
| | | import store from "@/utils/store"; |
| | | import mapData from "../../../static/mapData"; |
| | | import { |
| | | liushisijiayuanqudizhibianmafuwu, |
| | | findAddressCandidates, |
| | | getDiKuanFanWei, |
| | | ent_selectByName |
| | | } from "../../api/api"; |
| | | import vueEvents from "@/utils/vueEvent.js"; |
| | | let PoiLayerConstructor = Vue.extend(coord); |
| | | const rpc = { |
| | | window.rpc = { |
| | | timeout: 500, |
| | | url: "http://localhost:8999/RPC2", |
| | | method: "get_statue", |
| | | divPoint: null, |
| | | instance: null, |
| | |
| | | position: null, |
| | | marksIndex: null, |
| | | pitchValue: null, |
| | | unsubscribeTicks: null, |
| | | LineRoaming: null, //线路漫游 |
| | | dataQuery: [], //关键字查询结果 |
| | | pointerFly: null, //定点漫游 |
| | | isShow: false, |
| | | objArr: [], |
| | | //关键字查询 |
| | | getFuzzyQuery(res) { |
| | | store.queryLayer.val = res.message; |
| | | this.setClearAllMsg(); |
| | | if (!res.baidu_keys) return; |
| | | var flag = true; |
| | | if (this.dataQuery.length > 0) { |
| | | if (res.message.indexOf("第") > -1 && res.message.indexOf("条") > -1) { |
| | | var data = mapData.msgMach.localPage; |
| | | flag = false; |
| | | var val_Data = null; |
| | | for (var i in data) { |
| | | if (res.message.indexOf(data[i]) > -1) { |
| | | val_Data = this.dataQuery[i]; |
| | | setTimeout(() => { |
| | | this.setLocation(val_Data); |
| | | }, 1000); |
| | | break; |
| | | return; |
| | | } |
| | | } |
| | | } else { |
| | | for (var i in this.dataQuery) { |
| | | var name = this.dataQuery[i].name; |
| | | for (var j = 0; j < length; j++) { |
| | | var world = keyWorld[j].word; |
| | | if (name.indexOf(world) > -1) { |
| | | flag = false; |
| | | this.setLocation(this.dataQuery[i]); |
| | | break; |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if (!flag) { |
| | | return; |
| | | } |
| | | var keyWorld = res.baidu_keys.results; |
| | | if (keyWorld) { |
| | | var length = keyWorld.length; |
| | | |
| | | this.dataQuery = []; |
| | | this.objArr = []; |
| | | for (var i = 0; i < length; i++) { |
| | | var world = keyWorld[i].word; |
| | | console.log("world", world); |
| | | this.setFuzzyQueryData(world, i, length - 1); |
| | | } |
| | | } |
| | | }, |
| | | async setFuzzyQueryData(res, index, length) { |
| | | Promise.all([ |
| | | ent_selectByName(res), //企业 |
| | | liushisijiayuanqudizhibianmafuwu(res), //园区 |
| | | findAddressCandidates(res) //地块 |
| | | ]).then(result => { |
| | | //消息对接 |
| | | initMessage() { |
| | | var that = this; |
| | | store.queryLayer.data = []; |
| | | //企业 |
| | | var EntArr = result[0].result.filter(item => { |
| | | return item.entName.includes(res); |
| | | }); |
| | | EntArr.forEach(val => { |
| | | let itemObj = { |
| | | type: "企业", |
| | | name: val.entName, |
| | | address: val.address, |
| | | lon: val.x, |
| | | lat: val.y |
| | | }; |
| | | that.objArr.push(itemObj); |
| | | }); |
| | | //园区 |
| | | var YQArr = result[1].candidates.filter(item => { |
| | | return item.attributes.YQmingchen.includes(res); |
| | | }); |
| | | YQArr.forEach(val => { |
| | | let itemObj = { |
| | | type: "园区", |
| | | name: val.attributes.YQmingchen, |
| | | address: val.attributes.YQdizhi, |
| | | lon: val.location.x, |
| | | lat: val.location.y |
| | | }; |
| | | that.objArr.push(itemObj); |
| | | }); |
| | | //地块 |
| | | var LandArr = result[2].candidates.filter((item) => { |
| | | return item.attributes.QYMC.includes(res); |
| | | }) |
| | | // 结果根据QYMC从短到长排序 |
| | | LandArr.sort((a, b) => (b.attributes.QYMC.length === a.attributes.QYMC.length ? 0 : a.attributes.QYMC.length > b.attributes.QYMC.length ? 1 : -1)) |
| | | LandArr.forEach((val) => { |
| | | let itemObj = { |
| | | type: "地块", |
| | | name: val.attributes.QYMC, |
| | | area: val.attributes.area, |
| | | code: val.attributes["地块编"], |
| | | lon: val.location.x, |
| | | lat: val.location.y, |
| | | }; |
| | | that.objArr.push(itemObj); |
| | | }); |
| | | if (index == length) { |
| | | if (that.objArr.length <= 0) { |
| | | |
| | | vueEvents.$emit("queryData", true); |
| | | return; |
| | | } |
| | | var num = that.objArr.length; |
| | | for (var i = 0; i < num; i++) { |
| | | if (i < 6) { |
| | | that.dataQuery.push(that.objArr[i]); |
| | | } |
| | | } |
| | | store.queryLayer.data = that.dataQuery; |
| | | that.setClearAllMsg(); |
| | | setTimeout(() => { |
| | | vueEvents.$emit("queryData", true); |
| | | that.setLocation(that.dataQuery[0]); |
| | | }, 1000); |
| | | window.addEventListener("message", res => { |
| | | if (res.data.status === "ok") { |
| | | console.log(res.data.params, "当前事件数据"); |
| | | // that.setLocation(); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | getFuzzyQueryData(res, index, length, flag) { |
| | | if (!res || res.length <= 0) return; |
| | | for (var i in res) { |
| | | if (this.dataQuery.length < 6) { |
| | | this.dataQuery.push(res[i]); |
| | | } |
| | | } |
| | | if (index == length) { |
| | | if (this.dataQuery.length <= 0) { |
| | | vueEvents.$emit("queryData", false); |
| | | return; |
| | | } |
| | | |
| | | store.queryLayer.data = this.dataQuery; |
| | | |
| | | this.setClearAllMsg(); |
| | | |
| | | setTimeout(() => { |
| | | vueEvents.$emit("queryData", true); |
| | | this.setLocation(this.dataQuery[0]); |
| | | }, 1000); |
| | | } |
| | | }, |
| | | // 显示地块范围 |
| | | getLandmass(res) { |
| | | |
| | | let that = this; |
| | | if (res.type == "园区") { |
| | | |
| | | } else if (res.type == "地块") { |
| | | |
| | | getDiKuanFanWei(res.lon, res.lat).then(response => { |
| | | let center = { lon: 0, lat: 0 }; |
| | | let polygon = that.read(response.geometry); |
| | | if (polygon.length > 0) { |
| | | var geometry = []; |
| | | let points = polygon[0].split(","); |
| | | for (let i = 0; i < points.length; i++) { |
| | | let point = points[i].replace(/^\s+|\s+$/g, "").split(" "); |
| | | // center.lon += parseFloat(point[0]) / points.length; |
| | | // center.lat += parseFloat(point[1]) / points.length; |
| | | geometry.push(parseFloat(point[0]), parseFloat(point[1])) |
| | | |
| | | } |
| | | that.setLacationLineClear() |
| | | var position = Cesium.Cartesian3.fromDegreesArray(geometry) |
| | | |
| | | that.lacationLine = Viewer.entities.add({ |
| | | name: "立体墙效果", |
| | | wall: { |
| | | positions: position, |
| | | |
| | | |
| | | material: new Cesium.DynamicWallMaterialProperty({ |
| | | color: Cesium.Color.RED, |
| | | duration: 4000 |
| | | }), |
| | | // 设置高度 |
| | | maximumHeights: Array(position.length).fill(80), |
| | | minimumHeights: Array(position.length).fill(10), |
| | | } |
| | | }) |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | read(wkt) { |
| | | var regExes = { |
| | | typeStr: /^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/, |
| | | emptyTypeStr: /^\s*(\w+)\s*EMPTY\s*$/, |
| | | spaces: /\s+/, |
| | | parenComma: /\)\s*,\s*\(/, |
| | | doubleParenComma: /\)\s*\)\s*,\s*\(\s*\(/, // can't use {2} here |
| | | trimParens: /^\s*\(?(.*?)\)?\s*$/ |
| | | }; |
| | | /** |
| | | * Object with properties corresponding to the geometry types. Property values |
| | | * are functions that do the actual parsing. |
| | | * @private |
| | | */ |
| | | var parse$1 = { |
| | | /** |
| | | * Return point geometry given a point WKT fragment. |
| | | * |
| | | * @param {String} str A WKT fragment representing the point. |
| | | * @return {Point} A point geometry. |
| | | * @private |
| | | */ |
| | | point: function point(str) { |
| | | if (str === undefined) { |
| | | return []; |
| | | } |
| | | |
| | | var coords = str.trim().split(regExes.spaces); |
| | | return [Number.parseFloat(coords[0]), Number.parseFloat(coords[1])]; |
| | | }, |
| | | |
| | | /** |
| | | * Return a multipoint geometry given a multipoint WKT fragment. |
| | | * |
| | | * @param {String} str A WKT fragment representing the multipoint. |
| | | * @return {Point} A multipoint feature. |
| | | * @private |
| | | */ |
| | | multipoint: function multipoint(str) { |
| | | var this$1 = this; |
| | | |
| | | if (str === undefined) { |
| | | return []; |
| | | } |
| | | |
| | | var point; |
| | | var points = str.trim().split(","); |
| | | var components = []; |
| | | for (var i = 0, len = points.length; i < len; ++i) { |
| | | point = points[i].replace(regExes.trimParens, "$1"); |
| | | components.push(parse$1.point(point)); |
| | | } |
| | | return components; |
| | | }, |
| | | |
| | | /** |
| | | * Return a linestring geometry given a linestring WKT fragment. |
| | | * |
| | | * @param {String} str A WKT fragment representing the linestring. |
| | | * @return {LineString} A linestring geometry. |
| | | * @private |
| | | */ |
| | | linestring: function linestring(str) { |
| | | if (str === undefined) { |
| | | return []; |
| | | } |
| | | |
| | | var points = str.trim().split(","); |
| | | var components = []; |
| | | var coords; |
| | | for (var i = 0, len = points.length; i < len; ++i) { |
| | | coords = points[i].trim().split(regExes.spaces); |
| | | components.push([ |
| | | Number.parseFloat(coords[0]), |
| | | Number.parseFloat(coords[1]) |
| | | ]); |
| | | } |
| | | return components; |
| | | }, |
| | | |
| | | /** |
| | | * Return a linearring geometry given a linearring WKT fragment. |
| | | * |
| | | * @param {String} str A WKT fragment representing the linearring. |
| | | * @return {LinearRing} A linearring geometry. |
| | | * @private |
| | | */ |
| | | linearring: function linearring(str) { |
| | | if (str === undefined) { |
| | | return []; |
| | | } |
| | | |
| | | var points = str.trim().split(","); |
| | | var components = []; |
| | | var coords; |
| | | for (var i = 0, len = points.length; i < len; ++i) { |
| | | coords = points[i].trim().split(regExes.spaces); |
| | | components.push([ |
| | | Number.parseFloat(coords[0]), |
| | | Number.parseFloat(coords[1]) |
| | | ]); |
| | | } |
| | | return components; |
| | | }, |
| | | |
| | | /** |
| | | * Return a multilinestring geometry given a multilinestring WKT fragment. |
| | | * |
| | | * @param {String} str A WKT fragment representing the multilinestring. |
| | | * @return {MultiLineString} A multilinestring geometry. |
| | | * @private |
| | | */ |
| | | multilinestring: function multilinestring(str) { |
| | | var this$1 = this; |
| | | |
| | | if (str === undefined) { |
| | | return []; |
| | | } |
| | | |
| | | var line; |
| | | var lines = str.trim().split(regExes.parenComma); |
| | | var components = []; |
| | | for (var i = 0, len = lines.length; i < len; ++i) { |
| | | line = lines[i].replace(regExes.trimParens, "$1"); |
| | | components.push(parse$1.linestring(line)); |
| | | } |
| | | return components; |
| | | }, |
| | | |
| | | /** |
| | | * Return a polygon geometry given a polygon WKT fragment. |
| | | * |
| | | * @param {String} str A WKT fragment representing the polygon. |
| | | * @return {Polygon} A polygon geometry. |
| | | * @private |
| | | */ |
| | | polygon: function polygon(str) { |
| | | var this$1 = this; |
| | | |
| | | if (str === undefined) { |
| | | return []; |
| | | } |
| | | |
| | | var ring, linestring, linearring; |
| | | var rings = str.trim().split(regExes.parenComma); |
| | | var shell; |
| | | var holes = []; |
| | | //for (var i = 0, len = rings.length; i < len; ++i) { |
| | | ring = rings[0].replace(regExes.trimParens, "$1"); |
| | | linestring = ring; |
| | | //} |
| | | return linestring; |
| | | }, |
| | | |
| | | /** |
| | | * Return a multipolygon geometry given a multipolygon WKT fragment. |
| | | * |
| | | * @param {String} str A WKT fragment representing the multipolygon. |
| | | * @return {MultiPolygon} A multipolygon geometry. |
| | | * @private |
| | | */ |
| | | multipolygon: function multipolygon(str) { |
| | | var this$1 = this; |
| | | |
| | | if (str === undefined) { |
| | | return []; |
| | | } |
| | | |
| | | var polygon; |
| | | var polygons = str.trim().split(regExes.doubleParenComma); |
| | | var components = []; |
| | | for (var i = 0, len = polygons.length; i < len; ++i) { |
| | | polygon = polygons[i].replace(regExes.trimParens, "$1"); |
| | | components.push(parse$1.polygon(polygon)); |
| | | } |
| | | return components; |
| | | } |
| | | }; |
| | | |
| | | var geometry, type, str; |
| | | wkt = wkt.replace(/[\n\r]/g, " "); |
| | | var matches = regExes.typeStr.exec(wkt); |
| | | if (wkt.search("EMPTY") !== -1) { |
| | | matches = regExes.emptyTypeStr.exec(wkt); |
| | | matches[2] = undefined; |
| | | } |
| | | if (matches) { |
| | | type = matches[1].toLowerCase(); |
| | | str = matches[2]; |
| | | if (parse$1[type]) { |
| | | geometry = parse$1[type].apply(this, [str]); |
| | | } |
| | | } |
| | | |
| | | if (geometry === undefined) { |
| | | throw new Error("Could not parse WKT " + wkt); |
| | | } |
| | | |
| | | return geometry; |
| | | }, |
| | | |
| | | //地图复位 |
| | | setMapRest() { |
| | | const data = mapData.mapRest; |
| | | sgworld.Navigate.flyToPointsInterest({ |
| | | destination: { |
| | | x: data.lng, |
| | | y: data.lat, |
| | | z: data.alt |
| | | "x": data.lng, |
| | | "y": data.lat, "z": data.alt |
| | | }, |
| | | orientation: { |
| | | heading: data.heading, |
| | | pitch: data.pitch, |
| | | roll: data.roll |
| | | roll: data.roll, |
| | | }, |
| | | duration: 8 //飞行时间8s |
| | | }); |
| | | }, |
| | | |
| | | //动画导航 |
| | | setLineRoaming() { |
| | | var valdata = mapData.animaNavigation; |
| | | this.marksIndex = 1; |
| | | this.pitchValue = -20; |
| | | this.setShowPathLine(valdata); |
| | | var geom = []; |
| | | for (var i in valdata) { |
| | | geom.push(valdata[i].lng, valdata[i].lat, valdata[i].height); |
| | | } |
| | | |
| | | var that = this; |
| | | sgworld.Creator.getFlyData(geom, data => { |
| | | data.showPoint = false; |
| | | data.showLine = false; |
| | | data.mode = 1; |
| | | data.pitch = -10; |
| | | data.height = 75; |
| | | data.speed = 25; |
| | | |
| | | that.LineRoaming = sgworld.Creator.createDynamicObject( |
| | | data, |
| | | null, |
| | | res => { |
| | | if (res.time >= res.Totaltime) { |
| | | that.setCloseLineRomaing(); |
| | | that.setMapRest(); |
| | | } |
| | | } |
| | | ); |
| | | duration: 5, //飞行时间8s |
| | | }); |
| | | }, |
| | | //点击获取坐标 |
| | | clickToCoordinates() { |
| | | const handlerClick = new Cesium.ScreenSpaceEventHandler( |
| | | Viewer.scene.canvas |
| | | ); |
| | | handlerClick.setInputAction(event => { |
| | | let cartesian = Viewer.camera.pickEllipsoid( |
| | | event.position, |
| | | Viewer.scene.globe.ellipsoid |
| | | ); |
| | | const handlerClick = new Cesium.ScreenSpaceEventHandler(Viewer.scene.canvas); |
| | | handlerClick.setInputAction((event) => { |
| | | |
| | | let cartesian = Viewer.camera.pickEllipsoid(event.position, Viewer.scene.globe.ellipsoid); |
| | | if (cartesian == undefined) { |
| | | console.log("没有获取到坐标"); |
| | | console.log('没有获取到坐标') |
| | | } else { |
| | | // 空间坐标转世界坐标(弧度) |
| | | let cartographic = Cesium.Cartographic.fromCartesian(cartesian); |
| | | // 弧度转为角度(经纬度) |
| | | let lon = Cesium.Math.toDegrees(cartographic.longitude); // 经度值 |
| | | let lat = Cesium.Math.toDegrees(cartographic.latitude); // 纬度值 |
| | | console.log("经纬度是:", { x: lon, y: lat }); |
| | | console.log('经纬度是:', { x: lon, y: lat }); |
| | | } |
| | | }, Cesium.ScreenSpaceEventType.LEFT_CLICK); |
| | | }, |
| | | //定位弹窗 |
| | | setLocation(res) { |
| | | setLocation() { |
| | | var data = mapData.pointPop; |
| | | var objdata = { |
| | | name: res.name, |
| | | address: res.address, |
| | | area: res.area, |
| | | code: res.code, |
| | | lat: res.lat, |
| | | lon: res.lon |
| | | POITYPE: data.text, |
| | | SSDW: data.text, |
| | | LXR: data.text, |
| | | DIZHI: res, |
| | | lat: data.lat, |
| | | lon: data.lng |
| | | }; |
| | | |
| | | //添加定位弹窗 |
| | | this.setAddPointLocation(objdata); |
| | | //范围调用 |
| | | this.getLandmass(res); |
| | | // //添加路径线 |
| | | // this.setShowPathLine(marks); |
| | | // //飞行漫游 |
| | | // window.Viewer.scene.camera.flyTo({ |
| | | // destination: Cesium.Cartesian3.fromDegrees( |
| | | // marks[0].lng, |
| | | // marks[0].lat, |
| | | // marks[0].height |
| | | // ), //定位坐标点,建议使用谷歌地球坐标位置无偏差 |
| | | // duration: 7 //定位的时间间隔 |
| | | // }); |
| | | // this.marksIndex = 1; |
| | | // this.pitchValue = -20; |
| | | // setTimeout(() => { |
| | | // this.setflyExtent(marks); |
| | | // }, 7000); |
| | | |
| | | }, |
| | | |
| | | setAddPointLocation(res) { |
| | | // 清除方法 |
| | | this.setClearPathlayer(); |
| | | store.setlocalLayerShowAction(false); |
| | | store.setlocalLayerListAction({}); |
| | | store.setlocalLayerShowAction(true); |
| | |
| | | ); |
| | | this.position = window.Viewer.entities.add({ |
| | | name: "FLYToMap", |
| | | position: Cesium.Cartesian3.fromDegrees(res.lon, res.lat, 200), |
| | | position: Cesium.Cartesian3.fromDegrees(objdata.lon, objdata.lat), |
| | | point: { |
| | | pixelSize: 1, |
| | | color: Cesium.Color.WHITE.withAlpha(0), |
| | |
| | | offset: { |
| | | heading: Cesium.Math.toRadians(0.0), |
| | | pitch: Cesium.Math.toRadians(-45), |
| | | range: 700 |
| | | }, |
| | | duration: 3 |
| | | range: 600 |
| | | } |
| | | }); |
| | | setTimeout(() => { |
| | | window.Viewer.entities.remove(this.position); |
| | | window.Viewer.entities.remove(this.position) |
| | | }, 1000); |
| | | setTimeout(() => { |
| | | this.setPointFly(res); |
| | | }, 4000); |
| | | }, |
| | | setflyExtent(res) { |
| | | if (this.unsubscribeTicks) { |
| | | window.Viewer.clock.onTick.removeEventListener(this.unsubscribeTicks); |
| | | this.unsubscribeTicks = null; |
| | | } |
| | | |
| | | // 相机看点的角度,如果大于0那么则是从地底往上看,所以要为负值 |
| | | var pitch = Cesium.Math.toRadians(this.pitchValue); |
| | | // 时间间隔2秒钟 |
| | |
| | | res[this.marksIndex].height |
| | | ); |
| | | |
| | | console.log(1, pitch); |
| | | console.log(1, pitch) |
| | | window.Viewer.scene.camera.setView({ |
| | | destination: endPosition, |
| | | orientation: { |
| | | heading: heading, |
| | | pitch: Cesium.Math.toRadians(-5) |
| | | } |
| | | pitch: Cesium.Math.toRadians(-5), |
| | | }, |
| | | }); |
| | | if ( |
| | | Cesium.JulianDate.compare( |
| | |
| | | window.Viewer.clock.stopTime |
| | | ) >= 0 |
| | | ) { |
| | | this.unsubscribeTicks = window.Viewer.clock.onTick.removeEventListener( |
| | | Exection |
| | | ); |
| | | window.Viewer.clock.onTick.removeEventListener(Exection); |
| | | this.changeCameraHeading(res); |
| | | } |
| | | }; |
| | | |
| | | |
| | | } |
| | | window.Viewer.clock.onTick.addEventListener(Exection); |
| | | }, |
| | | setPointFly(res) { |
| | | var that = this; |
| | | that.pointerFly = window.sgworld.Analysis.setPointFly({ |
| | | position: Cesium.Cartesian3.fromDegrees(res.lon, res.lat, 200), |
| | | hideImage: true, |
| | | time: 120, |
| | | limitTime: true, |
| | | limitAngel: 120, |
| | | end: () => { |
| | | that.pointerFly = null; |
| | | } |
| | | }); |
| | | setTimeout(() => { |
| | | this.setClearPointFly(); |
| | | }, 8000); |
| | | setPointFly() { |
| | | var alll |
| | | = { lng: 116.802948, lat: 36.550064, height: 100, flytime: 15 } |
| | | |
| | | window.sgworld.Analysis.setPointFly({ |
| | | position: Cesium.Cartesian3.fromDegrees(alll.lng, alll.lat, 50), |
| | | hideImage: false |
| | | }) |
| | | |
| | | }, |
| | | changeCameraHeading(res) { |
| | | var nextIndex = this.marksIndex + 1; |
| | | if (this.marksIndex == res.length - 1) { |
| | | if (this.unsubscribeTicks) { |
| | | window.Viewer.clock.onTick.removeEventListener(this.unsubscribeTicks); |
| | | this.unsubscribeTicks = null; |
| | | } |
| | | return; |
| | | // 漫游完成 |
| | | this.setPointFly(res); |
| | | return |
| | | } |
| | | // 计算两点之间的方向 |
| | | var heading = this.bearing( |
| | |
| | | window.Viewer.scene.camera.setView({ |
| | | orientation: { |
| | | heading: heading, |
| | | pitch: Cesium.Math.toRadians(-5) |
| | | } |
| | | pitch: Cesium.Math.toRadians(-5), |
| | | }, |
| | | }); |
| | | if ( |
| | | Cesium.JulianDate.compare( |
| | |
| | | toDegrees(radians) { |
| | | return (radians * 180) / Math.PI; |
| | | }, |
| | | |
| | | |
| | | setExtentTime(time) { |
| | | var startTime = Cesium.JulianDate.fromDate(new Date()); |
| | | var stopTime = Cesium.JulianDate.addSeconds( |
| | |
| | | far: 50000 |
| | | }); |
| | | }, |
| | | //结束事件 |
| | | setClearAllMsg() { |
| | | |
| | | setClearPathlayer() { |
| | | if (this.divPoint) { |
| | | this.divPoint && this.divPoint.deleteObject(); |
| | | this.divPoint = null; |
| | |
| | | this.instance && this.instance.$destroy(); |
| | | this.instance = null; |
| | | } |
| | | //地块 |
| | | this.setLacationLineClear() |
| | | // 轨迹线 |
| | | this.setClosePathLine(); |
| | | // 漫游 |
| | | this.setCloseLineRomaing(); |
| | | //定点漫游 |
| | | this.setClearPointFly(); |
| | | vueEvents.$emit("queryLayer", false); |
| | | }, |
| | | |
| | | |
| | | setLacationLineClear() { |
| | | if (this.lacationLine) { |
| | | Viewer.entities.remove(this.lacationLine) |
| | | this.lacationLine = null; |
| | | } |
| | | }, |
| | | setClearPointFly() { |
| | | if (this.pointerFly) { |
| | | this.pointerFly && this.pointerFly.end(); |
| | | this.pointerFly = null; |
| | | } |
| | | }, |
| | | setCloseLineRomaing() { |
| | | if (this.LineRoaming) { |
| | | this.LineRoaming && this.LineRoaming.exit(); |
| | | this.LineRoaming = null; |
| | | } |
| | | }, |
| | | setClosePathLine() { |
| | | if (this.pathLayer) { |
| | | this.pathLayer && this.pathLayer.deleteObject(); |
| | | } |
| | | if (this.position) { |
| | | window.Viewer.entities.remove(this.position); |
| | | this.position = null; |
| | | } |
| | | } |
| | | }; |
| | | export default rpc; |
| | |
| | | <template> |
| | | <div class="mapViewer"> |
| | | <leftpanel |
| | | ref="Left" |
| | | v-show="false" |
| | | /> |
| | | <leftpanel ref="Left" v-show="false" /> |
| | | <bottommenu /> |
| | | <left-menu></left-menu> |
| | | <viewer class="mapViewer" /> |
| | | </div> |
| | | </template> |
| | |
| | | import viewer from "@/components/map/viewer"; |
| | | import leftpanel from "@/components/left/index"; |
| | | import bottommenu from "@/components/menu/bottom-menu"; |
| | | import leftMenu from "@/components/menu/leftMenu.vue"; |
| | | import vueEvents from '@/utils/vueEvent.js' |
| | | |
| | | export default { |
| | | name: "index", |
| | | components: { |
| | | viewer, |
| | | leftpanel, |
| | | bottommenu, |
| | | leftMenu |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | offset: "0%", |
| | | tooltipInfo: "请稍后。。。", |
| | | tooltipShow: false, |
| | | queryShow: false, |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | this.scale = (100 / size).toFixed(2); |
| | | this.offset = "-" + ((size - 100) / 2).toFixed(2) + "%"; |
| | | this.size = size + "%"; |
| | | // this.queryShow = rpc.isShow; |
| | | vueEvents.$on('queryLayer', (res) => { |
| | | this.queryShow = res |
| | | }) |
| | | }, |
| | | methods: { |
| | | queryShow(res) { |
| | | this.queryShow = res; |
| | | } |
| | | }, |
| | | watch: { |
| | | }, |
| | | |
| | | watch: {}, |
| | | methods: { |
| | | detectZoom() { |
| | | var ratio = 0, |
| | |
| | | } |
| | | } |
| | | }, |
| | | initCluster(treeNode) { |
| | | this.$set(treeNode, "disabled", true);//给treeNode添加disabled属性 |
| | | |
| | | let that = this; |
| | | let imgUrl; |
| | | new Cesium.GeoJsonDataSource.load( |
| | | treeNode.urls + |
| | | "?version=1.3.0&request=GetFeature&format=json&typename=" + |
| | | treeNode.layer |
| | | ).then((dataSource) => { |
| | | that.$set(treeNode, "disabled", false); |
| | | Viewer.dataSources.add(dataSource); |
| | | clusterItemList.push({ name: treeNode.id, dataSource: dataSource }); |
| | | // window.clusterItem = dataSource; |
| | | // 设置聚合参数 |
| | | // dataSource.clustering.enabled = true; |
| | | // window.dataClustering = dataSource.clustering; |
| | | // dataSource.clustering.pixelRange = 20; |
| | | // dataSource.clustering.minimumClusterSize = 20; |
| | | |
| | | // foreach用于调用数组的每个元素,并将元素传递给回调函数。 |
| | | dataSource.entities.values.forEach((entity) => { |
| | | // if (entity.featureType == "yz井数据") { |
| | | // switch (feature.properties["井类型"]) { |
| | | // default: |
| | | // imgUrl = treeNode.image; |
| | | // break; |
| | | // } |
| | | // } |
| | | // 将点拉伸一定高度,防止被地形压盖 |
| | | // entity.position._value.z += 50.0; |
| | | // 使用大小为64*64的icon,缩小展示poi |
| | | entity.billboard = { |
| | | image: entity.featureType == "yz井数据" ? imgUrl : treeNode.image, |
| | | scale: treeNode.imageScale, |
| | | // width: 50, |
| | | // height: 50, |
| | | distanceDisplayCondition: new Cesium.DistanceDisplayCondition( |
| | | 0, |
| | | 1000.0 |
| | | ), |
| | | disableDepthTestDistance: Number.POSITIVE_INFINITY, |
| | | }; |
| | | // entity.tag = treeNode.id; |
| | | // entity.label = { |
| | | // // text: "POI", |
| | | // font: "bold 15px Microsoft YaHei", |
| | | // // 竖直对齐方式 |
| | | // verticalOrigin: Cesium.VerticalOrigin.CENTER, |
| | | // // 水平对齐方式 |
| | | // horizontalOrigin: Cesium.HorizontalOrigin.LEFT, |
| | | // // 偏移量 |
| | | // pixelOffset: new Cesium.Cartesian2(15, 0), |
| | | // }; |
| | | |
| | | }); |
| | | |
| | | // 添加监听函数 |
| | | // dataSource.clustering.clusterEvent.addEventListener(function ( |
| | | // clusteredEntities, |
| | | // cluster |
| | | // ) { |
| | | // // 关闭自带的显示聚合数量的标签 |
| | | |
| | | // cluster.label.show = true; |
| | | // cluster.label.color = Cesium.Color.WHITE; |
| | | // cluster.label.outlineColor = Cesium.Color.BLACK; |
| | | // cluster.label.outlineWidth = 3.0; |
| | | // cluster.label.style = Cesium.LabelStyle.FILL_AND_OUTLINE; |
| | | // cluster.label.eyeOffset = new Cesium.Cartesian3(0, 0, -100); |
| | | // cluster.label.disableDepthTestDistance = Number.POSITIVE_INFINITY; |
| | | // cluster.billboard.disableDepthTestDistance = Number.POSITIVE_INFINITY; |
| | | // cluster.billboard.show = true; |
| | | // cluster.billboard.id = cluster.label.id; |
| | | // cluster.billboard.horizontalOrigin = Cesium.HorizontalOrigin.LEFT; |
| | | // cluster.billboard.verticalOrigin = Cesium.VerticalOrigin.CENTER; |
| | | // var reg1 = new RegExp(",", "g"); |
| | | // cluster.label.text = cluster.label.text.replace(reg1, ""); |
| | | // // 根据聚合数量的多少设置不同层级的图片以及大小 |
| | | // if (clusteredEntities.length >= 10000) { |
| | | // cluster.billboard.image = require("@/assets/img/right/test01.png"); |
| | | // cluster.billboard.pixelOffset = new Cesium.Cartesian2(-25, -10); |
| | | // cluster.billboard.width = 142; |
| | | // cluster.billboard.height = 142; |
| | | // } else if (clusteredEntities.length >= 1000) { |
| | | // cluster.billboard.image = require("@/assets/img/right/test01.png"); |
| | | // cluster.billboard.pixelOffset = new Cesium.Cartesian2(-35, -10); |
| | | |
| | | // cluster.billboard.width = 135; |
| | | // cluster.billboard.height = 135; |
| | | // } else if (clusteredEntities.length >= 100) { |
| | | // cluster.billboard.image = require("@/assets/img/right/test01.png"); |
| | | // cluster.billboard.pixelOffset = new Cesium.Cartesian2(-26, -10); |
| | | |
| | | // cluster.billboard.width = 102; |
| | | // cluster.billboard.height = 102; |
| | | // } |
| | | |
| | | // else if (clusteredEntities.length >= 10) { |
| | | // cluster.billboard.image = require("@/assets/img/right/test04.png"); |
| | | // cluster.billboard.pixelOffset = new Cesium.Cartesian2(-25, -10); |
| | | // cluster.billboard.width = 82; |
| | | // cluster.billboard.height = 82; |
| | | // } else { |
| | | // cluster.billboard.image = require("@/assets/img/right/test04.png"); |
| | | // cluster.billboard.pixelOffset = new Cesium.Cartesian2(-25, -10); |
| | | // cluster.billboard.width = 62; |
| | | // cluster.billboard.height = 62; |
| | | // } |
| | | // }); |
| | | }); |
| | | }, |
| | | async addTreeData(treeNode) { |
| | | // if (treeNode.disabled) return; |
| | | let _data = sgworld.ProjectTree.getObject(treeNode.id); |
| | |
| | | "" |
| | | ); |
| | | treeNode.id = layer.treeobj.id; |
| | | break; |
| | | |
| | | case "cluster": |
| | | layer = this.initCluster(treeNode); |
| | | break; |
| | | case "yztile": |
| | | layer = new YZWMS(treeNode); |
| | |
| | | <template> |
| | | <div> |
| | | <div id="sdkContainer"></div> |
| | | <!-- <div |
| | | id="msg" |
| | | style="min-width: 200px;min-height: 100px; z-index: 30;position: absolute; top:5%;left: 40%;background: skyblue;" |
| | | > |
| | | <label>{{ messagelayer }}</label> |
| | | |
| | | <!-- <div style="z-index: 30;position: absolute; top:1%;left: 1%;"> |
| | | <el-button @click="setLocation(3)">漫游</el-button> |
| | | </div>--> |
| | | </div> |
| | | </template> |
| | |
| | | import { mapState, mapMutations } from "vuex"; |
| | | import "animate.css"; |
| | | import rpc from "../../assets/js/rpc"; |
| | | import mapData from "../../../static/mapData"; |
| | | import mapMsg from "../../assets/js/mapMsg"; |
| | | import vueEvents from '@/utils/vueEvent.js' |
| | | let PoiLayerConstructor = Vue.extend(poiLayer); |
| | | |
| | | let handler; |
| | |
| | | locationPoint: null, |
| | | locationInstance: null, |
| | | locationData: null, |
| | | messagelayer: null |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapState(["cesiumInit"]), |
| | | }, |
| | | mounted() { |
| | | vueEvents.$on('messagelayer', (res) => { this.messagelayer = JSON.stringify(res) }) |
| | | |
| | | this.$nextTick(function () { |
| | | let that = this; |
| | | let option = { |
| | | fullscreenButton: true, |
| | | licenseServer: "http://183.162.245.49:18080", |
| | | minViewHeight: parseFloat(common.minviewheight), |
| | | // url: SmartEarthRootUrl + "Workers/image/earth.jpg", //不含单张地图图片url则使用在线地图 |
| | | url: SmartEarthRootUrl + "Workers/image/earth.jpg", //不含单张地图图片url则使用在线地图 |
| | | contextOptions: { |
| | | failIfMajorPerformanceCaveat: false, |
| | | webgl: { |
| | |
| | | // duration: 8, //飞行时间8s |
| | | // }); |
| | | // }, 10000); |
| | | var data = mapData.mapRest |
| | | setTimeout(() => { |
| | | sgworld.Navigate.flyToPointsInterest({ |
| | | destination: { 'x': data.lng, 'y': data.lat, 'z': data.alt }, |
| | | destination: { |
| | | "x": -2187108.231948378, |
| | | "y": 4392040.442348233, |
| | | "z": 4063265.829085007 |
| | | }, |
| | | orientation: { |
| | | heading: data.heading, |
| | | pitch: data.pitch, |
| | | roll: data.roll, |
| | | heading: 2.4384163743219607, |
| | | pitch: -0.32733173444759833, |
| | | roll: 6.283095595698651, |
| | | }, |
| | | duration: 10, //飞行时间8s |
| | | }); |
| | | }, 9000); |
| | | }, 1000); |
| | | that.setCesiumInit(true); |
| | | // rpc.initRpc(); |
| | | } |
| | |
| | | //地下模式距离参数 |
| | | Viewer.scene.globe.translucency.frontFaceAlpha = 0.5; |
| | | Viewer.scene.globe.undergroundColor = undefined; |
| | | mapMsg.init(); |
| | | rpc.initMessage(); |
| | | rpc.clickToCoordinates(); |
| | | |
| | | //标会编辑 |
| | |
| | | <template> |
| | | <div class="specialTool"> |
| | | <div |
| | | class="legend" |
| | | v-for="(item, index) in list" |
| | | :key="index" |
| | | > |
| | | <div class="legend" v-for="(item, index) in list" :key="index"> |
| | | <img |
| | | class="img" |
| | | :src="item.icon" |
| | |
| | | .specialTool { |
| | | position: absolute; |
| | | bottom: 45px; |
| | | /* width: 650px; */ |
| | | /* padding: 5px; */ |
| | | width: 680px; |
| | | padding: 5px; |
| | | border: 2px solid #016ce2; |
| | | border-radius: 3px; |
| | | background-color: #0952c860; |
| | | color: #fff; |
| | | font-size: 10px; |
| | | font-size: 15px; |
| | | left: 50%; |
| | | transform: translateX(-50%); |
| | | z-index: 99999; |
| | | pointer-events: all; |
| | | padding: 10px 10px; |
| | | padding-left: 0px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | .legend { |
| | | /* width: 150px; */ |
| | | margin-left: 10px; |
| | | width: 150px; |
| | | display: flex; |
| | | float: left; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | align-items: center; |
| | | /* background: red; */ |
| | | } |
| | | img { |
| | | width: 20px; |
| | | width: 40px; |
| | | } |
| | | </style> |
| | | |
| | |
| | | <template> |
| | | <div v-if="state.show"> |
| | | |
| | | <location :list="list"></location> |
| | | <poplayer :list="list" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import location from "./location.vue"; |
| | | import poplayer from "./location.vue"; |
| | | import store from "@/utils/store"; |
| | | export default { |
| | | name: "Main", |
| | | components: { |
| | | location, |
| | | poplayer, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | class="close" |
| | | @click.stop="closehandle" |
| | | ></div> |
| | | <!-- <div class="title">点位详情</div> --> |
| | | <div class="content"> |
| | | <div class="ssdw">{{ state.list.name }}</div> |
| | | |
| | | <div |
| | | class="lxr" |
| | | v-if=" state.list.address" |
| | | >地址:{{ state.list.address }}</div> |
| | | <div |
| | | class="lxr" |
| | | v-if=" state.list.code" |
| | | >地块编号:{{ state.list.code }}</div> |
| | | <div |
| | | class="lxr" |
| | | v-if=" state.list.area" |
| | | >地块面积:{{ state.list.area }} 平方米</div> |
| | | <div class="ssdw">{{ state.list[KEY["所属单位"]] }}</div> |
| | | <div class="lxr">联系人:{{ state.list[KEY["联系人"]] }}</div> |
| | | <div class="dz">地址:{{ state.list[KEY["地址"]] }}</div> |
| | | <!-- <div class="con-item" v-for="(item, index) in KEY" :key="index"> |
| | | <span class="name">{{ index }}:</span> |
| | | <span class="value">{{ state.list[item] }}</span> |
| | | </div> --> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import store from "@/utils/store"; |
| | | import keys from "@/utils/poiKeys"; |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | state: store.localLayer, |
| | | state: store.Poplayer, |
| | | KEY: {}, |
| | | }; |
| | | }, |
| | |
| | | mounted() { |
| | | if (this.list) { |
| | | this.state.list = this.list; |
| | | |
| | | } |
| | | // this.KEY = keys[this.state.list.POITYPE]; |
| | | |
| | | this.KEY = keys[this.state.list.POITYPE]; |
| | | }, |
| | | watch: { |
| | | "state.list": function (val) { |
| | |
| | | }, |
| | | ]; |
| | | const router = new Router({ |
| | | // mode: "history", |
| | | // base: '/TEST6', |
| | | mode: "history", |
| | | base: '/TEST', |
| | | routes, |
| | | }); |
| | | router.beforeEach((to, from, next) => { |
| | |
| | | 联系人: "LXR", |
| | | 地址: "DIZHI", |
| | | }, |
| | | |
| | | } |
| | | export default keys |
| | |
| | | list: {}, |
| | | show: false |
| | | }, |
| | | queryLayer: { |
| | | data: null, |
| | | isShow: false, |
| | | val: null, |
| | | }, |
| | | setPoplayerListAction(newValue) { |
| | | if (this.debug) { } |
| | | this.Poplayer.list = newValue |
| | |
| | | "id": "18B25A94", |
| | | "sourceType": "wmse", |
| | | "name": "60平方公里核心区界", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wmsserver/YZ_BJ60", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/wmsserver/YZ_BJ60", |
| | | "maximumLevel": 26, |
| | | "alpha": 1, |
| | | "zIndex": 7, |
| | | "Level": "11,20", |
| | | "checked": true, |
| | | "checked": false, |
| | | "rename": false, |
| | | "flyTo": ["116.51352", "39.76102", "30523.31", "360.0", "-89.8"] |
| | | }, |
| | |
| | | "id": "47EC9636", |
| | | "sourceType": "wmse", |
| | | "name": "225平方公里区界", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wmsserver/YZ_BJ", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/wmsserver/YZ_BJ", |
| | | "maximumLevel": 26, |
| | | "alpha": 1, |
| | | "zIndex": 7, |
| | |
| | | "alpha": 1, |
| | | "name": "经开区政务服务中心 ", |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/sanjizhengwufuwutixi_wfs", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/wfsserver/sanjizhengwufuwutixi_wfs", |
| | | "layer": "经开区政务服务中心", |
| | | "text": "", |
| | | "text": "[MCJC]", |
| | | "height": 50, |
| | | "bgColor": "#ff0000", |
| | | "color": "#ffff00", |
| | |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": -72, |
| | | "imageScale": 0.2, |
| | | "imageScale": 0.5, |
| | | "disableDepthTestDistance": "Number.POSITIVE_INFINITY", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | |
| | | { |
| | | "id": "shequfuwuzha", |
| | | "sourceType": "wfs", |
| | | "alpha": 1, |
| | | "name": "社区服务站", |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/shequfuwuzha", |
| | | "layer": "社区服务站", |
| | | "text": "[MCJC]", |
| | | "height": 50, |
| | | "bgColor": "#ff0000", |
| | | "color": "#ffff00", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": false, |
| | | "classificationType": 2, |
| | | "image": "./static/SmartEarthSDK/Workers/image/社区服务站.png", |
| | | "minimumLevel": 10, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 1.5, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": -72, |
| | | "imageScale": 0.5, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "yiqifuwugang1005", |
| | | "sourceType": "wfs", |
| | | "alpha": 1, |
| | | "name": "亦企服务港1005", |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/yiqifuwugang1005", |
| | | "layer": "亦企服务港1005", |
| | | "text": "[MCJC]", |
| | | "height": 50, |
| | | "bgColor": "#ff0000", |
| | | "color": "#ffff00", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": false, |
| | | "classificationType": 2, |
| | | "image": "./static/SmartEarthSDK/Workers/image/亦企服务港.png", |
| | | "minimumLevel": 10, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 1.5, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": -72, |
| | | "imageScale": 0.5, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "yuanqufuwuzhan1005", |
| | | "sourceType": "wfs", |
| | | "alpha": 1, |
| | | "name": "园区服务站", |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/yuangufuwuzhan1005", |
| | | "layer": "园区服务站", |
| | | "text": "[MCJC]", |
| | | "height": 50, |
| | | "bgColor": "#ff0000", |
| | | "color": "#ffff00", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": false, |
| | | "classificationType": 2, |
| | | "image": "./static/SmartEarthSDK/Workers/image/园区服务站.png", |
| | | "minimumLevel": 10, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 1.5, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": -72, |
| | | "imageScale": 0.5, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | |
| | | "alpha": 1, |
| | | "name": "街道政务服务中心", |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/sanjizhengwufuwutixi_wfs", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/wfsserver/sanjizhengwufuwutixi_wfs", |
| | | "layer": "街道政务服务中心", |
| | | "text": "", |
| | | "text": "[MCJC]", |
| | | "height": 50, |
| | | "bgColor": "#000", |
| | | "color": "#ffff00", |
| | |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": -72, |
| | | "imageScale": 0.2, |
| | | "imageScale": 0.5, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | |
| | | "alpha": 1, |
| | | "name": "亦企服务港 ", |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/sanjizhengwufuwutixi_wfs", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/wfsserver/sanjizhengwufuwutixi_wfs", |
| | | "layer": "亦企服务港", |
| | | "text": "", |
| | | "text": "[MCJC]", |
| | | "height": 50, |
| | | "bgColor": "#000", |
| | | "color": "#ffff00", |
| | |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": -72, |
| | | "imageScale": 0.2, |
| | | "imageScale": 0.5, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | |
| | | "alpha": 1, |
| | | "name": "园区服务站 ", |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/sanjizhengwufuwutixi_wfs", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/wfsserver/sanjizhengwufuwutixi_wfs", |
| | | "layer": "园区服务站", |
| | | "text": "", |
| | | "text": "[MCJC]", |
| | | "height": 50, |
| | | "bgColor": "#0952c8", |
| | | "color": "#ffff00", |
| | |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": -72, |
| | | "imageScale": 0.2, |
| | | "imageScale": 0.5, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | |
| | | "alpha": 1, |
| | | "name": "社区服务站 ", |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/sanjizhengwufuwutixi_wfs", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/wfsserver/sanjizhengwufuwutixi_wfs", |
| | | "layer": "社区服务站", |
| | | "text": "", |
| | | "text": "[MCJC]", |
| | | "height": 50, |
| | | "bgColor": "#0952c8", |
| | | "color": "#ffff00", |
| | |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": -72, |
| | | "imageScale": 0.2, |
| | | "imageScale": 0.5, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | |
| | | "id": "chengshiguihua_xiangmumingcheng_tms", |
| | | "name": "亦庄新城规划图", |
| | | "sourceType": "local-map", |
| | | "urls": "http://10.10.4.121:8070/gisserver/tmsserver/chengshiguihua_xiangmumingcheng_tms", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/tmsserver/chengshiguihua_xiangmumingcheng_tms", |
| | | "tile": "{z}/{x}/{y}", |
| | | "tileType": "Mercator", |
| | | "img": "jpeg", |
| | |
| | | "id": "baise2D", |
| | | "name": "白色二维", |
| | | "sourceType": "local-map", |
| | | "urls": "http://10.10.4.121:8070/gisserver/tmsserver/shiliangditu_baisexi", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/tmsserver/shiliangditu_baisexi", |
| | | "tile": "{z}/{x}/{y}", |
| | | "tileType": "Mercator", |
| | | "img": "jpeg", |
| | |
| | | "id": "shenlan2D", |
| | | "name": "深蓝二维", |
| | | "sourceType": "local-map", |
| | | "urls": "http://10.10.4.121:8070/gisserver/tmsserver/shiliangditu_kejilan", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/tmsserver/shiliangditu_kejilan", |
| | | "tile": "{z}/{x}/{y}", |
| | | "tileType": "Mercator", |
| | | "img": "jpeg", |
| | |
| | | "id": "heijin2D", |
| | | "name": "黑金二维", |
| | | "sourceType": "local-map", |
| | | "urls": "http://10.10.4.121:8070/gisserver/tmsserver/shiliangtu_anyehei", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/tmsserver/shiliangtu_anyehei", |
| | | "tile": "{z}/{x}/{y}", |
| | | "tileType": "Mercator", |
| | | "img": "jpeg", |
| | |
| | | "id": "jiaotongluwang_tms", |
| | | "name": "道路", |
| | | "sourceType": "local-map", |
| | | "urls": "http://10.10.4.121:8070/gisserver/tmsserver/jiaotongluwang_tms", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/tmsserver/jiaotongluwang_tms", |
| | | "tile": "{z}/{x}/{y}", |
| | | "tileType": "Mercator", |
| | | "img": "jpeg", |
| | |
| | | "id": "8A969952", |
| | | "sourceType": "b3dm", |
| | | "name": "建筑体块", |
| | | "urls": "http://10.10.4.121:8070/gisserver/c3dserver/YZ_BM/tileset.json", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/c3dserver/YZ_BM/tileset.json", |
| | | "checked": false, |
| | | "rename": false |
| | | }, |
| | |
| | | "name": "核心区建筑物", |
| | | "sourceType": "b3dm", |
| | | "checked": true, |
| | | "urls": "http://10.10.4.121:8070/gisserver/c3dserver/hxq0609/tileset.json", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/c3dserver/hxq0609/tileset.json", |
| | | "rename": false, |
| | | "height": 0, |
| | | "zIndex": 1 |
| | |
| | | "name": "225实景三维核心区地面", |
| | | "sourceType": "b3dm", |
| | | "checked": true, |
| | | "urls": "http://10.10.4.121:8070/gisserver/c3dserver/hexinqudimian/tileset.json", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/c3dserver/hexinqudimian/tileset.json", |
| | | "rename": false, |
| | | "height": 0, |
| | | "zIndex": 1 |
| | |
| | | "checked": true, |
| | | "sourceType": "b3dm", |
| | | "height": 0, |
| | | "urls": "http://10.10.4.121:8070/gisserver/c3dserver/fhx/tileset.json", |
| | | "urls": "https://skyzt.bda.gov.cn/gisserver/c3dserver/fhx/tileset.json", |
| | | "rename": false, |
| | | "zIndex": 1 |
| | | } |
| | |
| | | ], |
| | | "rename": false, |
| | | "expanded": false |
| | | } |
| | | ], |
| | | "rename": false, |
| | | "expanded": false |
| | | }, |
| | | { |
| | | "id": "352E7A55", |
| | | "name": "市级资源", |
| | | "children": [ |
| | | { |
| | | "id": "c6e21f6f55574284aeb4df13302e9c2e", |
| | | "name": "市教委", |
| | | "isParent": true, |
| | | "nocheck": true, |
| | | "open": false, |
| | | "children": [ |
| | | { |
| | | "id": "gjzx", |
| | | "name": "高级中学", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4609-高级中学", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "gdxx", |
| | | "name": "工读学校", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4603-工读学校", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "jnygzxx", |
| | | "name": "九年一贯制学校", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4555-九年一贯制学校", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "mbgdjyptgx", |
| | | "name": "民办高等教育普通高校", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4607-民办高等教育普通高校", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "mbgdjyqtjg", |
| | | "name": "民办高等教育其他机构", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4606-民办高等教育其他机构", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "ptgx", |
| | | "name": "普通高校", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4605-普通高校", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "senygzxx", |
| | | "name": "十二年一贯制学校", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4601-十二年一贯制学校", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "tsjyxx", |
| | | "name": "特殊教育学校", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4608-特殊教育学校", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "wqzx", |
| | | "name": "完全中学", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4602-完全中学", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "xx", |
| | | "name": "小学", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4230-小学", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "yey", |
| | | "name": "幼儿园", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4472-幼儿园", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "zdzyxx", |
| | | "name": "中等职业学校", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4554-中等职业学校", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "cz", |
| | | "name": "初级中学", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4555-初级中学", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "qsdmzxx", |
| | | "name": "少数民族学校", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/jiaoweiyewushuju", |
| | | "layer": "L4002-少数民族学校", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | } |
| | | ], |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "a5c5af0b6f8c4160971a153094431161", |
| | | "name": "市卫生健康委", |
| | | "isParent": true, |
| | | "nocheck": true, |
| | | "open": false, |
| | | "children": [ |
| | | { |
| | | "id": "jjjg", |
| | | "name": "急救机构", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/shiweishengjiankangwei", |
| | | "layer": "L4712-急救机构", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "wsjdzx", |
| | | "name": "卫生监督中心", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/shiweishengjiankangwei", |
| | | "layer": "L4708-卫生监督中心", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "jtcxd", |
| | | "name": "街头釆血点", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/shiweishengjiankangwei", |
| | | "layer": "L4713-街头釆血点", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "qtylwsjg", |
| | | "name": "其他医疗卫生机构", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/shiweishengjiankangwei", |
| | | "layer": "L4704-其他医疗卫生机构", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "sjyy", |
| | | "name": "三级医院", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/shiweishengjiankangwei", |
| | | "layer": "L3995-三级医院", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "ejyy", |
| | | "name": "二级医院", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/shiweishengjiankangwei", |
| | | "layer": "L3595-二级医院", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "sqwsfwzx", |
| | | "name": "社区卫生服务中心", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/shiweishengjiankangwei", |
| | | "layer": "L4018-社区卫生服务中心", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "tjyljg", |
| | | "name": "体检医疗机构", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/shiweishengjiankangwei", |
| | | "layer": "L4147-体检医疗机构", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | } |
| | | ], |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "ac3cbc546cd644c79c19df961c7cfba1", |
| | | "name": "市商务局", |
| | | "isParent": true, |
| | | "nocheck": true, |
| | | "open": false, |
| | | "children": [ |
| | | { |
| | | "id": "szddtzqy", |
| | | "name": "生猪定点屠宰企业", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/shishangwuju", |
| | | "layer": "L4678-生猪定点屠宰企业", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "bldmdps", |
| | | "name": "便利店末端配送", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/shishangwuju", |
| | | "layer": "L4673-便利店末端配送", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "zrxs121jcs", |
| | | "name": "猪肉销售121家超市", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/shishangwuju", |
| | | "layer": "L4679-猪肉销售121家超市", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": true, |
| | | "rename": false |
| | | } |
| | | ], |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "a59f601b171442a1bef0f4df5f3dd664", |
| | | "name": "市公安局", |
| | | "isParent": true, |
| | | "nocheck": true, |
| | | "open": false, |
| | | "children": [ |
| | | { |
| | | "id": "bgld", |
| | | "name": "宾馆旅店", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/gonganjuyewushuju", |
| | | "layer": "L4397-宾馆旅店", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": false, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "crjzjjg", |
| | | "name": "出入境中介机构", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/gonganjuyewushuju", |
| | | "layer": "L3539-出入境中介机构", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": false, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "jtzfjg", |
| | | "name": "交通执法机构", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/gonganjuyewushuju", |
| | | "layer": "L3764-交通执法机构", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": false, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "lctcc", |
| | | "name": "路侧停车位", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/gonganjuyewushuju", |
| | | "layer": "L3831-路侧停车位", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": false, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "jx", |
| | | "name": "驾校", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/gonganjuyewushuju", |
| | | "layer": "L3750-驾校", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": false, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "sqmjjjwgzs", |
| | | "name": "社区民警及警务工作室", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/gonganjuyewushuju", |
| | | "layer": "L4628-社区民警及警务工作室", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": false, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "jtzdd", |
| | | "name": "交通支大队", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/gonganjuyewushuju", |
| | | "layer": "L3763-交通支大队", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": false, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "fjdcdjz", |
| | | "name": "非机动车登记站", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/gonganjuyewushuju", |
| | | "layer": "L4634-非机动车登记站", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": false, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "jdcjcc", |
| | | "name": "机动车检测场", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/gonganjuyewushuju", |
| | | "layer": "L3721-机动车检测场", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": false, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "pcs", |
| | | "name": "派出所", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/gonganjuyewushuju", |
| | | "layer": "L4627-派出所", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": false, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "cgz", |
| | | "name": "车管站", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/gonganjuyewushuju", |
| | | "layer": "L4404-车管站", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": false, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "cgs", |
| | | "name": "车管所", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/gonganjuyewushuju", |
| | | "layer": "L4403-车管所", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": false, |
| | | "rename": false |
| | | }, |
| | | { |
| | | "id": "jtsgcljg", |
| | | "name": "交通事故处理机构", |
| | | "sourceType": "cluster", |
| | | "alpha": 1, |
| | | "class": "point", |
| | | "urls": "http://10.10.4.121:8070/gisserver/wfsserver/gonganjuyewushuju", |
| | | "layer": "L3761-交通事故处理机构", |
| | | "color": "#ffffff", |
| | | "outlineColor": "#ffffff", |
| | | "clampToGround": true, |
| | | "classificationType": 2, |
| | | "image": "http://10.10.4.116:8080/YZXNCS/static/SmartEarthSDK/Workers/image/point-16px.png", |
| | | "minimumLevel": 13, |
| | | "maximumLevel": 22, |
| | | "font": "Arial", |
| | | "scale": 2, |
| | | "outlineWidth": 1, |
| | | "offsetX": 0, |
| | | "offsetY": 0, |
| | | "imageScale": 1, |
| | | "disableDepthTestDistance": "Infinity", |
| | | "checked": false, |
| | | "rename": false |
| | | } |
| | | ], |
| | | "rename": false |
| | | } |
| | | ], |
| | | "rename": false, |
| | |
| | | const mapData = { |
| | | |
| | | apiUrl: 'http://10.10.4.121:8070/', //接口调用地址 |
| | | apiUrl1: 'http://10.10.4.121:8070/PoiExcel', //接口调用地址 |
| | | mapRest: { |
| | | lng: -2189208.281391369, //经度0 |
| | | lat: 4391302.729127172, //纬度 |
| | | alt: 4061318.292309685, //高度 |
| | | heading: 2.6713242790763387, //偏移角度 |
| | | pitch: -0.017921496409462057, //俯仰角度 |
| | | roll: 6.283184545431953 //旋转角度 |
| | | lng: -2187108.231948378, //经度 |
| | | lat: 4392040.442348233, //纬度 |
| | | alt: 4063265.829085007, //高度 |
| | | heading: 2.4384163743219607, //偏移角度 |
| | | pitch: -0.32733173444759833, //俯仰角度 |
| | | roll: 6.283095595698651 //旋转角度 |
| | | }, |
| | | |
| | | //动画导航点 |
| | | animaNavigation: [ |
| | | { |
| | |
| | | height: 50, |
| | | flytime: 15, |
| | | text: "这是一条测试数据" |
| | | }, |
| | | msgMach: { |
| | | rest: ['复位', '还原', '初始化', '初始位置'], |
| | | lineRoam: ['漫游', '导航'], |
| | | closeRoam: ['停止漫游', '停止导航'], |
| | | localPage: ['一', '二', '三', '四', '五', '六'] |
| | | } |
| | | }; |
| | | export default mapData; |