Remove HeatmapLayer from google maps

前端 未结 5 1316
余生分开走
余生分开走 2021-01-17 18:09

I\'m using the HeatmapLayer api https://developers.google.com/maps/documentation/javascript/layers#JSHeatMaps

I generate the heatmap like this:

heatm         


        
5条回答
  •  迷失自我
    2021-01-17 18:28

    Take a look at the documentation here google JSHeatMaps.

    Check out this example. You can view the logic for the toggle button.

    heatmap.setMap(null)
    

提交回复
热议问题