mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-07 15:36:20 +00:00
Updated MapsforgeWrapper
This commit is contained in:
parent
da2d7c4e0a
commit
ff4e446c03
3 changed files with 7 additions and 11 deletions
|
|
@ -28,11 +28,12 @@ namespace MapsforgeWrapper
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var multiMapDataStore = new MultiMapDataStore(MultiMapDataStore.DataPolicy.DEDUPLICATE);
|
var multiMapDataStore = new MultiMapDataStore(MultiMapDataStore.DataPolicy.DEDUPLICATE);
|
||||||
|
dataStore = multiMapDataStore;
|
||||||
|
|
||||||
foreach (var file in Directory.EnumerateFiles(mapFilePath, "*.map"))
|
foreach (var file in Directory.EnumerateFiles(mapFilePath, "*.map"))
|
||||||
{
|
{
|
||||||
multiMapDataStore.addMapDataStore(new MapFile(file), false, false);
|
multiMapDataStore.addMapDataStore(new MapFile(file), false, false);
|
||||||
}
|
}
|
||||||
dataStore = multiMapDataStore;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,6 @@
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
|
||||||
<groupId>com.github.mapsforge.mapsforge</groupId>
|
|
||||||
<artifactId>mapsforge-core</artifactId>
|
|
||||||
<version>0.27.0</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.mapsforge.mapsforge</groupId>
|
<groupId>com.github.mapsforge.mapsforge</groupId>
|
||||||
<artifactId>mapsforge-map-awt</artifactId>
|
<artifactId>mapsforge-map-awt</artifactId>
|
||||||
|
|
|
||||||
|
|
@ -29,12 +29,12 @@ map.MapLayer = new MapTileLayer
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Apparently, IKVM's `MavenReference` does not work with other Maven repositories than Maven Central.
|
Building MapsforgeWrapper with IKVM's `MavenReference` fails - apparently because a dependency
|
||||||
Mapsforge however, is hosted by JitPack. So the currently only working way to utilize Mapsforge is
|
on the XML Pull Parser library could not properly be resolved. So the currently only working way
|
||||||
by creating a local JAR file with all dependencies required by `TileRenderer` and reference it via
|
to use Mapsforge is by creating a local JAR file with all dependencies required by MapsforgeWrapper
|
||||||
`IkvmReference`.
|
and reference it via `IkvmReference`.
|
||||||
|
|
||||||
This means that you need [Maven](https://maven.apache.org/) to build the MapsforgeWrapper library.
|
This means that [Maven](https://maven.apache.org/) is needed to build the MapsforgeWrapper library.
|
||||||
There is a custom `PreBuild` event in `MapsforgeWrapper.csproj` which executes the command
|
There is a custom `PreBuild` event in `MapsforgeWrapper.csproj` which executes the command
|
||||||
```
|
```
|
||||||
mvn package
|
mvn package
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue