diff --git a/DataExtractionOSM/src/net/osmand/render/default.render.xml b/DataExtractionOSM/src/net/osmand/render/default.render.xml index 9c5ab8a427..5cd2b3c829 100644 --- a/DataExtractionOSM/src/net/osmand/render/default.render.xml +++ b/DataExtractionOSM/src/net/osmand/render/default.render.xml @@ -1,13 +1,13 @@ @@ -333,8 +333,9 @@ - - + + + @@ -347,17 +348,20 @@ - - - - - - - + + + + + + + + + + - - - + + + @@ -369,6 +373,7 @@ + @@ -376,7 +381,7 @@ - + @@ -384,17 +389,17 @@ - - + + - + - + @@ -416,25 +421,30 @@ + + + + - + - - - + + + - + - + + diff --git a/OsmAnd/res/drawable/h_alpine_hut.png b/OsmAnd/res/drawable/h_alpine_hut.png new file mode 100644 index 0000000000..84b09771b2 Binary files /dev/null and b/OsmAnd/res/drawable/h_alpine_hut.png differ diff --git a/OsmAnd/res/drawable/h_amenity_court.png b/OsmAnd/res/drawable/h_amenity_court.png new file mode 100644 index 0000000000..eed9852d7f Binary files /dev/null and b/OsmAnd/res/drawable/h_amenity_court.png differ diff --git a/OsmAnd/res/drawable/h_bicycle_rental.png b/OsmAnd/res/drawable/h_bicycle_rental.png new file mode 100644 index 0000000000..4bb10e00aa Binary files /dev/null and b/OsmAnd/res/drawable/h_bicycle_rental.png differ diff --git a/OsmAnd/res/drawable/h_biergarten.png b/OsmAnd/res/drawable/h_biergarten.png new file mode 100644 index 0000000000..241a4de1fa Binary files /dev/null and b/OsmAnd/res/drawable/h_biergarten.png differ diff --git a/OsmAnd/res/drawable/h_car_sharing.png b/OsmAnd/res/drawable/h_car_sharing.png new file mode 100644 index 0000000000..1dcc537f6b Binary files /dev/null and b/OsmAnd/res/drawable/h_car_sharing.png differ diff --git a/OsmAnd/res/drawable/h_chalet.png b/OsmAnd/res/drawable/h_chalet.png new file mode 100644 index 0000000000..db5eb31cd1 Binary files /dev/null and b/OsmAnd/res/drawable/h_chalet.png differ diff --git a/OsmAnd/res/drawable/h_drinking_water.png b/OsmAnd/res/drawable/h_drinking_water.png new file mode 100644 index 0000000000..0a4c25a175 Binary files /dev/null and b/OsmAnd/res/drawable/h_drinking_water.png differ diff --git a/OsmAnd/res/drawable/h_emergency_phone.png b/OsmAnd/res/drawable/h_emergency_phone.png new file mode 100644 index 0000000000..0e5d0a26c1 Binary files /dev/null and b/OsmAnd/res/drawable/h_emergency_phone.png differ diff --git a/OsmAnd/res/drawable/h_fire_station.png b/OsmAnd/res/drawable/h_fire_station.png new file mode 100644 index 0000000000..cf24559226 Binary files /dev/null and b/OsmAnd/res/drawable/h_fire_station.png differ diff --git a/OsmAnd/res/drawable/h_florist.png b/OsmAnd/res/drawable/h_florist.png new file mode 100644 index 0000000000..3ed55a5bf9 Binary files /dev/null and b/OsmAnd/res/drawable/h_florist.png differ diff --git a/OsmAnd/res/drawable/h_helipad.png b/OsmAnd/res/drawable/h_helipad.png new file mode 100644 index 0000000000..619513ca00 Binary files /dev/null and b/OsmAnd/res/drawable/h_helipad.png differ diff --git a/OsmAnd/res/drawable/h_highway_ford.png b/OsmAnd/res/drawable/h_highway_ford.png new file mode 100644 index 0000000000..dc1bfc299c Binary files /dev/null and b/OsmAnd/res/drawable/h_highway_ford.png differ diff --git a/OsmAnd/res/drawable/h_information.png b/OsmAnd/res/drawable/h_information.png new file mode 100644 index 0000000000..65d03dbddd Binary files /dev/null and b/OsmAnd/res/drawable/h_information.png differ diff --git a/OsmAnd/res/drawable/h_mini_roundabout.png b/OsmAnd/res/drawable/h_mini_roundabout.png new file mode 100644 index 0000000000..b9a7d2dfc7 Binary files /dev/null and b/OsmAnd/res/drawable/h_mini_roundabout.png differ diff --git a/OsmAnd/res/drawable/h_motel.png b/OsmAnd/res/drawable/h_motel.png new file mode 100644 index 0000000000..56a96e50b7 Binary files /dev/null and b/OsmAnd/res/drawable/h_motel.png differ diff --git a/OsmAnd/res/drawable/h_picnic_site.png b/OsmAnd/res/drawable/h_picnic_site.png new file mode 100644 index 0000000000..0eff097bfb Binary files /dev/null and b/OsmAnd/res/drawable/h_picnic_site.png differ diff --git a/OsmAnd/res/drawable/h_playground.png b/OsmAnd/res/drawable/h_playground.png new file mode 100644 index 0000000000..42db81d157 Binary files /dev/null and b/OsmAnd/res/drawable/h_playground.png differ diff --git a/OsmAnd/res/drawable/h_shop_bicycle.png b/OsmAnd/res/drawable/h_shop_bicycle.png new file mode 100644 index 0000000000..d0b3680f01 Binary files /dev/null and b/OsmAnd/res/drawable/h_shop_bicycle.png differ diff --git a/OsmAnd/res/drawable/h_shop_car.png b/OsmAnd/res/drawable/h_shop_car.png new file mode 100644 index 0000000000..e34715b3f6 Binary files /dev/null and b/OsmAnd/res/drawable/h_shop_car.png differ diff --git a/OsmAnd/res/drawable/h_shop_car_repair.png b/OsmAnd/res/drawable/h_shop_car_repair.png new file mode 100644 index 0000000000..9c38777567 Binary files /dev/null and b/OsmAnd/res/drawable/h_shop_car_repair.png differ diff --git a/OsmAnd/res/drawable/h_slipway.png b/OsmAnd/res/drawable/h_slipway.png new file mode 100644 index 0000000000..45892de3c9 Binary files /dev/null and b/OsmAnd/res/drawable/h_slipway.png differ diff --git a/OsmAnd/res/drawable/h_subway_entrance.png b/OsmAnd/res/drawable/h_subway_entrance.png new file mode 100644 index 0000000000..0902983e7e Binary files /dev/null and b/OsmAnd/res/drawable/h_subway_entrance.png differ diff --git a/OsmAnd/res/drawable/h_viewpoint.png b/OsmAnd/res/drawable/h_viewpoint.png new file mode 100644 index 0000000000..b18660c86a Binary files /dev/null and b/OsmAnd/res/drawable/h_viewpoint.png differ diff --git a/OsmAnd/res/drawable/h_volcano.png b/OsmAnd/res/drawable/h_volcano.png new file mode 100644 index 0000000000..a713ca3a6f Binary files /dev/null and b/OsmAnd/res/drawable/h_volcano.png differ diff --git a/OsmAnd/res/drawable/h_water_tower.png b/OsmAnd/res/drawable/h_water_tower.png new file mode 100644 index 0000000000..5ca78016d7 Binary files /dev/null and b/OsmAnd/res/drawable/h_water_tower.png differ diff --git a/OsmAnd/src/net/osmand/plus/render/RenderingIcons.java b/OsmAnd/src/net/osmand/plus/render/RenderingIcons.java index 3bc61b5df0..ec146fb21f 100644 --- a/OsmAnd/src/net/osmand/plus/render/RenderingIcons.java +++ b/OsmAnd/src/net/osmand/plus/render/RenderingIcons.java @@ -19,31 +19,36 @@ public class RenderingIcons { private static void initIcons() { icons.put("aerodrome", R.drawable.h_aerodrome); //$NON-NLS-1$ icons.put("airport", R.drawable.h_airport); //$NON-NLS-1$ - icons.put("alpinehut", R.drawable.h_alpinehut); //$NON-NLS-1$ + icons.put("alpine_hut", R.drawable.h_alpine_hut); //$NON-NLS-1$ + icons.put("amenity_court", R.drawable.h_amenity_court); //$NON-NLS-1$ icons.put("atm", R.drawable.h_atm); //$NON-NLS-1$ icons.put("bank", R.drawable.h_bank); //$NON-NLS-1$ icons.put("bar", R.drawable.h_bar); //$NON-NLS-1$ icons.put("beach", R.drawable.h_beach); //$NON-NLS-1$ + icons.put("biergarten", R.drawable.h_biergarten); //$NON-NLS-1$ icons.put("bollard", R.drawable.h_bollard); //$NON-NLS-1$ + icons.put("bicycle_rental", R.drawable.h_bicycle_rental); //$NON-NLS-1$ icons.put("bus_station", R.drawable.h_bus_station); //$NON-NLS-1$ icons.put("bus_stop_small", R.drawable.h_bus_stop_small); //$NON-NLS-1$ icons.put("bus_stop", R.drawable.h_bus_stop); //$NON-NLS-1$ icons.put("cable_car", R.drawable.h_cable_car); //$NON-NLS-1$ icons.put("cafe", R.drawable.h_cafe); //$NON-NLS-1$ icons.put("camp_site", R.drawable.h_camp_site); //$NON-NLS-1$ - icons.put("car_share", R.drawable.h_car_share); //$NON-NLS-1$ + icons.put("car_sharing", R.drawable.h_car_sharing); //$NON-NLS-1$ icons.put("caravan_park", R.drawable.h_caravan_park); //$NON-NLS-1$ icons.put("cave_entrance", R.drawable.h_cave_entrance); //$NON-NLS-1$ icons.put("chair_lift", R.drawable.h_chair_lift); //$NON-NLS-1$ + icons.put("chalet", R.drawable.h_chalet); //$NON-NLS-1$ icons.put("cinema", R.drawable.h_cinema); //$NON-NLS-1$ icons.put("cliff", R.drawable.h_cliff); //$NON-NLS-1$ icons.put("cliff2", R.drawable.h_cliff2); //$NON-NLS-1$ icons.put("danger", R.drawable.h_danger); //$NON-NLS-1$ icons.put("department_store", R.drawable.h_department_store); //$NON-NLS-1$ + icons.put("drinking_water", R.drawable.h_drinking_water); //$NON-NLS-1$ icons.put("embassy", R.drawable.h_embassy); //$NON-NLS-1$ + icons.put("emergency_phone", R.drawable.h_emergency_phone); //$NON-NLS-1$ icons.put("fast_food", R.drawable.h_fast_food); //$NON-NLS-1$ - icons.put("firestation", R.drawable.h_firestation); //$NON-NLS-1$ - icons.put("food_drinkingtap", R.drawable.h_food_drinkingtap); //$NON-NLS-1$ + icons.put("fire_station", R.drawable.h_fire_station); //$NON-NLS-1$ icons.put("forest", R.drawable.h_forest); //$NON-NLS-1$ icons.put("fuel", R.drawable.h_fuel); //$NON-NLS-1$ icons.put("gate2", R.drawable.h_gate2); //$NON-NLS-1$ @@ -53,10 +58,13 @@ public class RenderingIcons { icons.put("glacier", R.drawable.h_glacier); //$NON-NLS-1$ icons.put("grave_yard", R.drawable.h_grave_yard); //$NON-NLS-1$ icons.put("guest_house", R.drawable.h_guest_house); //$NON-NLS-1$ + icons.put("florist", R.drawable.h_florist); //$NON-NLS-1$ icons.put("halt", R.drawable.h_halt); //$NON-NLS-1$ + icons.put("helipad", R.drawable.h_helipad); //$NON-NLS-1$ icons.put("hospital", R.drawable.h_hospital); //$NON-NLS-1$ icons.put("hostel", R.drawable.h_hostel); //$NON-NLS-1$ icons.put("hotel", R.drawable.h_hotel); //$NON-NLS-1$ + icons.put("information", R.drawable.h_information); //$NON-NLS-1$ icons.put("level_crossing", R.drawable.h_level_crossing); //$NON-NLS-1$ icons.put("level_crossing2", R.drawable.h_level_crossing2); //$NON-NLS-1$ icons.put("library", R.drawable.h_library); //$NON-NLS-1$ @@ -66,7 +74,8 @@ public class RenderingIcons { icons.put("marsh", R.drawable.h_marsh); //$NON-NLS-1$ icons.put("mast", R.drawable.h_mast); //$NON-NLS-1$ icons.put("memorial", R.drawable.h_memorial); //$NON-NLS-1$ - icons.put("mini_round", R.drawable.h_mini_round); //$NON-NLS-1$ + icons.put("motel", R.drawable.h_motel); //$NON-NLS-1$ + icons.put("mini_roundabout", R.drawable.h_mini_roundabout); //$NON-NLS-1$ icons.put("mud", R.drawable.h_mud); //$NON-NLS-1$ icons.put("museum", R.drawable.h_museum); //$NON-NLS-1$ icons.put("nr", R.drawable.h_nr); //$NON-NLS-1$ @@ -74,7 +83,9 @@ public class RenderingIcons { icons.put("parking", R.drawable.h_parking); //$NON-NLS-1$ icons.put("peak", R.drawable.h_peak); //$NON-NLS-1$ icons.put("pharmacy", R.drawable.h_pharmacy); //$NON-NLS-1$ + icons.put("picnic_site", R.drawable.h_picnic_site); //$NON-NLS-1$ icons.put("place_of_worship", R.drawable.h_place_of_worship); //$NON-NLS-1$ + icons.put("playground", R.drawable.h_playground); //$NON-NLS-1$ icons.put("police", R.drawable.h_police); //$NON-NLS-1$ icons.put("postbox", R.drawable.h_postbox); //$NON-NLS-1$ icons.put("postoffice", R.drawable.h_postoffice); //$NON-NLS-1$ @@ -84,7 +95,6 @@ public class RenderingIcons { icons.put("pub", R.drawable.h_pub); //$NON-NLS-1$ icons.put("quarry2", R.drawable.h_quarry2); //$NON-NLS-1$ icons.put("recycling", R.drawable.h_recycling); //$NON-NLS-1$ - icons.put("rental_bicycle", R.drawable.h_rental_bicycle); //$NON-NLS-1$ icons.put("restaurant", R.drawable.h_restaurant); //$NON-NLS-1$ icons.put("school", R.drawable.h_school); //$NON-NLS-1$ icons.put("scrub", R.drawable.h_scrub); //$NON-NLS-1$ @@ -94,22 +104,27 @@ public class RenderingIcons { icons.put("shop_clothes", R.drawable.h_shop_clothes); //$NON-NLS-1$ icons.put("shop_convenience", R.drawable.h_shop_convenience); //$NON-NLS-1$ icons.put("shop_diy", R.drawable.h_shop_diy); //$NON-NLS-1$ + icons.put("shop_bicycle", R.drawable.h_shop_bicycle); //$NON-NLS-1$ + icons.put("shop_car", R.drawable.h_shop_car); //$NON-NLS-1$ + icons.put("shop_car_repair", R.drawable.h_shop_car_repair); //$NON-NLS-1$ icons.put("shop_hairdresser", R.drawable.h_shop_hairdresser); //$NON-NLS-1$ icons.put("shop_supermarket", R.drawable.h_shop_supermarket); //$NON-NLS-1$ - icons.put("sosphone", R.drawable.h_sosphone); //$NON-NLS-1$ + icons.put("slipway", R.drawable.h_slipway); //$NON-NLS-1$ icons.put("spring", R.drawable.h_spring); //$NON-NLS-1$ icons.put("station_small", R.drawable.h_station_small); //$NON-NLS-1$ icons.put("station", R.drawable.h_station); //$NON-NLS-1$ + icons.put("subway_entrance", R.drawable.h_subway_entrance); //$NON-NLS-1$ icons.put("telephone", R.drawable.h_telephone); //$NON-NLS-1$ icons.put("theatre", R.drawable.h_theatre); //$NON-NLS-1$ icons.put("toilets", R.drawable.h_toilets); //$NON-NLS-1$ - icons.put("tower_water", R.drawable.h_tower_water); //$NON-NLS-1$ icons.put("traffic_light", R.drawable.h_traffic_light); //$NON-NLS-1$ - icons.put("transport_ford", R.drawable.h_transport_ford); //$NON-NLS-1$ + icons.put("highway_ford", R.drawable.h_highway_ford); //$NON-NLS-1$ icons.put("tree", R.drawable.h_tree); //$NON-NLS-1$ icons.put("tree2", R.drawable.h_tree2); //$NON-NLS-1$ - icons.put("view_point", R.drawable.h_view_point); //$NON-NLS-1$ + icons.put("viewpoint", R.drawable.h_viewpoint); //$NON-NLS-1$ icons.put("vineyard", R.drawable.h_vineyard); //$NON-NLS-1$ + icons.put("volcano", R.drawable.h_volcano); //$NON-NLS-1$ + icons.put("water_tower", R.drawable.h_water_tower); //$NON-NLS-1$ icons.put("windmill", R.drawable.h_windmill); //$NON-NLS-1$ icons.put("zoo", R.drawable.h_zoo); //$NON-NLS-1$ diff --git a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java index 42f084c1e5..8352fd910a 100644 --- a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java @@ -166,8 +166,14 @@ public class POIMapLayer implements OsmandMapLayer, ContextMenuLayer.IContextMen int y = view.getMapYForPoint(o.getLocation().getLatitude()); canvas.drawCircle(x, y, r, pointAltUI); canvas.drawCircle(x, y, r, point); + String id = null; if(icons.containsKey(o.getSubType())){ - int resId = icons.get(o.getSubType()); + id = o.getSubType(); + } else if (icons.containsKey(o.getType().getDefaultTag() + "_" + o.getSubType())) { + id = o.getType().getDefaultTag() + "_" + o.getSubType(); + } + if(id != null){ + int resId = icons.get(id); Bitmap bmp = getCachedImg(resId); if(bmp != null){ canvas.drawBitmap(bmp, x - bmp.getWidth() / 2, y - bmp.getHeight() / 2, paintIcon);