Blog
All Blog Posts | Next Post | Previous Post
TMS.NET Maps is here: one map control for WinForms, WPF, .NET MAUI and Blazor
Today
Today we're releasing TMS.NET Maps. It's one map control for WinForms, WPF, .NET MAUI and Blazor, with the same async API on all four, eleven map and service providers, and seven location services that work with or without a map.
Since the open beta went live on nuget.org in October, many of you put it into real projects and told us what broke, what was missing and which parts of the API felt wrong. A lot of this release comes straight from those reports. To everyone who tried the beta and wrote back: thank you.
Stable on nuget.org
The stable release of all four packages, installed with a plain dotnet add package. No --prerelease, no private feed.
Free 30-day trial
Every feature unlocked with one trial key, verified offline. No activation step and no license server.
Commercial licenses
License per developer for production and ship your applications royalty-free. Launch offer: 3 months off with code MAPSLAUNCH until January 15, 2027, see pricing.
Requirement: .NET 10 or .NET 11
TMS.NET Maps supports .NET 10 and .NET 11. Your project targets net10.0 or net11.0 for Blazor, net10.0-windows or net11.0-windows for WPF and WinForms, and the .NET 10 or .NET 11 Android, iOS, Mac Catalyst or Windows targets for .NET MAUI. On Windows the controls render through WebView2, which is preinstalled on Windows 10 and 11.
What's in TMS.NET Maps
One control, four frameworks
Each framework gets a native control that feels at home there. Behind it is the same map, with the same methods and the same events, so a feature you build for the desktop app works in the web app too. Each package is a single assembly with the map control and every service in it; install one per project.
WinForms
Drop it on a form in the designer or create it in code.
TMS.Maps.WinForms.TrialWPF
A XAML MapControl with bindable properties.
TMS.Maps.Wpf.Trial.NET MAUI
Android, iOS, Mac Catalyst and Windows from one XAML control.
TMS.Maps.Maui.TrialBlazor
A Razor component for Blazor Server and WebAssembly.
TMS.Maps.Blazor.TrialOn the map
Markers, shapes, overlays, layers and events work the same on every provider, so changing providers never means rewriting your map code.
Markers and popups
Custom icons, titles, info windows and dragging, one at a time or in batches.
Clustering
Thousands of markers grouped into clusters that split apart as you zoom in.
Heatmaps
Weighted heat layers you show, hide and update at runtime.
Lines and shapes
Polylines, polygons, circles and rectangles, with area and length helpers.
Drawing tools
Users draw shapes themselves; you get them back in DrawingCompleted.
Labels and HTML panels
Text labels, plus your own legends, toolbars and status cards on the map.
Tile layers
Weather, cadastral or your own tiles, or a tile server you host.
Traffic and transit
Live traffic and public transit layers with one call.
Camera control
Pan, zoom, fit to bounds, tilt and rotate; screen pixels to coordinates.
Rich events
Click, double-click, right-click, hover, drag and vertex events on everything.
GeoJSON and GPX
Load and save features and tracks to share with other GIS tools.
Switch providers
One call swaps the provider, and your markers and shapes carry over.
Location services, no UI required
Next to the map control, seven services are included. They are plain .NET classes that take a provider and your own provider key and return a typed ServiceResult, so they work just as well in a console app, a background worker or an ASP.NET Core back end.
Geocoding
Addresses to coordinates and back.
Directions
Routes with distance, duration, turn-by-turn steps and geometry.
Places
Points of interest by text or near a location.
Elevation
Heights for one point or a whole path.
Static Maps
Map images for reports, emails, PDFs and thumbnails.
Location
The device's or caller's location, or a lookup by IP.
Route Calculator
Multi-stop route plans you edit on the map, with undo and redo.
Your keys, your accounts
Services call the provider directly. Nothing is proxied through TMS.
Eleven providers
Six providers draw the interactive map; the others power the services. Leaflet and OpenLayers need no provider key: they load OpenStreetMap tiles by default, so you can build your whole app before you pick a commercial provider. Not sure which provider can do what? GetProvidersByCapability tells you which ones support directions or elevation.
Map and services
Services only
From zero to a map in three steps
1Install the package and register your key
Pick the package for your framework:
dotnet add package TMS.Maps.Wpf.Trial
Then register your license key once at startup, in App.xaml.cs, Program.cs or MauiProgram.cs, before any map control or service is created:
using TMS.Maps.Core.Licensing;
TMSLicensing.RegisterLicense("YOUR-LICENSE-KEY");The key is checked locally against a public key in the assembly and is never sent anywhere, so it works the same on a build server, behind a firewall or on a plane.
2Add the map
A WPF window with a Leaflet map. No provider account needed:
<Window x:Class="Depots.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:maps="clr-namespace:TMS.Maps.Wpf;assembly=TMS.Maps.Wpf"
Title="Depots" Height="700" Width="1100">
<maps:MapControl x:Name="Map"
Provider="Leaflet"
CenterLatitude="51.0543" CenterLongitude="3.7174"
ZoomLevel="9"
MapReady="Map_Ready"/>
</Window>Blazor looks just as familiar:
@using TMS.Maps.Core.Models
@using TMS.Maps.UI.Web
<MapControl @ref="map"
Provider="Providers.Leaflet"
CenterLatitude="51.0543" CenterLongitude="3.7174" ZoomLevel="9"
Width="100%" Height="600px" />3Put your data on it
This is the part you write once. The same code fills the map in WinForms, WPF, .NET MAUI and Blazor:
using TMS.Maps.Core.Models;
using TMS.Maps.Core.Models.UI;
private async void Map_Ready(object? sender, EventArgs e)
{
await Map.AddMarkersAsync(new[]
{
new MapMarker(new Coordinate(51.0543, 3.7174)) { Title = "Ghent depot" },
new MapMarker(new Coordinate(51.2194, 4.4025)) { Title = "Antwerp depot" },
new MapMarker(new Coordinate(50.8466, 4.3528)) { Title = "Brussels depot" },
});
// Group markers into clusters as the user zooms out
await Map.EnableClusteringAsync(new MapClusterOptions { Radius = 80 });
// A 15 km delivery zone around Brussels
await Map.AddCircleAsync(50.8466, 4.3528, radiusMetres: 15000);
await Map.FitToMarkersAsync();
}A few more things to try
Heatmaps
Show where your data is densest. Each point carries an optional weight:
var heat = new MapHeatmap("deliveries", new[]
{
new HeatmapPoint(51.0543, 3.7174),
new HeatmapPoint(51.0550, 3.7200, Weight: 0.5),
new HeatmapPoint(51.0510, 3.7300, Weight: 2.0),
}) { Radius = 25, Opacity = 0.7 };
await Map.AddHeatmapAsync(heat);
// Later: hide it without removing it
await Map.SetHeatmapVisibilityAsync("deliveries", false);Let users draw
Turn on a drawing mode, and the shape comes back as a normal .NET object when the user finishes it:
Map.DrawingCompleted += (_, e) =>
{
if (e.Mode == DrawingMode.Polygon)
Title = $"Zone drawn: {e.Polygon!.AreaSquareKilometres:F1} km²";
};
await Map.EnableDrawingModeAsync(DrawingMode.Polygon,
new DrawingOptions { StrokeColor = "#6E35B5" });Switch providers at runtime
Develop on Leaflet, ship on Google, Azure Maps or HERE, or let your users choose. Your markers and shapes are added again on the new provider:
Map.ApiKey = googleApiKey; // your own Google Maps key await Map.SwitchProviderAsync(Providers.Google);
From address to route on the map
The Geocoding and Directions services don't need a map, but they combine nicely with one. Geocode an address, calculate a route from there and draw it:
using TMS.Maps.Core.Models;
using TMS.Maps.Core.Models.UI;
using TMS.Maps.Geocoding;
using TMS.Maps.Directions;
using var geocoding = new GeocodingService(Providers.Google, googleApiKey);
using var directions = new DirectionsService(Providers.Google, googleApiKey);
var found = await geocoding.GetAsync("Grote Markt 1, Antwerp, Belgium");
if (found.IsError(out var places))
return; // check found.Messages for the provider's own error
var antwerp = places.First().Coordinate;
var ghent = new Coordinate(51.0543, 3.7174);
var result = await directions.GetAsync(antwerp, ghent);
if (!result.IsError(out var routes) && routes.FirstOrDefault() is { } route)
{
// Distance is in metres, duration in seconds
Title = $"{route.Distance / 1000:F1} km, {TimeSpan.FromSeconds(route.Duration):h\\:mm}";
await Map.AddPolylineAsync(new MapPolyline(route.Coordinates.ToList())
{
StrokeColor = "#6E35B5",
StrokeWeight = 5
});
}Swap Providers.Google for Azure, HERE, Mapbox, TomTom, GeoApify or OpenRouteService (depending on the service) and the rest of the code stays the same. Errors come back as values you check, not as exceptions you have to catch.
Want more? The getting started guide walks through every framework, and the guides on working with the map and calling the services cover the rest.
Pricing
Start with the free trial, and buy a license when you go to production. A commercial license is per developer and covers all four frameworks and all seven services: there are no separate packages to buy per platform.
Launch offer
Get 3 months off your license
To celebrate the release, use code MAPSLAUNCH when you buy a TMS.NET Maps license: you get the full year and pay for only nine months. Valid until December 31, 2026.
MAPSLAUNCHGet 3 months offSingle developer
1 developer
275new license
Existing TMS customers215
Yearly renewal115
All four frameworks and all seven services.
Small team
2 developers
405new license
Existing TMS customers315
Yearly renewal155
All four frameworks and all seven services.
Site license
Unlimited developers in one company
695new license
Existing TMS customers555
Yearly renewal245
All four frameworks and all seven services.
Every commercial license includes
Provider keys are separate: Google Maps, Azure Maps, HERE and the other commercial providers bill you directly under your own account. Leaflet and OpenLayers cost nothing extra. Order from the price list on the product page, or email info@tmssoftware.com with licensing questions.
Coming from the open beta?
Update to the stable packages
No more --prerelease: a plain dotnet add package or update gets the release.
Keep your key
Your beta key works with the release until it expires. After that, request a 30-day trial key or buy a license.
Keep your code
Your map and service code carries over as is. The strip on the map now reads "TMS.NET Maps TRIAL" with your key's end date.
TMS.NET Maps · Available now
Add a map to your .NET app. Today.
Get a free trial key, install one package and your map is running in minutes. No provider account needed with Leaflet or OpenLayers.
Start your free trial Read the quick startTried it? Tell us how it went. Which provider are you planning to use, and what would you like to see in the next release? Leave a comment below, email info@tmssoftware.com, or, as a licensed user, post in the TMS Support Center. We read every message and use it to plan the next releases.
TMS.NET Maps is one map control for WinForms, WPF, .NET MAUI and Blazor on .NET 10 and .NET 11: one async API, eleven providers, seven location services that work without a map, and offline license verification. It is available now on nuget.org. Start your free trial.
Bradley Velghe
This blog post has not received any comments yet.
All Blog Posts | Next Post | Previous Post