Mapsforge: add unread POI tags, fixes #33

This commit is contained in:
Emux 2016-06-23 09:43:19 +03:00
parent 1bfd76c3da
commit bb8dd4db7c

View File

@ -1,6 +1,7 @@
/* /*
* Copyright 2010, 2011, 2012 mapsforge.org * Copyright 2010, 2011, 2012 mapsforge.org
* Copyright 2013, 2014 Hannes Janetzek * Copyright 2013, 2014 Hannes Janetzek
* Copyright 2016 devemux86
* *
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org). * This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
* *
@ -545,17 +546,14 @@ public class MapDatabase implements ITileDataSource {
/* check if the POI has a house number */ /* check if the POI has a house number */
if ((featureByte & POI_FEATURE_HOUSE_NUMBER) != 0) { if ((featureByte & POI_FEATURE_HOUSE_NUMBER) != 0) {
// mReadBuffer.getPositionAndSkip(); String str = mReadBuffer.readUTF8EncodedString();
// String str = e.tags.add(new Tag(Tag.KEY_HOUSE_NUMBER, str, false));
mReadBuffer.readUTF8EncodedString();
} }
/* check if the POI has an elevation */ /* check if the POI has an elevation */
if ((featureByte & POI_FEATURE_ELEVATION) != 0) { if ((featureByte & POI_FEATURE_ELEVATION) != 0) {
mReadBuffer.readSignedInt(); String str = Integer.toString(mReadBuffer.readSignedInt());
// mReadBuffer.getPositionAndSkip();// tags.add(new e.tags.add(new Tag(Tag.KEY_ELE, str, false));
// Tag(Tag.TAG_KEY_ELE,
// Integer.toString(mReadBuffer.readSignedInt())));
} }
mTileProjection.projectPoint(latitude, longitude, e); mTileProjection.projectPoint(latitude, longitude, e);