Update README.md

This commit is contained in:
ClemensFischer 2026-02-16 10:18:19 +01:00
parent b01c68bbc6
commit d7e359af41

View file

@ -2,9 +2,9 @@
Tile source libraries for loading map content from vector map files. Tile source libraries for loading map content from vector map files.
The `MapsforgeTileSource` classes in these libraries make use of a `TileRenderer` class in a separate platform-independent The `MapsforgeTileSource` classes in these libraries make use of a `TileRenderer` class that wraps the
.NET class library called MapsforgeWrapper. `TileRenderer` uses the [Mapsforge](https://github.com/mapsforge/mapsforge) [Mapsforge](https://github.com/mapsforge/mapsforge) Java library, which is made accessible to .NET via
Java library, which is made accessible to .NET via [IKVM](https://github.com/ikvmnet/ikvm), a Java Virtual Machine for .NET. [IKVM](https://github.com/ikvmnet/ikvm), a Java Virtual Machine for .NET.
[Mapsforge](https://github.com/mapsforge/mapsforge) is published under a simplified variant of the [Mapsforge](https://github.com/mapsforge/mapsforge) is published under a simplified variant of the
[LGPL v3 license](https://www.gnu.org/licenses/lgpl-3.0). [LGPL v3 license](https://www.gnu.org/licenses/lgpl-3.0).
@ -29,15 +29,15 @@ map.MapLayer = new MapTileLayer
--- ---
While building MapsforgeWrapper with IKVM's `MavenReference` succeeds, running a `RenderThemeFuture` While building with IKVM's `MavenReference` succeeds, running a `RenderThemeFuture`
always fails with a `NoClassDefFoundError` exception for `org.xmlpull.v1.XmlPullParserFactory`. always fails with a `NoClassDefFoundError` exception for `org.xmlpull.v1.XmlPullParserFactory`.
An alternative approach is to import Mapsforge classes by an `IkvmReference` that references An alternative approach is to import Mapsforge classes by an `IkvmReference` that references a
a local JAR file with all required dependencies. This JAR is built from `pom.xml` in the project local JAR file with all required dependencies. This JAR is built from `pom.xml` in the MapsforgeTiles
directory, by a custom `PreBuild` event in `MapsforgeWrapper.csproj` which executes the command directory, by a custom PreBuild event in the project files which executes the command
``` ```
mvn package mvn package
``` ```
So in order to build one of the MapsforgeTiles libraries, a [Maven](https://maven.apache.org/) So in order to build the MapsforgeTiles libraries, a [Maven](https://maven.apache.org/)
installation is required. installation is required.