BptMap
API reference for BptMap — parameters, event callbacks, and related configuration.
BptMap
Open demo →Parameters
| Name | Type | Flags | Description |
|---|---|---|---|
Enabled | bool | — | |
Center | BptLatLng | — | |
Zoom | int | — | |
MinZoom | int | — | |
MaxZoom | int | — | |
TileProvider | BptTileProvider | — | |
Width | string | — | |
Height | string | — | |
ZoomControl | bool | — | |
ScrollWheelZoom | bool | — | |
Dragging | bool | — | |
DoubleClickZoom | bool | — | |
AttributionControl | bool | — | |
ChildContent | RenderFragment | Nullable | — |
CssClass | string | — | |
BptAppState | BptRootComponentBase | CascadingNullable | — |
CultureState | BptCultureState | CascadingNullable | — |
Event callbacks
| Name | Type | Flags | Description |
|---|---|---|---|
OnClick | EventCallback<BptMapClickEventArgs> | — | |
OnZoomChanged | EventCallback<int> | — | |
OnCenterChanged | EventCallback<BptLatLng> | — | |
OnBoundsChanged | EventCallback<BptLatLngBounds> | — | |
OnGeoJsonFeatureClick | EventCallback<BptGeoJsonFeatureClickEventArgs> | — |
Sub-components
BptMapDatapoints
Parameters
| Name | Type | Flags | Description |
|---|---|---|---|
Data | IReadOnlyList<object> | Nullable | — |
LatSelector | Func<object, double> | Nullable | — |
LngSelector | Func<object, double> | Nullable | — |
TimestampSelector | Func<object, DateTime> | Nullable | — |
Shape | BptDatapointShape | — | |
ShapeSize | int | — | |
Color | string | — | |
ColorSelector | Func<object, string> | Nullable | — |
ConnectPoints | bool | — | |
LineColor | string | — | |
LineOpacity | double | — | |
LineWeight | int | — | |
ShowTimeline | bool | — | |
PopupTemplate | RenderFragment<object> | Nullable | — |
TimelineTotal | int? | Nullable | — |
ShowBarGraph | bool | — | |
BarGraphOrientation | BptBarGraphOrientation | — | |
BarGraphPosition | BptBarGraphPosition | — | |
BarGraphWidth | string | — | |
BarGraphHeight | string | — | |
BarGraphOpacity | double | — | |
BarColor | string | — | |
BarHoverColor | string | — | |
BarSelectedColor | string | — | |
ParentMap | BptMap | CascadingNullable | — |
BptAppState | BptRootComponentBase | CascadingNullable | — |
CultureState | BptCultureState | CascadingNullable | — |
Event callbacks
| Name | Type | Flags | Description |
|---|---|---|---|
OnDatapointClick | EventCallback<object> | — | |
OnPlayheadChanged | EventCallback<int> | — | |
OnBarGraphFilterChanged | EventCallback<BptBarGraphFilterEventArgs> | — |
BptMapMarker
Parameters
| Name | Type | Flags | Description |
|---|---|---|---|
Position | BptLatLng | — | |
Title | string | Nullable | — |
Draggable | bool | — | |
IconUrl | string | Nullable | — |
IconSize | Int32[] | Nullable | — |
IconCssClass | string | Nullable | — |
IconColor | string | Nullable | — |
IconFontSize | int | — | |
PopupHtml | string | Nullable | — |
ChildContent | RenderFragment | Nullable | — |
TooltipHtml | string | Nullable | — |
Tooltip | RenderFragment | Nullable | — |
PopupBackgroundColor | string | Nullable | — |
PopupBorderColor | string | Nullable | — |
PopupBorderRadius | string | Nullable | — |
PopupBorderWidth | string | Nullable | — |
PopupMaxWidth | string | Nullable | — |
ParentMap | BptMap | CascadingNullable | — |
Event callbacks
| Name | Type | Flags | Description |
|---|---|---|---|
OnClick | EventCallback<BptLatLng> | — | |
PositionChanged | EventCallback<BptLatLng> | — | |
OnMarkerReleased | EventCallback<BptLatLng> | — |
BptMapOfflineStorage
Parameters
| Name | Type | Flags | Description |
|---|---|---|---|
Enabled | bool | — | |
ShowSavedAreas | bool | — | |
ZoomRangeOffset | int | — | |
MaxTilesPerDownload | int | — | |
SelectionStrokeColor | string | — | |
SelectionFillColor | string | — | |
SavedAreaStrokeColor | string | — | |
SavedAreaFillColor | string | — | |
ParentMap | BptMap | CascadingNullable | — |
BptAppState | BptRootComponentBase | CascadingNullable | — |
CultureState | BptCultureState | CascadingNullable | — |
Event callbacks
| Name | Type | Flags | Description |
|---|---|---|---|
OnAreaSaved | EventCallback<BptOfflineArea> | — | |
OnAreaRemoved | EventCallback<BptOfflineArea> | — | |
OnDownloadProgress | EventCallback<BptOfflineDownloadProgress> | — |
Related configuration
BptGeoJsonOptions
| Property | Type | Description |
|---|---|---|
LayerId |
string |
— |
FillColor |
string |
— |
FillOpacity |
double |
— |
StrokeColor |
string |
— |
StrokeWeight |
double |
— |
StrokeOpacity |
double |
— |
Opacity |
double |
— |
ShowBorder |
bool |
— |
LabelProperty |
string |
— |
LabelShowMode |
BptMapLabelShowMode |
— |
FitBounds |
bool |
— |