|
@@ -117,15 +117,15 @@ const initDeviceMarkers = () => {
|
|
|
const createDeviceMarker = (device: IotDeviceVO, point: any) => {
|
|
|
// 根据设备是否在线选择不同的图标
|
|
|
const iconUrl = device.ifInline === 3
|
|
|
- ? 'https://iot.deepoil.cc/images/ding300.svg'
|
|
|
- : 'https://iot.deepoil.cc/images/dingou.svg';
|
|
|
+ ? 'https://iot.deepoil.cc/images/dinggreen.svg'
|
|
|
+ : 'https://iot.deepoil.cc/images/dingout.svg';
|
|
|
|
|
|
const marker = new (window as any).BMap.Marker(point, {
|
|
|
icon: new (window as any).BMap.Icon(
|
|
|
iconUrl,
|
|
|
- new (window as any).BMap.Size(28, 30),
|
|
|
+ new (window as any).BMap.Size(40, 40),
|
|
|
{
|
|
|
- anchor: new (window as any).BMap.Size(14, 25)
|
|
|
+ anchor: new (window as any).BMap.Size(25, 40)
|
|
|
// imageOffset: new (window as any).BMap.Size(0, -5)
|
|
|
}
|
|
|
)
|
|
@@ -165,7 +165,7 @@ const createClusterLabel = (cluster: Cluster, point: any) => {
|
|
|
// 初始样式
|
|
|
label.setStyle({
|
|
|
color: '#fff',
|
|
|
- backgroundColor: '#2196df',
|
|
|
+ backgroundColor: 'blue',
|
|
|
borderRadius: '50%',
|
|
|
width: '50px',
|
|
|
height: '50px',
|