remove unused MapElement.priority

This commit is contained in:
Hannes Janetzek 2014-02-20 03:49:33 +01:00
parent 48fa5d5434
commit 5c2eaf961f
3 changed files with 3 additions and 11 deletions

View File

@ -197,7 +197,6 @@ public class OSciMap2TileSource extends UrlTileSource {
} }
mElem.layer = 5; mElem.layer = 5;
mElem.priority = 0;
//mElem.height = 0; //mElem.height = 0;
//mElem.minHeight = 0; //mElem.minHeight = 0;
@ -252,7 +251,8 @@ public class OSciMap2TileSource extends UrlTileSource {
break; break;
case TAG_ELEM_PRIORITY: case TAG_ELEM_PRIORITY:
mElem.priority = decodeVarint32(); //mElem.priority =
decodeVarint32();
break; break;
default: default:

View File

@ -16,10 +16,6 @@
*/ */
package org.oscim.core; package org.oscim.core;
// TODO
// - make this class (and description) more generic or
// move it to tilesource package
/** /**
* The MapElement class is a reusable containter for a geometry * The MapElement class is a reusable containter for a geometry
* with tags. * with tags.
@ -30,12 +26,9 @@ package org.oscim.core;
*/ */
public class MapElement extends GeometryBuffer { public class MapElement extends GeometryBuffer {
/** OSM layer of the way */ /** layer of the element (0-10) overrides the theme drawing order */
public int layer; public int layer;
/** priority for labeling */
public int priority;
public final TagSet tags = new TagSet(); public final TagSet tags = new TagSet();
public MapElement() { public MapElement() {

View File

@ -264,7 +264,6 @@ public class TileDecoder extends PbfDecoder {
} }
mElem.layer = 5; mElem.layer = 5;
mElem.priority = 0;
while (position() < end) { while (position() < end) {
// read tag and wire type // read tag and wire type