From 45d84db3622c304c2ed526b5a0f58c7b84e7ea57 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 7 May 2019 17:54:25 +0200 Subject: [PATCH] adjusted the categoryIDs again --- .../java/hhn/labsw/bugageocaching/controller/Controller.java | 4 ++-- src/main/java/hhn/labsw/bugageocaching/helper/POI.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/hhn/labsw/bugageocaching/controller/Controller.java b/src/main/java/hhn/labsw/bugageocaching/controller/Controller.java index c695628..ae972b2 100644 --- a/src/main/java/hhn/labsw/bugageocaching/controller/Controller.java +++ b/src/main/java/hhn/labsw/bugageocaching/controller/Controller.java @@ -1002,7 +1002,7 @@ public class Controller { ArrayList poisList = new ArrayList<>(); for (Cache cache : cacheRepository.findAll()) { Station station = cache.getStationen().get(0); - POI poi = new POI(cache.getName() + "_Station1", (float) station.getLattitude(), (float) station.getLongitude(), 201); + POI poi = new POI(cache.getName() + "_Station1", (float) station.getLattitude(), (float) station.getLongitude(), 202); poisList.add(poi); } @@ -1015,7 +1015,7 @@ public class Controller { Station station = cache.getStationen().get(i); int categoryID; if (i < cache.getStationen().size() - 1) { // isnt endstation - categoryID = 202; + categoryID = 201; } else { // is endstation categoryID = 203; } diff --git a/src/main/java/hhn/labsw/bugageocaching/helper/POI.java b/src/main/java/hhn/labsw/bugageocaching/helper/POI.java index 0e88c13..84631ac 100644 --- a/src/main/java/hhn/labsw/bugageocaching/helper/POI.java +++ b/src/main/java/hhn/labsw/bugageocaching/helper/POI.java @@ -5,7 +5,7 @@ public class POI { private String Name; private float Latitude; private float Longitude; - private int CategoryID; // 201 = grünes icon(startstation) // 202 = blaues icon(folgestationen) // 203 = rotes icon(endstation) + private int CategoryID; // 202 = grünes icon(startstation) // 201 = blaues icon(folgestationen) // 203 = rotes icon(endstation) public POI(String name, float latitude, float longitude, int categoryID) { Name = name;