| | |
| | | taxi_layer.on(mars3d.EventType.click, function (event) { |
| | | console.log("监听layer,单击了矢量对象", event); |
| | | var item = event.graphic?.attr; |
| | | //console.log(item); |
| | | }); |
| | | taxi_layer.bindPopup(bindPopupFunction); |
| | | |
| | |
| | | } |
| | | |
| | | function setTaxiLayerMapClock() { |
| | | console.log(mars3d.global_variables.queryDataTStartTaxi,mars3d.global_variables.queryDataTEnd,"时间") |
| | | |
| | | map.clock.shouldAnimate = true; |
| | | map.clock.startTime = Cesium.JulianDate.fromDate(new Date(mars3d.global_variables.queryDataTStartTaxi)); |
| | | map.clock.currentTime = Cesium.JulianDate.fromDate(new Date(mars3d.global_variables.queryDataTStartTaxi)); |
| | | map.clock.stopTime = Cesium.JulianDate.fromDate(new Date(mars3d.global_variables.queryDataTEnd)); |
| | | map.clock.multiplier = 2.0; |
| | | map.clock.clockRange = Cesium.ClockRange.LOOP_STOP; |
| | | |
| | | var last_time_second = 0; |
| | | |
| | | |
| | |
| | | polygon_Points = result2.features[0].geometry.coordinates[0][0] |
| | | for (var i = 0, len = result.data.result.length; i < len; i++) { |
| | | let item = result.data.result[i]; |
| | | console.log(item.lon,item.lat,polygon_Points) |
| | | let isIn = isInPolygon([item.lon,item.lat],polygon_Points) |
| | | if(isIn){ |
| | | console.log("进来了") |
| | | tmpPositionProperty.addSample(Cesium.JulianDate.fromDate(new Date(item["datatime"])), Cesium.Cartesian3.fromDegrees(item["lon"], item["lat"], 0.2)) |
| | | } |
| | | // mpPositionProperty.addSample(Cesium.JulianDate.fromDate(new Date(item["datatime"])), Cesium.Cartesian3.fromDegrees(item["lon"], item["lat"], 0.2)) |