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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="IRI.Maptor.Presentation.Wpf" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IRI.Maptor.Presentation.Wpf" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="IRI.Maptor.Presentation.Wpf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add IRI.Maptor.Presentation.Wpf --version 3.0.0
                    
#r "nuget: IRI.Maptor.Presentation.Wpf, 3.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package IRI.Maptor.Presentation.Wpf@3.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=IRI.Maptor.Presentation.Wpf&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=IRI.Maptor.Presentation.Wpf&version=3.0.0
                    
Install as a Cake Tool

IRI.Maptor.Presentation.Wpf

NuGet Target

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

  • MapViewer control (IRI.Maptor.Presentation.Wpf.Controls XAML 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 abstract MapViewModelBase that drives the map, plus the IDialogService dialog abstraction.
  • Layer model: BaseLayer and concrete layers such as FeatureLayer, VectorLayer, RasterLayer, TileServiceLayer, GridLayer, GroupLayer, DrawingLayer, EditableFeatureLayer, and ClusteredPointLayer.
  • 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 the LocalizationManager in 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 Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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