From 7c32c7ca5f71a25d97951521f00315496f92afb9 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 7 Nov 2010 09:49:00 +0000 Subject: [PATCH] fix issue 114 git-svn-id: https://osmand.googlecode.com/svn/trunk@644 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8 --- .../src/net/osmand/osm/MapRenderingTypes.java | 3 +++ OsmAnd/src/net/osmand/render/PolygonRenderer.java | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/DataExtractionOSM/src/net/osmand/osm/MapRenderingTypes.java b/DataExtractionOSM/src/net/osmand/osm/MapRenderingTypes.java index ecee0cbaeb..cf91f675e8 100644 --- a/DataExtractionOSM/src/net/osmand/osm/MapRenderingTypes.java +++ b/DataExtractionOSM/src/net/osmand/osm/MapRenderingTypes.java @@ -1068,6 +1068,7 @@ public class MapRenderingTypes { register(st, "leisure", "slipway", LEISURE, 9, POLYGON_TYPE, POINT_TYPE); //$NON-NLS-1$ //$NON-NLS-2$ register(st, "leisure", "fishing", LEISURE, 10, POLYGON_TYPE, POINT_TYPE); //$NON-NLS-1$ //$NON-NLS-2$ register(st, 9, "leisure", "nature_reserve", LEISURE, 11, POLYGON_TYPE, POINT_TYPE); //$NON-NLS-1$ //$NON-NLS-2$ + register(st, 13, "natural", "park", LEISURE, 12, POLYGON_TYPE, POINT_TYPE); //$NON-NLS-1$ //$NON-NLS-2$ register(st, 13, "leisure", "park", LEISURE, 12, POLYGON_TYPE, POINT_TYPE); //$NON-NLS-1$ //$NON-NLS-2$ register(st, 13, "leisure", "recreation_ground", LEISURE, 12, POLYGON_TYPE, POINT_TYPE); //$NON-NLS-1$ //$NON-NLS-2$ register(st, "leisure", "playground", LEISURE, 13, POLYGON_TYPE, POINT_TYPE); //$NON-NLS-1$ //$NON-NLS-2$ @@ -1242,6 +1243,8 @@ public class MapRenderingTypes { register(st, 11, "landuse", "salt_pond", LANDUSE, 25, POLYGON_TYPE, POINT_TYPE); //$NON-NLS-1$ //$NON-NLS-2$ register(st, 11, "landuse", "quarry", LANDUSE, 26, POLYGON_TYPE, POINT_TYPE); //$NON-NLS-1$ //$NON-NLS-2$ register(st, 11, "landuse", "vineyard", LANDUSE, 27, POLYGON_TYPE); //$NON-NLS-1$ //$NON-NLS-2$ + register(st, 11, "landuse", "field", LANDUSE, 28, POLYGON_TYPE); //$NON-NLS-1$ //$NON-NLS-2$ + register(st, 11, "natural", "field", LANDUSE, 28, POLYGON_TYPE); //$NON-NLS-1$ //$NON-NLS-2$ // 16. military register(st, "military", "airfield", MILITARY, 1, POLYGON_WITH_CENTER_TYPE, POINT_TYPE); //$NON-NLS-1$ //$NON-NLS-2$ diff --git a/OsmAnd/src/net/osmand/render/PolygonRenderer.java b/OsmAnd/src/net/osmand/render/PolygonRenderer.java index 20602ff190..f18352000e 100644 --- a/OsmAnd/src/net/osmand/render/PolygonRenderer.java +++ b/OsmAnd/src/net/osmand/render/PolygonRenderer.java @@ -224,6 +224,14 @@ public class PolygonRenderer { rc.main.shader = o.getShader(R.drawable.h_vineyard); } break; + case 28: + rc.main.fillArea = zoom >= 11; + rc.main.color = 0x30666600; + if(zoom >= 14){ + rc.second.strokeWidth= 1; + rc.second.color = 0x60666600; + } + break; } } else if (type == MapRenderingTypes.MILITARY) { if(subtype == 3){