fix issue 235, 215
git-svn-id: https://osmand.googlecode.com/svn/trunk@753 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
7764d68099
commit
642d445a14
1 changed files with 7 additions and 2 deletions
|
@ -21,8 +21,6 @@ public class Amenity extends MapObject {
|
|||
|
||||
public Amenity(Entity entity, AmenityType type, String subtype){
|
||||
super(entity);
|
||||
// manipulate with id to distinguish way and nodes
|
||||
this.id = entity.getId() << 1 + ((entity instanceof Node)? 0 : 1);
|
||||
this.type = type;
|
||||
this.subType = subtype;
|
||||
this.openingHours = entity.getTag(OSMTagKey.OPENING_HOURS);
|
||||
|
@ -50,6 +48,13 @@ public class Amenity extends MapObject {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setEntity(Entity e) {
|
||||
super.setEntity(e);
|
||||
// manipulate with id to distinguish way and nodes
|
||||
this.id = (e.getId() << 1) + ((e instanceof Node)? 0 : 1);
|
||||
}
|
||||
|
||||
public Amenity(){
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue