コード例 #1
0
 public async Task <object> Open(MarkupString htmlContent, ILocationable locationable)
 {
     return(await jSRuntime.InvokeAsync <object>(
                "blazorGoogleMap.openInfoWindow", string.Empty, locationable, htmlContent.ToString()));
 }
コード例 #2
0
 public double GetDistance(ILocationable structure)
 {
     return(Math.Sqrt(Math.Pow((X() - structure.X()), 2) + Math.Pow((Y() - structure.Y()), 2)));
 }
コード例 #3
0
 public async Task <object> Open(string infoWindowId, ILocationable locationable = null)
 {
     return(await jSRuntime.InvokeAsync <object>(
                "blazorGoogleMap.openInfoWindow", infoWindowId, locationable));
 }
コード例 #4
0
ファイル: Tent.cs プロジェクト: Harrm/ReliefCamp
 public double GetDistance(ILocationable structure)
 {
     return(Math.Sqrt((this.X() - structure.X()) * (this.X() - structure.X()) + ((this.Y() - structure.Y()) * (this.Y() - structure.Y()))));
 }