Streamline Your GeoBlazor Setup with New Visual Studio Templates

GeoBlazor is an easy-to-use solution for adding interactive maps to your Asp.NET Core Blazor applications. While we try to keep the application setup as simple as possible, (see Getting Started), it still requires setting up a few lines in 4 different files. If you miss one of these steps, your map will not render.

Now, there's a new way to get started, using GeoBlazor Templates. With these templates, we have done a lot of the boilerplate setup for you, allowing you to get straight to implementing the mapping features you care about.

Build GeoBlazor apps with pre-defined templates.

To get started, make sure you have .NET 8 installed, and open up a terminal application to run the following:

dotnet new install dymaptic.GeoBlazor.Templates

This installs the GeoBlazor templates to your computer. From there, you can use the command line or your IDE to create new GeoBlazor projects. In the screenshot below, notice that the templates appear in Visual Studio 2022.

GeoBlazor Templates in Visual Studio 2022

From the command line, one of the following commands will create a project:

dotnet new geoblazor-server -o <project name> - Server-side app that connects to the browser via SignalR

dotnet new geoblazor-webassembly -o <project name> - Client-side WebAssembly app that runs in the browser

dotnet new geoblazor-maui -o <project name> - Blazor Hybrid with .NET MAUI deployable to Windows, Mac, iOS, and Android

dotnet new geoblazor-webapp -o <project name> - New .NET 8 Blazor Web App for mixed render modes

Each template comes with a README.md file with instructions on adding your ArcGIS API Key, which is the only step necessary to get started.

When running GeoBlazor for the first time, you will see a prompt in your console to register the application, which you can do at https://licensing.dymaptic.com/geoblazor-core. This registration includes a short survey that helps us better support our users.

Let us know what you think of the new GeoBlazor templates! You can join the discussion on our Discord server, or email info@dymaptic.com.


Share

Related articles

GeoBlazor 4.0: A Transformation in Location-Based .NET Development

GeoBlazor 4.0: A Transformation in Location-Based .NET Development

Imagine transforming your .NET web applications with cutting-edge mapping capabilities. GeoBlazor 4.0 turns this vision into a reality.
Bringing GeoBlazor to Your Existing ASP.NET MVC Application

Bringing GeoBlazor to Your Existing ASP.NET MVC Application

If you're maintaining an existing ASP.NET MVC application and want to add rich, interactive maps, you're not out of options. You don't need ...
Geographically Visualizing Customer Data with Blazor and ArcGIS

Geographically Visualizing Customer Data with Blazor and ArcGIS

In today’s data-driven world, mapping business trends and insights can turn complex problems into actionable strategies. Using geographic in...