|
|
@ -190,18 +190,15 @@ export default {
|
|
|
|
zoomChange() {
|
|
|
|
zoomChange() {
|
|
|
|
let level = this.map.level;
|
|
|
|
let level = this.map.level;
|
|
|
|
this.mapLayer.shequ.eachGraphic((graphic) => {
|
|
|
|
this.mapLayer.shequ.eachGraphic((graphic) => {
|
|
|
|
if (graphic.isPrivate) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (level >= 14) {
|
|
|
|
if (level >= 14) {
|
|
|
|
// graphic.openHighlight(
|
|
|
|
graphic.openHighlight(
|
|
|
|
// {
|
|
|
|
{
|
|
|
|
// label: {
|
|
|
|
label: {
|
|
|
|
// opacity: 0,
|
|
|
|
opacity: 0,
|
|
|
|
// },
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
},
|
|
|
|
// false
|
|
|
|
false
|
|
|
|
// );
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
graphic.closeHighlight();
|
|
|
|
graphic.closeHighlight();
|
|
|
|
}
|
|
|
|
}
|
|
|
|