naderio / nativescript-google-maps-utils

NativeScript Google Maps SDK utility library to support features such as marker clustering, heatmap, ...
The Unlicense
33 stars 15 forks source link

Remove heatmap layer #16

Closed mouadhkaabachi closed 5 years ago

mouadhkaabachi commented 5 years ago

Hi, Is there a way to remove the entire heatmap layer ( created with GoogleMapsUtils.setupHeatmap(mapView, positionSet) )

mouadhkaabachi commented 5 years ago

I found the solution: var config = GoogleMapsUtils.setupHeatmap(mapView, positionSet) and then to remove config.overlay.remove()