mars3d调用高亮openHighlight,实现点击按钮高亮小车

 let graphictruck = new mars3d.graphic.ModelEntity({
        position: [116.327881, 31.018378, 5000],
        style: {
          url: '//data.mars3d.cn/gltf/mars/qiche.gltf',
          heading: 90,
          scale: 0.9,
          minimumPixelSize: 300,
        },
        clampToGround: true
      })

      graphicLayer.addGraphic(graphictruck);


      $("#btnSelPoint").click(function () {
        graphictruck.openHighlight({
          silhouette: true,
          silhouetteColor: "#00ffff",
          silhouetteSize: 8,
        })
      });

      $("#btnUnSelPoint").click(function () {
        graphictruck.closeHighlight()
      });

你可能感兴趣的:(app,vue,Mars3d,前端,javascript,开发语言)