Class MapLatLngBounds
Represents MapLatLngBounds class.
Inheritance
System.Object
MapLatLngBounds
Namespace: Syncfusion.Maui.Maps
Assembly: Syncfusion.Maui.Maps.dll
Syntax
public class MapLatLngBounds : BindableObject
Examples
<map:SfMaps>
<map:SfMaps.Layer>
<map:MapTileLayer UrlTemplate = "https://tile.openstreetmap.org/{z}/{x}/{y}.png" >
<map:MapTileLayer.ZoomPanBehavior>
<map:MapZoomPanBehavior ZoomLevel = "5" />
</map:MapTileLayer.ZoomPanBehavior>
<map:MapTileLayer.LatLngBounds>
<map:MapLatLngBounds>
<map:MapLatLngBounds.Northeast>
<map:MapLatLng>
<x:Arguments>
<x:Double>38.909804</x:Double>
<x:Double>-77.043442</x:Double>
</x:Arguments>
</map:MapLatLng>
</map:MapLatLngBounds.Northeast>
<map:MapLatLngBounds.Southwest>
<map:MapLatLng>
<x:Arguments>
<x:Double>13.048155</x:Double>
<x:Double>80.083858</x:Double>
</x:Arguments>
</map:MapLatLng>
</map:MapLatLngBounds.Southwest>
</map:MapLatLngBounds>
</map:MapTileLayer.LatLngBounds>
</map:MapTileLayer>
</map:SfMaps.Layer>
</map:SfMaps>
Constructors
MapLatLngBounds()
Declaration
public MapLatLngBounds()
Fields
NortheastProperty
Identifies the Northeast bindable property.
Declaration
public static readonly BindableProperty NortheastProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Northeast bindable property. |
SouthwestProperty
Identifies the Southwest bindable property.
Declaration
public static readonly BindableProperty SouthwestProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Southwest bindable property. |
Properties
Northeast
Gets or sets the northeast corner of the geo bounds.
Declaration
public MapLatLng Northeast { get; set; }
Property Value
Type | Description |
---|---|
MapLatLng | The geo bounds value of northest. |
Examples
<map:SfMaps>
<map:SfMaps.Layer>
<map:MapTileLayer UrlTemplate = "https://tile.openstreetmap.org/{z}/{x}/{y}.png" >
<map:MapTileLayer.ZoomPanBehavior>
<map:MapZoomPanBehavior ZoomLevel = "5" />
</map:MapTileLayer.ZoomPanBehavior>
<map:MapTileLayer.LatLngBounds>
<map:MapLatLngBounds>
<map:MapLatLngBounds.Northeast>
<map:MapLatLng>
<x:Arguments>
<x:Double>38.909804</x:Double>
<x:Double>-77.043442</x:Double>
</x:Arguments>
</map:MapLatLng>
</map:MapLatLngBounds.Northeast>
<map:MapLatLngBounds.Southwest>
<map:MapLatLng>
<x:Arguments>
<x:Double>13.048155</x:Double>
<x:Double>80.083858</x:Double>
</x:Arguments>
</map:MapLatLng>
</map:MapLatLngBounds.Southwest>
</map:MapLatLngBounds>
</map:MapTileLayer.LatLngBounds>
</map:MapTileLayer>
</map:SfMaps.Layer>
</map:SfMaps>
Southwest
Gets or sets the southwest corner of the geo bounds.
Declaration
public MapLatLng Southwest { get; set; }
Property Value
Type | Description |
---|---|
MapLatLng | The geo bounds value of southwest. |
Examples
<map:SfMaps>
<map:SfMaps.Layer>
<map:MapTileLayer UrlTemplate = "https://tile.openstreetmap.org/{z}/{x}/{y}.png" >
<map:MapTileLayer.ZoomPanBehavior>
<map:MapZoomPanBehavior ZoomLevel = "5" />
</map:MapTileLayer.ZoomPanBehavior>
<map:MapTileLayer.LatLngBounds>
<map:MapLatLngBounds>
<map:MapLatLngBounds.Northeast>
<map:MapLatLng>
<x:Arguments>
<x:Double>38.909804</x:Double>
<x:Double>-77.043442</x:Double>
</x:Arguments>
</map:MapLatLng>
</map:MapLatLngBounds.Northeast>
<map:MapLatLngBounds.Southwest>
<map:MapLatLng>
<x:Arguments>
<x:Double>13.048155</x:Double>
<x:Double>80.083858</x:Double>
</x:Arguments>
</map:MapLatLng>
</map:MapLatLngBounds.Southwest>
</map:MapLatLngBounds>
</map:MapTileLayer.LatLngBounds>
</map:MapTileLayer>
</map:SfMaps.Layer>
</map:SfMaps>