diff --git a/public/dashboard/index.html b/public/dashboard/index.html index 595d258..41e49e6 100644 --- a/public/dashboard/index.html +++ b/public/dashboard/index.html @@ -31,12 +31,12 @@
-
-
+ | 张** | 第一人民医院内科楼15床 | @@ -151,44 +151,8 @@|||||||||||||||||||||||||||||||||
| 工号103 | -- - | -100分 | -
| - | ||
| 工号267 | -- - | -90分 | -
| - | ||
| 工号032 | -- - | -80分 | -
| - | ||
| 工号011 | -- - | -60分 | -
${xAxisName}
` + params.forEach((param) => { + tooltipContent += `${param.seriesName}: ${param.value}
`; + }); + return tooltipContent; + }, + }, + grid:{ + top:"10%", + bottom:"30%" + }, color: ['#018fff'], lineStyle: { color: '#018fff' @@ -567,6 +567,7 @@ }, axisLabel: { interval: 0, + rotate: 20, textStyle: { color: '#fff', fontSize: '14px' @@ -630,44 +631,25 @@ center: center, //设置地图中心点坐标 }); //初始化marker - marker = new TMap.MultiMarker({ - id: "marker-layer", //图层id - map: map, - styles: { //点标注的相关样式 - "marker": new TMap.MarkerStyle({ - "width": 25, - "height": 35, - "anchor": { - x: 16, - y: 32 - }, - "src": "https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/markerDefault.png" - }) - }, - geometries: [{ //点标注数据数组 - "id": "demo", - "styleId": "marker", - "position": center, - "properties": { - "title": "marker" - } - }] - }); - window.setInterval(function() { - //panToHospital(); - }, 3000); + + panToHospital() } function panToHospital() { - current_hospital++; - if (current_hospital == hospitals.length) { - current_hospital = 0; - } - var center = new TMap.LatLng(hospitals[current_hospital].lat, hospitals[current_hospital].lng); - map.panTo(center); + var geometriesArr = [] + hospitals.map(item=>{ + var center = new TMap.LatLng(item.lat, item.lng); + var mark = { //点标注数据数组 + "id": "demo", + "styleId": "marker", + "position": center, + "properties": { + "title": "marker" + } + } + geometriesArr.push(mark) + }) - marker.setMap(null); - marker = null; marker = new TMap.MultiMarker({ id: "marker-layer", //图层id map: map, @@ -682,14 +664,7 @@ "src": "https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/markerDefault.png" }) }, - geometries: [{ //点标注数据数组 - "id": "demo", - "styleId": "marker", - "position": center, - "properties": { - "title": "marker" - } - }] + geometries: geometriesArr }); } diff --git a/public/dashboard/index copy.html b/public/dashboard/index2.html similarity index 100% rename from public/dashboard/index copy.html rename to public/dashboard/index2.html