电子看板问题修改
This commit is contained in:
parent
e84d03fba1
commit
55f018dc32
Binary file not shown.
|
Before Width: | Height: | Size: 828 B After Width: | Height: | Size: 6.1 KiB |
|
|
@ -222,16 +222,16 @@ function initTowerLine(points) {
|
||||||
var point = new BMapGL.Point(item.lon, item.lat);
|
var point = new BMapGL.Point(item.lon, item.lat);
|
||||||
linePoints.push(point); // 添加到连线数组
|
linePoints.push(point); // 添加到连线数组
|
||||||
// 创建点标记
|
// 创建点标记
|
||||||
var icon = new BMapGL.Icon("../../../../img/synthesisQuery/tower.png", new BMapGL.Size(32, 32), {
|
var icon = new BMapGL.Icon("../../../../img/synthesisQuery/tower.png", new BMapGL.Size(30, 66), {
|
||||||
// 图标定位点
|
// 图标定位点
|
||||||
anchor: new BMapGL.Size(16, 30),
|
anchor: new BMapGL.Size(15, 66),
|
||||||
});
|
});
|
||||||
var marker = new BMapGL.Marker(point, {icon: icon});
|
var marker = new BMapGL.Marker(point, {icon: icon});
|
||||||
map.addOverlay(marker);
|
map.addOverlay(marker);
|
||||||
// 创建标签
|
// 创建标签
|
||||||
var label = new BMapGL.Label(item.towerName, {
|
var label = new BMapGL.Label(item.towerName, {
|
||||||
position: point,
|
position: point,
|
||||||
offset: new BMapGL.Size(20, -40)
|
offset: new BMapGL.Size(20, -60)
|
||||||
});
|
});
|
||||||
label.setStyle({
|
label.setStyle({
|
||||||
color: "#333",
|
color: "#333",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue