|
@@ -546,6 +546,11 @@ const initDrawMethod = (options) => {
|
|
|
data.icon = data.iconName;
|
|
|
data.image = data.iconName;
|
|
|
data.imageHover = data.iconName;
|
|
|
+ data.visible = true;
|
|
|
+ obj.setLabel({
|
|
|
+ content: '<div>' + data.title + '</div>',
|
|
|
+ direction: 'top'
|
|
|
+ });
|
|
|
} else {
|
|
|
const path = obj.getPath();
|
|
|
// 将AMap.LngLat对象数组转换为经纬度数组
|