kopia lustrzana https://github.com/onthegomap/planetiler
Add instructions for using Planetiler with gradle (#274)
rodzic
df6c803ad6
commit
e2f7cc2bfa
33
README.md
33
README.md
|
@ -190,6 +190,39 @@ download regularly-updated tilesets.
|
|||
finished ([boundary layer example](https://github.com/onthegomap/planetiler/blob/9e9cf7c413027ffb3ab5c7436d11418935ae3f6a/planetiler-basemap/src/main/java/com/onthegomap/planetiler/basemap/layers/Boundary.java#L294))
|
||||
- Planetiler only does full imports from `.osm.pbf` snapshots, there is no way to incorporate real-time updates.
|
||||
|
||||
## Use as a library
|
||||
|
||||
Planetiler can be used as a maven-style dependency in a Java project using the settings below:
|
||||
|
||||
### Maven
|
||||
|
||||
Add this dependency to your java project:
|
||||
|
||||
```xml
|
||||
<dependency>
|
||||
<groupId>com.onthegomap.planetiler</groupId>
|
||||
<artifactId>planetiler-core</artifactId>
|
||||
<version>0.5.0</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
### Gradle
|
||||
|
||||
Set up your repositories block as follows:
|
||||
|
||||
```groovy
|
||||
mavenCentral()
|
||||
maven {
|
||||
url "https://repo.osgeo.org/repository/release/"
|
||||
}
|
||||
```
|
||||
|
||||
Set up your dependencies block as follows:
|
||||
|
||||
```groovy
|
||||
implementation 'com.onthegomap.planetiler:planetiler-core:<version>'
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull requests are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for details.
|
||||
|
|
Ładowanie…
Reference in New Issue