MapBundle.Niue
0.2.0
dotnet add package MapBundle.Niue --version 0.2.0
NuGet\Install-Package MapBundle.Niue -Version 0.2.0
<PackageReference Include="MapBundle.Niue" Version="0.2.0" />
<PackageVersion Include="MapBundle.Niue" Version="0.2.0" />
<PackageReference Include="MapBundle.Niue" />
paket add MapBundle.Niue --version 0.2.0
#r "nuget: MapBundle.Niue, 0.2.0"
#:package MapBundle.Niue@0.2.0
#addin nuget:?package=MapBundle.Niue&version=0.2.0
#tool nuget:?package=MapBundle.Niue&version=0.2.0
MapBundle
Bundled, offline map data for .NET apps — borders, cities, waterways and base layers — shipped as FlatGeobuf inside NuGet packages. Data is derived from OpenStreetMap under the ODbL; cities, rivers and lakes come from Natural Earth (public domain).
Packages
| Package | Contents |
|---|---|
MapBundle |
Core runtime. Loads the bundled .fgb layers. No data of its own. |
MapBundle.World |
The whole world (every continent merged). |
MapBundle.[Region] |
A single continent or country (for example MapBundle.Europe or MapBundle.Monaco). |
Install the core package plus the area required:
dotnet add package MapBundle.Monaco
A data package copies its FlatGeobuf files into a maps/<Region> folder beside the app at build time, and the MapBundle core reads them from there. Layers can instead be converted to another format and/or rendered to an image at build time.
Usage
<a id='snippet-usage'></a>
var map = Maps.Open().Load("Monaco");
var borders = map.Borders; // country polygons
var cities = map.Cities; // populated places
var states = map.StatesProvinces; // admin-1 polygons
var rivers = map.Rivers; // rivers
// also: map.Lakes, map.Coastline, map.Land, map.Ocean
<sup><a href='/src/Tests/Snippets.cs#L7-L15' title='Snippet source file'>snippet source</a> | <a href='#snippet-usage' title='Start of snippet'>anchor</a></sup>
Layers are read on demand and returned as GeoConvert FeatureCollections (coordinates are WGS84 longitude/latitude).
Layers
🗺️ Borders · 🏛️ StatesProvinces · 🏙️ Cities · 〰️ Rivers · 💧 Lakes · 🏖️ Coastline · 🟩 Land · 🌊 Ocean
A layer is omitted from a package when the source has nothing for that region (for example Ocean and Coastline for landlocked countries). Roads, railways, buildings, land use and terrain are intentionally excluded.
More
Full documentation, the complete per-region package list, data sources and licensing details are on the project page:
https://github.com/Papyrine/MapBundle
License
The MapBundle core library is MIT. The data packages contain OpenStreetMap data and are licensed under the ODbL — © OpenStreetMap contributors.
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- MapBundle (>= 0.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.