public Task SetPosition(LatLngLiteral position) { return(_jsRuntime.InvokeWithDefinedGuidAndMethodAsync <int>( "googleMapInfoWindowJsFunctions.invoke", Guid.ToString(), "setPosition", position)); }
/// <summary> /// Sets the center of this circle. /// </summary> /// <param name="center"></param> public Task SetCenter(LatLngLiteral center) { return(_jsRuntime.InvokeWithDefinedGuidAndMethodAsync <bool>( "googleMapCircleJsFunctions.invoke", _guid.ToString(), "setCenter", center)); }
public async Task SetPosition(LatLngLiteral latLng) { await _jsRuntime.InvokeWithDefinedGuidAndMethodAsync <object>( "googleMapMarkerJsFunctions.invoke", _guid.ToString(), "setPosition", latLng); }
/// <summary> /// Constructor with one or two given coordinate points. /// If the second point is null, the bounds are set to the first point. /// The points may be positioned arbitrarily. /// </summary> public LatLngBoundsLiteral(LatLngLiteral latLng1, LatLngLiteral latLng2 = null) { East = latLng1.Lng; West = latLng1.Lng; South = latLng1.Lat; North = latLng1.Lat; if (latLng2 != null) { Extend(latLng2); } }
public Task SetPosition(LatLngLiteral latLng) { return(_jsObjectRef.InvokeAsync( "setPosition", latLng)); }
/// <summary> /// Sets the center of this circle. /// </summary> /// <param name="center"></param> public Task SetCenter(LatLngLiteral center) { return(_jsObjectRef.InvokeAsync("setCenter", center)); }
/// <summary> /// Changes the center of the map to the given LatLng. /// If the change is less than both the width and height of the map, the transition will be smoothly animated. /// </summary> /// <param name="latLng"></param> /// <returns></returns> public Task PanTo(LatLngLiteral latLng) { return(_jsObjectRef.InvokeAsync("panTo", latLng)); }
/// <summary> /// Extends this bounds to contain the given point. /// </summary> public Task Extend(LatLngLiteral point) { return(_jsObjectRef.InvokeAsync("extend", point)); }
/// <summary> /// Returns true if the given lat/lng is in this bounds. /// </summary> public Task <bool> Contains(LatLngLiteral other) { return(_jsObjectRef.InvokeAsync <bool>("contains", other)); }
/// <summary> /// Create or extend a LatLngBoundsLiteral with a given coordinate point. /// Using this method you can initialize a LatLngBoundsLiteral reference with null and call /// subsequently this method to extend the boundaries by given points. /// </summary> public static void CreateOrExtend(ref LatLngBoundsLiteral latLngBoundsLiteral, LatLngLiteral latLng) { if (latLngBoundsLiteral == null) { latLngBoundsLiteral = new LatLngBoundsLiteral(latLng); } else { latLngBoundsLiteral.Extend(latLng); } }
/// <summary> /// Extend these boundaries by a given coordinate point. /// </summary> public void Extend(LatLngLiteral latLng) { Extend(latLng.Lng, latLng.Lat); }
public Task Push(LatLngLiteral coordinate) { return(_jsObjectRef.InvokeAsync("push", coordinate)); }
public async Task <Point> FromLatLngToPoint(LatLngLiteral literal) { var result = await _jsObjectRef.InvokeAsync <Point>("fromLatLngToPoint", literal); return(result); }