private void removeHeatmap() { heatmapLayer.Map = null; heatmapLayer = null; // Disable the button to prevent subsequent calls, since heatmapLayer is now nil. button.Enabled = false; }
void RemoveButton_Clicked(object sender, EventArgs e) { if (heatmapTileLayer != null) { heatmapTileLayer.Map = null; heatmapTileLayer = null; } }
private void SetHeatMap() { heatmapTileLayer = new GMUHeatmapTileLayer(); heatmapTileLayer.Radius = 80; heatmapTileLayer.Opacity = 0.8f; heatmapTileLayer.Gradient = new GMUGradient(gradientColors, gradientStartPoints, 256); AddHeatMap(); heatmapTileLayer.Map = mapView; }
public override void ViewDidLoad() { // Set heatmap options. heatmapLayer = new GMUHeatmapTileLayer(); heatmapLayer.Radius = 80; heatmapLayer.Opacity = 0.8f; heatmapLayer.Gradient = new GMUGradient(colors: gradientColors, startPoints: gradientStartPoints, mapSize: 256); addHeatmap(); // Set the heatmap to the mapview. heatmapLayer.Map = mapView; }