コード例 #1
0
 /// <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));
 }
コード例 #2
0
ファイル: Data.cs プロジェクト: vladhorby/BlazorGoogleMaps
 /// <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));
 }
コード例 #3
0
ファイル: Data.cs プロジェクト: vladhorby/BlazorGoogleMaps
 /// <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));
 }
コード例 #4
0
ファイル: Data.cs プロジェクト: vladhorby/BlazorGoogleMaps
 /// <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));
 }
コード例 #5
0
 /// <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));
 }
コード例 #6
0
 /// <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));
 }
コード例 #7
0
 /// <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));
 }