修改监控字体颜色
parent
802fa91206
commit
35e9ffd026
|
|
@ -63,7 +63,6 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
layers: [
|
layers: [
|
||||||
|
|
||||||
{
|
{
|
||||||
id: 'dianzi-biaozhu',
|
id: 'dianzi-biaozhu',
|
||||||
type: 'raster',
|
type: 'raster',
|
||||||
|
|
@ -93,7 +92,8 @@
|
||||||
layout: {
|
layout: {
|
||||||
visibility: 'none',
|
visibility: 'none',
|
||||||
},
|
},
|
||||||
},{
|
},
|
||||||
|
{
|
||||||
id: 'dianzi',
|
id: 'dianzi',
|
||||||
type: 'raster',
|
type: 'raster',
|
||||||
source: 'dianzi',
|
source: 'dianzi',
|
||||||
|
|
@ -544,7 +544,6 @@
|
||||||
map.setLayoutProperty(layerName, 'visibility', 'none');
|
map.setLayoutProperty(layerName, 'visibility', 'none');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 切换县区
|
// 切换县区
|
||||||
|
|
@ -742,7 +741,9 @@
|
||||||
visibility: 'none',
|
visibility: 'none',
|
||||||
},
|
},
|
||||||
paint: {
|
paint: {
|
||||||
'text-color': '#fff',
|
'text-color': '#041B36',
|
||||||
|
'text-halo-color': '#fff',
|
||||||
|
'text-halo-width': 2,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -754,8 +755,8 @@
|
||||||
|
|
||||||
// 无人机图层
|
// 无人机图层
|
||||||
function handlerUpdateUavLayer(uavLayerGeoJson) {
|
function handlerUpdateUavLayer(uavLayerGeoJson) {
|
||||||
if(map.getSource("uavSource")){
|
if (map.getSource('uavSource')) {
|
||||||
map.getSource("uavSource").setData(uavLayerGeoJson);
|
map.getSource('uavSource').setData(uavLayerGeoJson);
|
||||||
} else {
|
} else {
|
||||||
map.loadImage('/videosupervision/uav.png', function (error, image) {
|
map.loadImage('/videosupervision/uav.png', function (error, image) {
|
||||||
if (error) throw error;
|
if (error) throw error;
|
||||||
|
|
@ -786,7 +787,7 @@
|
||||||
},
|
},
|
||||||
paint: {
|
paint: {
|
||||||
'text-color': '#fff',
|
'text-color': '#fff',
|
||||||
'text-halo-color':"#000",
|
'text-halo-color': '#000',
|
||||||
'text-halo-width': 1,
|
'text-halo-width': 1,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue