IRI.Maptor.Presentation.Wpf
3.0.0
dotnet add package IRI.Maptor.Presentation.Wpf --version 3.0.0
NuGet\Install-Package IRI.Maptor.Presentation.Wpf -Version 3.0.0
<PackageReference Include="IRI.Maptor.Presentation.Wpf" Version="3.0.0" />
<PackageVersion Include="IRI.Maptor.Presentation.Wpf" Version="3.0.0" />
<PackageReference Include="IRI.Maptor.Presentation.Wpf" />
paket add IRI.Maptor.Presentation.Wpf --version 3.0.0
#r "nuget: IRI.Maptor.Presentation.Wpf, 3.0.0"
#:package IRI.Maptor.Presentation.Wpf@3.0.0
#addin nuget:?package=IRI.Maptor.Presentation.Wpf&version=3.0.0
#tool nuget:?package=IRI.Maptor.Presentation.Wpf&version=3.0.0
IRI.Maptor.Presentation.Wpf
The WPF UI tier of the Maptor stack. It hosts the central MapViewer control together with the
MVVM infrastructure, layer model, cartography primitives, map-marker controls, and WPF resource
dictionaries that Maptor-based desktop applications build on. Targets .NET 8.0 on Windows with
both WPF and Windows Forms enabled.
Installation
dotnet add package IRI.Maptor.Presentation.Wpf
Requires Windows (WPF). Alternatively, add IRI.Maptor.Presentation.Wpf.csproj to your solution and
reference it from your WPF app.
Features
MapViewercontrol (IRI.Maptor.Presentation.Wpf.ControlsXAML namespace) with companion views: sketch bar, geometry editor, coordinate panel, go-to (geodetic/projected), map extent panel, legends, and scalebar.- MVVM building blocks:
ViewModelBase,RelayCommand, and the abstractMapViewModelBasethat drives the map, plus theIDialogServicedialog abstraction. - Layer model:
BaseLayerand concrete layers such asFeatureLayer,VectorLayer,RasterLayer,TileServiceLayer,GridLayer,GroupLayer,DrawingLayer,EditableFeatureLayer, andClusteredPointLayer. - Cartography primitives:
VisualParameters, symbologies, and rendering helpers. - Map markers: WPF user controls for location, label, photo, and textbox markers.
- Localization: RTL-aware language switching (
LanguageCombo, WPF binding extensions) on top of theLocalizationManagerin IRI.Maptor.Presentation.Core. - WPF assets: resource dictionaries for converters, colors, fonts, and animations.
- Office helpers: minimal Excel/Word export utilities built on OpenXML.
Usage
Place a MapViewer in a window and initialize it with a presenter derived from
MapViewModelBase:
<Window xmlns:maptor="clr-namespace:IRI.Maptor.Presentation.Wpf.Controls;assembly=IRI.Maptor.Presentation.Wpf" ...>
<maptor:MapViewer x:Name="map" />
</Window>
var presenter = new AppViewModel(); // your class derived from MapViewModelBase
await MapInitializationHelper.InitializeMapAsync(this.map, this, presenter);
this.DataContext = presenter;
See the WPF gallery for a window per feature - measurement, drawing, legends, markers, identify, localization: https://github.com/hosseinnarimanirad/Maptor/blob/master/samples/IRI.Maptor.Samples.Wpf.Gallery/README.md
Bring the resources into your app
Merge the built-in resource dictionaries to unlock the package's colors, fonts, converters, and animations:
<Application x:Class="YourApp.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/IRI.Maptor.Presentation.Wpf;component/Assets/IRI.Maptor.Converters.xaml"/>
<ResourceDictionary Source="pack://application:,,,/IRI.Maptor.Presentation.Wpf;component/Assets/IRI.Maptor.Fonts.xaml"/>
<ResourceDictionary Source="pack://application:,,,/IRI.Maptor.Presentation.Wpf;component/Assets/IRI.Maptor.Colors.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
Converters are then available by key, e.g. boolToVisibilityConverter and
stringToColorConverter. An IRI.Maptor.Animations.xaml dictionary is also available.
Dependencies
- Windows only: .NET 8.0 (
net8.0-windows) with WPF and Windows Forms. - Builds on the Maptor Sta packages (Spatial, SpatialReferenceSystem, ShapefileFormat, Ogc, ...) and IRI.Maptor.Presentation.Core (tile providers, localization store).
- Third-party: MahApps.Metro (+ icon packs), WriteableBitmapEx, Microsoft.Xaml.Behaviors.Wpf, DocumentFormat.OpenXml, Stateless.
See also
NuGet package · Report issues · Back to IRI.Maptor.Presentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows7.0
- DocumentFormat.OpenXml (>= 2.18.0)
- IRI.Maptor.Core.Common (>= 3.0.0)
- IRI.Maptor.Core.MachineLearning (>= 3.0.0)
- IRI.Maptor.Core.Ogc (>= 3.0.0)
- IRI.Maptor.Core.Pdf (>= 3.0.0)
- IRI.Maptor.Core.Persistence (>= 3.0.0)
- IRI.Maptor.Core.Security (>= 3.0.0)
- IRI.Maptor.Core.ShapefileFormat (>= 3.0.0)
- IRI.Maptor.Core.Spatial (>= 3.0.0)
- IRI.Maptor.Core.SpatialReferenceSystem (>= 3.0.0)
- IRI.Maptor.Core.Versioning (>= 3.0.0)
- IRI.Maptor.Infrastructure.GdiPlus (>= 3.0.0)
- IRI.Maptor.Infrastructure.Sqlite (>= 3.0.0)
- IRI.Maptor.Presentation.Core (>= 3.0.0)
- MahApps.Metro (>= 2.4.11)
- MahApps.Metro.IconPacks.Material (>= 6.1.0)
- MahApps.Metro.IconPacks.Modern (>= 6.1.0)
- MahApps.Metro.IconPacks.PhosphorIcons (>= 6.1.0)
- Microsoft.Data.SqlClient (>= 6.0.1)
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.77)
- Stateless (>= 5.12.0)
- System.Data.SqlClient (>= 4.9.0)
- System.Drawing.Common (>= 7.0.0)
- WriteableBitmapEx (>= 1.6.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 76 | 8/23/2026 |
| 3.0.0-alpha | 78 | 8/22/2026 |