Exemple #1
0
        /// <summary>
        /// Creates an empty collection, with the given DataOptions.
        /// </summary>
        /// <param name="options"></param>
        public async static Task <MapData> CreateAsync(IJSRuntime jsRuntime, Data.DataOptions opts = null)
        {
            var jsObjectRef = await JsObjectRef.CreateAsync(jsRuntime, "google.maps.Data", opts);

            var obj = new MapData(jsObjectRef);

            return(obj);
        }
Exemple #2
0
 /// <summary>
 /// Creates an empty collection, with the given DataOptions.
 /// </summary>
 /// <param name="options"></param>
 public MapData(IJSRuntime jsRuntime, Data.DataOptions options)
     : base(jsRuntime)
 {
 }