|
@@ -54,12 +54,12 @@ export default {
|
|
晋城市: 晋城市,
|
|
晋城市: 晋城市,
|
|
},
|
|
},
|
|
points:[
|
|
points:[
|
|
- { name: "太原市", coordinate: [111.6993, 38.0570], appOrg: "1A003", x: "0", y: "2" },
|
|
|
|
- { name: "大同市", coordinate: [113.3002, 40.0768], appOrg: "1B001", x: "0", y: "2" },
|
|
|
|
- { name: "阳泉市", coordinate: [113.6805, 37.7863], appOrg: "1C001", x: "0", y: "2" },
|
|
|
|
|
|
+ { name: "太原市", coordinate: [111.9393, 38.0070], appOrg: "1A003", x: "0", y: "2" },
|
|
|
|
+ { name: "大同市", coordinate: [113.3002, 40.0968], appOrg: "1B001", x: "0", y: "2" },
|
|
|
|
+ { name: "阳泉市", coordinate: [113.6805, 37.8863], appOrg: "1C001", x: "0", y: "2" },
|
|
{ name: "长治市", coordinate: [113.1163, 36.1954], appOrg: "1D001", x: "0", y: "2" },
|
|
{ name: "长治市", coordinate: [113.1163, 36.1954], appOrg: "1D001", x: "0", y: "2" },
|
|
- { name: "晋城市", coordinate: [113.1513, 35.5907], appOrg: "1E001", x: "0", y: "2" },
|
|
|
|
- { name: "朔州市", coordinate: [112.4329, 39.5312], appOrg: "1F001", x: "0", y: "2" },
|
|
|
|
|
|
+ { name: "晋城市", coordinate: [113.2513, 35.6007], appOrg: "1E001", x: "0", y: "2" },
|
|
|
|
+ { name: "朔州市", coordinate: [112.4329, 39.6312], appOrg: "1F001", x: "0", y: "2" },
|
|
{ name: "晋中市", coordinate: [113.2527, 37.3870], appOrg: "1K001", x: "0", y: "2" },
|
|
{ name: "晋中市", coordinate: [113.2527, 37.3870], appOrg: "1K001", x: "0", y: "2" },
|
|
{ name: "临汾市", coordinate: [111.5186, 35.8582], appOrg: "1L001", x: "0", y: "2" },
|
|
{ name: "临汾市", coordinate: [111.5186, 35.8582], appOrg: "1L001", x: "0", y: "2" },
|
|
{ name: "忻州市", coordinate: [112.7341, 38.6167], appOrg: "1H001", x: "0", y: "2" },
|
|
{ name: "忻州市", coordinate: [112.7341, 38.6167], appOrg: "1H001", x: "0", y: "2" },
|
|
@@ -167,19 +167,19 @@ export default {
|
|
{
|
|
{
|
|
type: "scatter", // 散点图(用于标注特殊位置)
|
|
type: "scatter", // 散点图(用于标注特殊位置)
|
|
coordinateSystem: "geo", // 使用 `geo` 作为坐标系
|
|
coordinateSystem: "geo", // 使用 `geo` 作为坐标系
|
|
- symbol: "image://" + require("@/assets/zhang/myMap/carPosition.png"), // 自定义标记(图片)
|
|
|
|
- symbolSize: [30, 55], // 标记大小(宽 30,高 20)
|
|
|
|
|
|
+ symbol: "image://" + require("@/assets/zhang/myMap/circle.png"), // 自定义标记(图片)
|
|
|
|
+ symbolSize: [65, 65], // 标记大小(宽 30,高 20)
|
|
label: {
|
|
label: {
|
|
show: true, // 显示数字
|
|
show: true, // 显示数字
|
|
- position: "right", // 数字显示在图标的正上方
|
|
|
|
|
|
+ position: "inside", // 数字显示在图标的正上方
|
|
color: "#fff", // 文字颜色(白色)
|
|
color: "#fff", // 文字颜色(白色)
|
|
- fontSize: 14, // 字体大小
|
|
|
|
- fontWeight: "bold", // 加粗
|
|
|
|
- backgroundColor: "rgba(75,117,117,0.59)", // 文字背景色(可选)
|
|
|
|
- borderColor: "rgba(56,236,250)", // 边框颜色
|
|
|
|
- borderWidth: 1,
|
|
|
|
- padding: [6, 7], // 文字内边距(可选)
|
|
|
|
- borderRadius: 2, // 文字框圆角(可选)
|
|
|
|
|
|
+ fontSize: 18, // 字体大小
|
|
|
|
+ fontWeight: "500", // 加粗
|
|
|
|
+ // backgroundColor: "rgba(75,117,117,0.59)", // 文字背景色(可选)
|
|
|
|
+ // borderColor: "rgba(56,236,250)", // 边框颜色
|
|
|
|
+ // borderWidth: 1,
|
|
|
|
+ // padding: [6, 7], // 文字内边距(可选)
|
|
|
|
+ // borderRadius: 2, // 文字框圆角(可选)
|
|
},
|
|
},
|
|
data: this.points.map(({ name, coordinate, appOrg, x, y }) => ({
|
|
data: this.points.map(({ name, coordinate, appOrg, x, y }) => ({
|
|
name, // 点名称
|
|
name, // 点名称
|
|
@@ -195,7 +195,7 @@ export default {
|
|
type: "scatter", // 散点图(用于标注特殊位置)
|
|
type: "scatter", // 散点图(用于标注特殊位置)
|
|
coordinateSystem: "geo", // 使用 `geo` 作为坐标系
|
|
coordinateSystem: "geo", // 使用 `geo` 作为坐标系
|
|
name: "center",
|
|
name: "center",
|
|
- symbol: "image://" + require("@/assets/images/build_icon.png"),
|
|
|
|
|
|
+ symbol: "image://" + require("@/assets/zhang/myMap/building.png"),
|
|
symbolSize: 40, // 标记的大小
|
|
symbolSize: 40, // 标记的大小
|
|
data: [{
|
|
data: [{
|
|
name: "山西省公司(本部)",
|
|
name: "山西省公司(本部)",
|