Esempio n. 1
0
        protected async override Task OnAfterRenderAsync(bool firstRender)
        {
            Log.Debug("OnAfterRenderAsync");

            if (!IsInitialized)
            {
                return;
            }

            await base.OnAfterRenderAsync(firstRender);

            await Interop.InitializeAsync(this);

            if (Markers.Count > 0)
            {
                IsZoomed = true;
            }

            if (selected != null)
            {
                await Interop.CenterAtAsync(selected.Latitude, selected.Longitude);

                selected = null;
            }
        }
Esempio n. 2
0
 protected async ValueTask SearchResultSelectedAsync(MapSearchModel selected)
 {
     this.selected = selected;
     SearchModal.Hide();
 }