From a377a015d43a1c576b096177c3e4f92de34f1d73 Mon Sep 17 00:00:00 2001 From: SomeoneElseOSM Date: Mon, 21 Mar 2022 22:39:40 +0000 Subject: [PATCH 1/2] Update README.md Fix "planetilerler" typo on "java" line. Nudge non-Java people into adding methods inside their new class, not outside it. --- planetiler-examples/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/planetiler-examples/README.md b/planetiler-examples/README.md index 59bf0dd696..78d7c7e7b9 100644 --- a/planetiler-examples/README.md +++ b/planetiler-examples/README.md @@ -56,7 +56,8 @@ public class MyProfile implements Profile { } ``` -Then, implement the `processFeature()` method that determines what vector tile features to emit for each source feature. +Then, implement the `processFeature()` method in your class (add the code before the last closing curly bracket) +that determines what vector tile features to emit for each source feature. For example, to include a map of [toilets from OpenStreetMap](https://wiki.openstreetmap.org/wiki/Tag:amenity=toilets) at zoom level 12 and above: @@ -98,7 +99,7 @@ mvn clean package --file standalone.pom.xml And run the application: ```bash -java -cp target/*-with-deps.jar com.onthegomap.planetilerler.examples.MyProfile +java -cp target/*-with-deps.jar com.onthegomap.planetiler.examples.MyProfile ``` Then, to inspect the tiles: From 52a5ec4b7fde689b46f449886a0c631759dedb9a Mon Sep 17 00:00:00 2001 From: SomeoneElseOSM Date: Tue, 22 Mar 2022 00:12:45 +0000 Subject: [PATCH 2/2] Update README.md Removed space at end of line 59 --- planetiler-examples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planetiler-examples/README.md b/planetiler-examples/README.md index 78d7c7e7b9..86e60b57cc 100644 --- a/planetiler-examples/README.md +++ b/planetiler-examples/README.md @@ -56,7 +56,7 @@ public class MyProfile implements Profile { } ``` -Then, implement the `processFeature()` method in your class (add the code before the last closing curly bracket) +Then, implement the `processFeature()` method in your class (add the code before the last closing curly bracket) that determines what vector tile features to emit for each source feature. For example, to include a map of [toilets from OpenStreetMap](https://wiki.openstreetmap.org/wiki/Tag:amenity=toilets) at zoom level 12 and above: