Exemple #1
0
 public async Task <object> Open(MarkupString htmlContent, ILocationable locationable)
 {
     return(await jSRuntime.InvokeAsync <object>(
                "blazorGoogleMap.openInfoWindow", string.Empty, locationable, htmlContent.ToString()));
 }
Exemple #2
0
 public double GetDistance(ILocationable structure)
 {
     return(Math.Sqrt(Math.Pow((X() - structure.X()), 2) + Math.Pow((Y() - structure.Y()), 2)));
 }
Exemple #3
0
 public async Task <object> Open(string infoWindowId, ILocationable locationable = null)
 {
     return(await jSRuntime.InvokeAsync <object>(
                "blazorGoogleMap.openInfoWindow", infoWindowId, locationable));
 }
Exemple #4
0
 public double GetDistance(ILocationable structure)
 {
     return(Math.Sqrt((this.X() - structure.X()) * (this.X() - structure.X()) + ((this.Y() - structure.Y()) * (this.Y() - structure.Y()))));
 }