You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -13,62 +13,127 @@ This section describes the events that will be triggered for appropriate actions
13
13
14
14
## CellClicked
15
15
16
-
When you click on a HeatMap cell, the [CellClicked](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.HeatMap.HeatMapEvents.html#Syncfusion_Blazor_HeatMap_HeatMapEvents_CellClicked) event is triggered. More information about the arguments in this event can be found [here](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.HeatMap.CellClickEventArgs.html).
16
+
When you click on a HeatMap cell, the [CellClicked](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.HeatMap.HeatMapEvents.html#Syncfusion_Blazor_HeatMap_HeatMapEvents_CellClicked) event is triggered. More information about the arguments in this event can be found [here](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.HeatMap.CellClickEventArgs.html). When you right-click on a HeatMap cell, the `CellClicked` event will be triggered, and the `HasRightClicked` property in the event argument will be set to **true**.
17
17
18
-
The following example demonstrates how to use the `CellClicked` event to retrieve the value of the clicked cell as well as its x-axis and y-axis labels.
18
+
The following example demonstrates how to use the `CellClicked` event. In this example, content will be displayed when you click on a HeatMap cell. Additionally, a dialog box showing the cell value, x-axis label, and y-axis label of the current cell will appear only when you right-click on the HeatMap cell.
19
19
20
20
```cshtml
21
21
@using Syncfusion.Blazor.HeatMap
22
+
@using Syncfusion.Blazor.Popups
22
23
23
-
@if(IsVisible) {
24
-
<div>
25
-
<span> X-Label : <b> @XLabel </b> </span> <br />
26
-
<span> Y-Label : <b> @YLabel </b> </span> <br />
27
-
<span> CellValue : <b> @CellValue </b> </span>
28
-
</div>
24
+
@if (IsCellClicked)
25
+
{
26
+
<div>@CellClicked</div>
29
27
}
30
28
31
29
<SfHeatMap DataSource="@dataSource">
32
-
<HeatMapEvents CellClicked="@CellClicked" />
33
-
<HeatMapTitleSettings Text="Sales Revenue per Employee (in 1000 US$)" />
public string[] yAxisLabels = new string[] { "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat" };
131
+
ShowButton = false;
132
+
}
68
133
}
69
134
```
70
-

71
135
136
+

72
137
73
138
## CellRendering
74
139
@@ -401,4 +466,120 @@ The following example demonstrates how to use the `TooltipRendering` event to cu
401
466
public string[] yAxisLabels = new string[] { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
402
467
}
403
468
```
404
-

469
+

470
+
471
+
## CellDoubleClicked
472
+
473
+
When you double-click on a HeatMap cell, the [CellDoubleClicked](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.HeatMap.HeatMapEvents.html#Syncfusion_Blazor_HeatMap_HeatMapEvents_CellDoubleClicked) event is triggered. To learn more about the arguments for this event, refer to the documentation [here](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.HeatMap.CellDoubleClickEventArgs.html).
474
+
475
+
The following example demonstrates how to use the `CellDoubleClicked` event to retrieve the value of a cell, as well as its x-axis and y-axis labels, by performing a double-click action.
public string[] yAxisLabels = new string[] { "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat" };
525
+
}
526
+
```
527
+

528
+
529
+
## LegendRendering
530
+
531
+
The [LegendRendering](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.HeatMap.HeatMapEvents.html#Syncfusion_Blazor_HeatMap_HeatMapEvents_LegendRendering) event is triggered before each legend item is rendered. To learn more about the arguments for this event, refer to the documentation [here](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.HeatMap.LegendRenderEventArgs.html).
532
+
533
+
The following example demonstrates how to use the `LegendRendering` event to customize the value of the text in the legend.
534
+
535
+
```cshtml
536
+
@using Syncfusion.Blazor.HeatMap
537
+
538
+
<SfHeatMap DataSource="@HeatMapData">
539
+
<HeatMapEvents LegendRendering="@LegendRender" />
540
+
<HeatMapTitleSettings Text="Sales Revenue per Employee (in 1000 US$)">
Copy file name to clipboardExpand all lines: blazor/maps/maps-event.md
+50-1Lines changed: 50 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -379,6 +379,55 @@ The [MarkerClusterMouseMove](https://help.syncfusion.com/cr/blazor/Syncfusion.Bl
379
379
}
380
380
```
381
381
382
+
## MouseMove
383
+
384
+
The [MouseMove](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsEvents.html#Syncfusion_Blazor_Maps_MapsEvents_MouseMove) event is triggered when the mouse pointer moves over the map. To learn more about the arguments for this event, refer to the documentation [here](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MouseMoveEventArgs.html).
private List<City> LargestCities = new List<City> {
416
+
new City { Latitude=40.6971494, Longitude= -74.2598747, Name="New York", Area=8683 },
417
+
new City { Latitude=40.0024137, Longitude= -75.2581194, Name="Philadelphia", Area=4661 },
418
+
new City { Latitude=42.3142647, Longitude= -71.11037, Name="Boston", Area=4497 },
419
+
new City { Latitude=42.3526257, Longitude= -83.239291, Name="Detroit", Area=3267 },
420
+
new City { Latitude=47.2510905, Longitude= -123.1255834, Name="Washington", Area=2996 },
421
+
new City { Latitude=25.7823907, Longitude= -80.2994995, Name="Miami", Area=2891 },
422
+
new City { Latitude=19.3892246, Longitude= -70.1305136, Name="San Juan", Area=2309 }
423
+
};
424
+
public void MouseMoveEvent(Syncfusion.Blazor.Maps.MouseMoveEventArgs args)
425
+
{
426
+
// Here you can customize your code
427
+
}
428
+
}
429
+
```
430
+
382
431
## OnBubbleClick
383
432
384
433
The [OnBubbleClick](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.MapsEvents.html#Syncfusion_Blazor_Maps_MapsEvents_MarkerClusterMouseMove) event will be triggered when clicking on the bubbles. To know more about the arguments of this event, refer [here](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Maps.BubbleClickEventArgs.html).
@@ -1006,4 +1055,4 @@ The [TooltipRendering](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.M
Copy file name to clipboardExpand all lines: blazor/maps/markers.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -465,6 +465,44 @@ The Maps can be initially scaled to the center value based on the marker distanc
465
465
466
466

467
467
468
+
## Disabling Zoom on Marker Click
469
+
470
+
Maps typically zoom in when you click or double-click on them. This zooming also occurs when you click on a marker. To prevent zooming when clicking on a marker, you can set `ZoomOnMarkerClick` to **false** in the `MapsZoomSettings`. This setting disables zooming specifically for marker clicks. By default, `ZoomOnMarkerClick` is set to **true**.
public List<MapMarkerDataSource> MarkerDataSource = new List<MapMarkerDataSource> {
497
+
new MapMarkerDataSource{ latitude= 49.95121990866204, longitude= 18.468749999999998, name= "Europe" },
498
+
new MapMarkerDataSource{ latitude= 59.88893689676585, longitude= -109.3359375, name= "North America" },
499
+
new MapMarkerDataSource{ latitude= -6.64607562172573, longitude= -55.54687499999999, name= "South America" }
500
+
};
501
+
}
502
+
```
503
+
504
+

505
+
468
506
## Marker clustering
469
507
470
508
Maps provide support to cluster the markers when they overlap each other. The number on a cluster indicates how many overlapped markers it contains. If zooming is performed on any of the cluster locations in Maps, the number on the cluster will decrease, and the individual markers will be seen on the map. When zooming out, the overlapping marker will increase. So that it can cluster again and increase the count over the cluster.
0 commit comments