/// <summary> /// Changes the style of a feature. These changes are applied on top of the style specified by setStyle(). /// Style properties set to null revert to the value specified via setStyle(). /// </summary> /// <param name="feature"></param> /// <param name="style"></param> /// <returns></returns> public Task OverrideSytle(Data.Feature feature, Data.StyleOptions style) { return(_jsObjectRef.InvokeAsync( "overrideSytle", feature, style)); }
/// <summary> /// Checks whether the given feature is in the collection. /// </summary> /// <param name="feature"></param> /// <returns></returns> public Task <bool> Contains(Data.Feature feature) { return(_jsRuntime.InvokeWithDefinedGuidAndMethodAsync <bool>( "googleMapDataJsFunctions.invoke", _guid.ToString(), "contains", feature)); }
/// <summary> /// moves the effect of previous overrideStyle() calls. /// The style of the given feature reverts to the style specified by setStyle(). /// </summary> /// <param name="feature"></param> /// <returns></returns> public Task RevertStyle(Data.Feature feature = null) { return(_jsRuntime.InvokeWithDefinedGuidAndMethodAsync <object>( "googleMapDataJsFunctions.invoke", _guid.ToString(), "revertStyle", feature)); }
/// <summary> /// Changes the style of a feature. These changes are applied on top of the style specified by setStyle(). /// Style properties set to null revert to the value specified via setStyle(). /// </summary> /// <param name="feature"></param> /// <param name="style"></param> /// <returns></returns> public Task OverrideSytle(Data.Feature feature, Data.StyleOptions style) { return(_jsRuntime.InvokeWithDefinedGuidAndMethodAsync <object>( "googleMapDataJsFunctions.invoke", _guid.ToString(), "overrideSytle", feature, style)); }
/// <summary> /// Checks whether the given feature is in the collection. /// </summary> /// <param name="feature"></param> /// <returns></returns> public Task <bool> Contains(Data.Feature feature) { return(_jsObjectRef.InvokeAsync <bool>( "contains", feature)); }
/// <summary> /// moves the effect of previous overrideStyle() calls. /// The style of the given feature reverts to the style specified by setStyle(). /// </summary> /// <param name="feature"></param> /// <returns></returns> public Task RevertStyle(Data.Feature feature = null) { return(_jsObjectRef.InvokeAsync( "revertStyle", feature)); }
/// <summary> /// Removes a feature from the collection. /// </summary> /// <param name="feature"></param> /// <returns></returns> public Task Remove(Data.Feature feature) { return(_jsObjectRef.InvokeAsync( "remove", feature)); }