fix issue 147
git-svn-id: https://osmand.googlecode.com/svn/trunk@645 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
7c32c7ca5f
commit
9bff7b51ce
1 changed files with 9 additions and 3 deletions
|
@ -252,9 +252,15 @@ public class MapRenderingTypes {
|
|||
boolean polygon = multipolygon;
|
||||
if (!point && !polygon) {
|
||||
// determining area or path
|
||||
List<Long> ids = ((Way) e).getNodeIds();
|
||||
if (ids.size() > 1) {
|
||||
polygon = ((long) ids.get(0) == (long)ids.get(ids.size() - 1));
|
||||
boolean area = "yes".equals(e.getTag("area"));
|
||||
boolean highway = e.getTag("highway") != null;
|
||||
if(highway && !area){
|
||||
// skip the check for first and last point
|
||||
} else {
|
||||
List<Long> ids = ((Way) e).getNodeIds();
|
||||
if (ids.size() > 1) {
|
||||
polygon = ((long) ids.get(0) == (long) ids.get(ids.size() - 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue