Exemplo n.º 1
0
 /// <summary>
 /// Creates an info window with the given options.
 /// An InfoWindow can be placed on a map at a particular position or above a marker, depending on what is specified in the options.
 /// Unless auto-pan is disabled, an InfoWindow will pan the map to make itself visible when it is opened.
 /// After constructing an InfoWindow, you must call open to display it on the map.
 /// The user can click the close button on the InfoWindow to remove it from the map, or the developer can call close() for the same effect.
 /// </summary>
 /// <param name="opts"></param>
 public InfoWindow(IJSRuntime jsRuntime, InfoWindowOptions opts)
     : base(jsRuntime)
 {
     _jsRuntime.InvokeWithDefinedGuidAsync <bool>(
         "googleMapInfoWindowJsFunctions.init",
         Guid.ToString(),
         opts);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Creates an info window with the given options.
        /// An InfoWindow can be placed on a map at a particular position or above a marker, depending on what is specified in the options.
        /// Unless auto-pan is disabled, an InfoWindow will pan the map to make itself visible when it is opened.
        /// After constructing an InfoWindow, you must call open to display it on the map.
        /// The user can click the close button on the InfoWindow to remove it from the map, or the developer can call close() for the same effect.
        /// </summary>
        /// <param name="opts"></param>
        public async static Task <InfoWindow> CreateAsync(IJSRuntime jsRuntime, InfoWindowOptions opts = null)
        {
            var jsObjectRef = await JsObjectRef.CreateAsync(jsRuntime, "google.maps.InfoWindow", opts);

            var obj = new InfoWindow(jsObjectRef, opts);

            return(obj);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Creates an info window with the given options.
 /// An InfoWindow can be placed on a map at a particular position or above a marker, depending on what is specified in the options.
 /// Unless auto-pan is disabled, an InfoWindow will pan the map to make itself visible when it is opened.
 /// After constructing an InfoWindow, you must call open to display it on the map.
 /// The user can click the close button on the InfoWindow to remove it from the map, or the developer can call close() for the same effect.
 /// </summary>
 /// <param name="opts"></param>
 private InfoWindow(JsObjectRef jsObjectRef, InfoWindowOptions opts)
 {
     _jsObjectRef = jsObjectRef;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates an info window with the given options.
 /// An InfoWindow can be placed on a map at a particular position or above a marker, depending on what is specified in the options.
 /// Unless auto-pan is disabled, an InfoWindow will pan the map to make itself visible when it is opened.
 /// After constructing an InfoWindow, you must call open to display it on the map.
 /// The user can click the close button on the InfoWindow to remove it from the map, or the developer can call close() for the same effect.
 /// </summary>
 /// <param name="opts"></param>
 private InfoWindow(JsObjectRef jsObjectRef, InfoWindowOptions opts)
 {
     _jsObjectRef   = jsObjectRef;
     EventListeners = new Dictionary <string, List <MapEventListener> >();
 }