# BootstrapBlazor.Geolocation **Repository Path**: densen2014/BootstrapBlazor.Geolocation ## Basic Information - **Project Name**: BootstrapBlazor.Geolocation - **Description**: Blazor Geolocation 定位/持续定位 组件 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-10-13 - **Last Updated**: 2022-12-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Blazor Geolocation 定位/持续定位 组件 定位组件 示例: https://blazor.app1.es/geolocations 使用方法: 1.nuget包 ```BootstrapBlazor.Geolocation``` 2._Imports.razor 文件 或者页面添加 添加组件库引用 ```@using BootstrapBlazor.Components``` 3.razor页面 ``` @status
``` ``` @code{ private string? status { get; set; } private Geolocationitem? geolocations { get; set; } private List Items { get; set; } = new List() { new Geolocationitem() }; private Task OnResult(Geolocationitem geolocations) { this.geolocations = geolocations; Items[0] = geolocations; StateHasChanged(); return Task.CompletedTask; } private Task OnUpdateStatus(string status) { this.status = status; StateHasChanged(); return Task.CompletedTask; } } ``` --- #### Blazor 组件 [条码扫描 ZXingBlazor](https://www.nuget.org/packages/ZXingBlazor#readme-body-tab) [![nuget](https://img.shields.io/nuget/v/ZXingBlazor.svg?style=flat-square)](https://www.nuget.org/packages/ZXingBlazor) [![stats](https://img.shields.io/nuget/dt/ZXingBlazor.svg?style=flat-square)](https://www.nuget.org/stats/packages/ZXingBlazor?groupby=Version) [图片浏览器 Viewer](https://www.nuget.org/packages/BootstrapBlazor.Viewer#readme-body-tab) [条码扫描 BarcodeScanner](Densen.Component.Blazor/BarcodeScanner.md) [手写签名 Handwritten](Densen.Component.Blazor/Handwritten.md) [手写签名 SignaturePad](https://www.nuget.org/packages/BootstrapBlazor.SignaturePad#readme-body-tab) [定位/持续定位 Geolocation](https://www.nuget.org/packages/BootstrapBlazor.Geolocation#readme-body-tab) [屏幕键盘 OnScreenKeyboard](https://www.nuget.org/packages/BootstrapBlazor.OnScreenKeyboard#readme-body-tab) [百度地图 BaiduMap](https://www.nuget.org/packages/BootstrapBlazor.BaiduMap#readme-body-tab) [谷歌地图 GoogleMap](https://www.nuget.org/packages/BootstrapBlazor.Maps#readme-body-tab) [蓝牙和打印 Bluetooth](https://www.nuget.org/packages/BootstrapBlazor.Bluetooth#readme-body-tab) [PDF阅读器 PdfReader](https://www.nuget.org/packages/BootstrapBlazor.PdfReader#readme-body-tab) [文件系统访问 FileSystem](https://www.nuget.org/packages/BootstrapBlazor.FileSystem#readme-body-tab) [光学字符识别 OCR](https://www.nuget.org/packages/BootstrapBlazor.OCR#readme-body-tab) [电池信息/网络信息 WebAPI](https://www.nuget.org/packages/BootstrapBlazor.WebAPI#readme-body-tab) #### AlexChow [今日头条](https://www.toutiao.com/c/user/token/MS4wLjABAAAAGMBzlmgJx0rytwH08AEEY8F0wIVXB2soJXXdUP3ohAE/?) | [博客园](https://www.cnblogs.com/densen2014) | [知乎](https://www.zhihu.com/people/alex-chow-54) | [Gitee](https://gitee.com/densen2014) | [GitHub](https://github.com/densen2014) ![ChuanglinZhou](https://user-images.githubusercontent.com/8428709/205942253-8ff5f9ca-a033-4707-9c36-b8c9950e50d6.png)