riku
2025-06-11 30cf71affd5149a1310d84f658b028d267beee8b
src/utils/map/marks.js
@@ -86,7 +86,7 @@
   * @param {boolean} collision 标注避让
   * @returns
   */
  createLabelMarks(img, dataList, collision = true) {
  createLabelMarks(img, dataList, collision = true, showTxt = true) {
    // eslint-disable-next-line no-undef
    const layer = new AMap.LabelsLayer({
      zooms: [3, 20],
@@ -119,7 +119,7 @@
          retina: true
        },
        text: {
          content: data.name,
          content: showTxt ? data.name : '',
          direction: 'top',
          offset: [0, -5],
          style: {