fix issue 147

git-svn-id: https://osmand.googlecode.com/svn/trunk@645 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-11-07 09:53:31 +00:00
parent 7c32c7ca5f
commit 9bff7b51ce

View file

@ -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));
}
}
}