diff --git a/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java b/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java index 185cab9e28..61a2a00de3 100644 --- a/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java +++ b/OsmAnd-java/src/net/osmand/osm/MapPoiTypes.java @@ -388,6 +388,9 @@ public class MapPoiTypes { } allTypes.put(tp.getKeyName(), tp); lastCategory.addPoiType(tp); + if("true".equals(parser.getAttributeValue("", "basemap"))) { + lastCategory.addBasemapPoi(tp); + } return tp; } diff --git a/OsmAnd-java/src/net/osmand/osm/PoiCategory.java b/OsmAnd-java/src/net/osmand/osm/PoiCategory.java index 76642e8d34..33c1ff89fa 100644 --- a/OsmAnd-java/src/net/osmand/osm/PoiCategory.java +++ b/OsmAnd-java/src/net/osmand/osm/PoiCategory.java @@ -1,14 +1,17 @@ package net.osmand.osm; import java.util.ArrayList; +import java.util.HashSet; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; +import java.util.Set; public class PoiCategory extends PoiFilter { private List poiFilters = new ArrayList(); + private Set basemapPoi = null; private int regId; private String defaultTag; @@ -54,5 +57,17 @@ public class PoiCategory extends PoiFilter { } + public void addBasemapPoi(PoiType pt) { + if(basemapPoi == null) { + basemapPoi = new HashSet(); + } + basemapPoi.add(pt); + } + public boolean containsBasemapPoi(PoiType pt) { + if(basemapPoi == null) { + return false; + } + return basemapPoi.contains(pt); + } }