Reverse Geolocator

Click on any location on the map, and the popup will show the latitude and logitude, as well as an address.

About this sample

This GeoBlazor sample, written in Blazor for .NET developers, demonstrates reverse geocoding (LocationToAddress) from the ArcGIS Maps SDK for JavaScript exposed through GeoBlazor's LocationService and PopupTemplate Razor components. The page shows a 2D streets basemap centered near Quito, Ecuador. Above the map sits an instructional paragraph; once the user clicks anywhere on the map the page also displays the selected latitude and longitude and the resolved street address in a Selected Point heading. The click handler converts the click point into an address by calling LocationService.LocationToAddress against the ArcGIS World GeocodeServer, then opens a PopupTemplate at the clicked location whose title is the longitude and latitude and whose content is the returned address. The sample is intended to demonstrate how to perform reverse geocoding and bind the result to an interactive popup in a Blazor application without writing JavaScript.

🚧 Heads up: Some samples are currently offline due to a token issue with ArcGIS. We are working with ESRI to resolve.