|
@@ -222,11 +222,10 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
let icon = new window.L.Icon({
|
|
let icon = new window.L.Icon({
|
|
- //需要修改
|
|
|
|
- iconUrl: iconList['marker'],
|
|
|
|
- iconSize: [48, 48],
|
|
|
|
- iconAnchor: [24, 40],
|
|
|
|
- popupAnchor: [-3, -40],
|
|
|
|
|
|
+ iconUrl: iconList['yy'],
|
|
|
|
+ iconAnchor: [50, 50],
|
|
|
|
+ iconSize: [37, 64],
|
|
|
|
+ popupAnchor: [-33, -47],
|
|
shadowSize: [41, 41],
|
|
shadowSize: [41, 41],
|
|
})
|
|
})
|
|
if (that.marker) {
|
|
if (that.marker) {
|
|
@@ -296,16 +295,17 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
addMark: function (options) {
|
|
addMark: function (options) {
|
|
|
|
+ debugger
|
|
let that = this;
|
|
let that = this;
|
|
let marker = "markers" + options.id;
|
|
let marker = "markers" + options.id;
|
|
marker = L.marker(
|
|
marker = L.marker(
|
|
- [options.longitude,options.latitude]
|
|
|
|
|
|
+ [options.latitude,options.longitude]
|
|
,{
|
|
,{
|
|
icon: L.icon({
|
|
icon: L.icon({
|
|
iconUrl: getIcon(options.buildType),
|
|
iconUrl: getIcon(options.buildType),
|
|
iconAnchor: [50, 50],
|
|
iconAnchor: [50, 50],
|
|
- iconSize: [48, 48],
|
|
|
|
- popupAnchor: [-3, -40],
|
|
|
|
|
|
+ iconSize: [37, 64],
|
|
|
|
+ popupAnchor: [-33, -47],
|
|
shadowSize: [41, 41],
|
|
shadowSize: [41, 41],
|
|
})
|
|
})
|
|
}
|
|
}
|