forked from Mehigh17/BlazorLeaflet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mehigh17#29 Allow Zoom and Center to be set with the property on Map.
- Loading branch information
AlexKven
committed
Jun 11, 2020
1 parent
409d19a
commit 1f32265
Showing
5 changed files
with
128 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
using System.Text; | ||
|
||
namespace BlazorLeaflet.Models | ||
{ | ||
public class Bounds | ||
{ | ||
[DataMember(Name = "_northEast")] | ||
public LatLng NorthEast { get; set; } | ||
|
||
[DataMember(Name = "_southWest")] | ||
public LatLng SouthWest { get; set; } | ||
|
||
public Bounds() { } | ||
public Bounds(LatLng southWest, LatLng northEast) | ||
{ | ||
NorthEast = northEast; | ||
SouthWest = southWest; | ||
} | ||
|
||
public override string ToString() => | ||
$"NE: {NorthEast.Lat} N, {NorthEast.Lng} E; SW: {SouthWest.Lat} N, {SouthWest.Lng} E"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters