diff --git a/map/bookmark_helpers.cpp b/map/bookmark_helpers.cpp index 9dc39e6094..b95e8c08ac 100644 --- a/map/bookmark_helpers.cpp +++ b/map/bookmark_helpers.cpp @@ -28,453 +28,461 @@ namespace { std::map const kFeatureTypeToBookmarkIcon = { - {"amenity-bbq", kml::BookmarkIcon::Food}, - {"tourism-picnic_site", kml::BookmarkIcon::Food}, - {"leisure-picnic_table", kml::BookmarkIcon::Food}, - {"amenity-cafe", kml::BookmarkIcon::Food}, - {"amenity-restaurant", kml::BookmarkIcon::Food}, - {"amenity-fast_food", kml::BookmarkIcon::Food}, - {"amenity-food_court", kml::BookmarkIcon::Food}, - - {"amenity-bar", kml::BookmarkIcon::Bar}, - {"amenity-pub", kml::BookmarkIcon::Bar}, - {"amenity-biergarten", kml::BookmarkIcon::Bar}, - - {"waterway-waterfall", kml::BookmarkIcon::Sights}, - {"historic-tomb", kml::BookmarkIcon::Sights}, - {"historic-boundary_stone", kml::BookmarkIcon::Sights}, - {"historic-ship", kml::BookmarkIcon::Sights}, - {"historic-archaeological_site", kml::BookmarkIcon::Sights}, - {"historic-monument", kml::BookmarkIcon::Sights}, - {"historic-memorial", kml::BookmarkIcon::Sights}, - {"amenity-place_of_worship", kml::BookmarkIcon::Sights}, - {"tourism-attraction", kml::BookmarkIcon::Sights}, - {"tourism-theme_park", kml::BookmarkIcon::Sights}, - {"historic-fort", kml::BookmarkIcon::Sights}, - {"historic-castle", kml::BookmarkIcon::Sights}, - {"tourism-artwork", kml::BookmarkIcon::Sights}, - {"historic-ruins", kml::BookmarkIcon::Sights}, - {"historic-wayside_shrine", kml::BookmarkIcon::Sights}, - {"historic-wayside_cross", kml::BookmarkIcon::Sights}, - - {"tourism-viewpoint", kml::BookmarkIcon::Viewpoint}, - - {"tourism-gallery", kml::BookmarkIcon::Museum}, - {"tourism-museum", kml::BookmarkIcon::Museum}, - {"amenity-arts_centre", kml::BookmarkIcon::Museum}, - - {"leisure-playground", kml::BookmarkIcon::Entertainment}, - {"leisure-water_park", kml::BookmarkIcon::Entertainment}, - {"amenity-casino", kml::BookmarkIcon::Entertainment}, - {"amenity-nightclub", kml::BookmarkIcon::Entertainment}, - {"amenity-cinema", kml::BookmarkIcon::Entertainment}, - {"amenity-theatre", kml::BookmarkIcon::Entertainment}, - - {"sport", kml::BookmarkIcon::Sport}, - {"sport-multi", kml::BookmarkIcon::Sport}, - {"sport-archery", kml::BookmarkIcon::Sport}, - {"sport-shooting", kml::BookmarkIcon::Sport}, - {"sport-australian_football", kml::BookmarkIcon::Sport}, - {"sport-bowls", kml::BookmarkIcon::Sport}, - {"sport-curling", kml::BookmarkIcon::Sport}, - {"sport-cricket", kml::BookmarkIcon::Sport}, - {"sport-baseball", kml::BookmarkIcon::Sport}, - {"sport-basketball", kml::BookmarkIcon::Sport}, - {"sport-american_football", kml::BookmarkIcon::Sport}, - {"sport-athletics", kml::BookmarkIcon::Sport}, - {"sport-golf", kml::BookmarkIcon::Sport}, - {"sport-gymnastics", kml::BookmarkIcon::Sport}, - {"sport-tennis", kml::BookmarkIcon::Sport}, - {"sport-skiing", kml::BookmarkIcon::Sport}, - {"sport-soccer", kml::BookmarkIcon::Sport}, - {"leisure-stadium", kml::BookmarkIcon::Sport}, - {"leisure-skiing", kml::BookmarkIcon::Sport}, - {"leisure-fitness_centre", kml::BookmarkIcon::Sport}, - {"olympics-stadium_main", kml::BookmarkIcon::Sport}, - {"olympics-stadium", kml::BookmarkIcon::Sport}, - {"olympics-bike_sport", kml::BookmarkIcon::Sport}, - {"leisure-sports_centre-climbing", kml::BookmarkIcon::Sport}, - {"leisure-sports_centre-shooting", kml::BookmarkIcon::Sport}, - {"leisure-sports_centre-yoga", kml::BookmarkIcon::Sport}, - - {"boundary-national_park", kml::BookmarkIcon::Park}, - {"leisure-nature_reserve", kml::BookmarkIcon::Park}, - {"landuse-forest", kml::BookmarkIcon::Park}, - - {"natural-beach", kml::BookmarkIcon::Swim}, - {"sport-diving", kml::BookmarkIcon::Swim}, - {"sport-scuba_diving", kml::BookmarkIcon::Swim}, - {"sport-swimming", kml::BookmarkIcon::Swim}, - {"leisure-swimming_pool", kml::BookmarkIcon::Swim}, - {"leisure-sports_centre-swimming", kml::BookmarkIcon::Swim}, - {"olympics-water_sport", kml::BookmarkIcon::Swim}, - - {"natural-cave_entrance", kml::BookmarkIcon::Mountain}, - {"natural-peak", kml::BookmarkIcon::Mountain}, - {"natural-volcano", kml::BookmarkIcon::Mountain}, - {"natural-rock", kml::BookmarkIcon::Mountain}, - {"natural-bare_rock", kml::BookmarkIcon::Mountain}, - {"amenity-veterinary", kml::BookmarkIcon::Animals}, {"leisure-dog_park", kml::BookmarkIcon::Animals}, {"tourism-zoo", kml::BookmarkIcon::Animals}, - {"tourism-apartment", kml::BookmarkIcon::Hotel}, - {"tourism-chalet", kml::BookmarkIcon::Hotel}, - {"tourism-guest_house", kml::BookmarkIcon::Hotel}, - {"tourism-alpine_hut", kml::BookmarkIcon::Hotel}, - {"tourism-wilderness_hut", kml::BookmarkIcon::Hotel}, - {"tourism-hostel", kml::BookmarkIcon::Hotel}, - {"tourism-motel", kml::BookmarkIcon::Hotel}, - {"tourism-resort", kml::BookmarkIcon::Hotel}, - {"tourism-hotel", kml::BookmarkIcon::Hotel}, - {"sponsored-booking", kml::BookmarkIcon::Hotel}, + {"amenity-bar", kml::BookmarkIcon::Bar}, + {"amenity-biergarten", kml::BookmarkIcon::Bar}, + {"amenity-pub", kml::BookmarkIcon::Bar}, + + {"amenity-place_of_worship-buddhist", kml::BookmarkIcon::Buddhism}, - {"amenity-kindergarten", kml::BookmarkIcon::Building}, - {"amenity-school", kml::BookmarkIcon::Building}, - {"office", kml::BookmarkIcon::Building}, - {"amenity-library", kml::BookmarkIcon::Building}, - {"amenity-courthouse", kml::BookmarkIcon::Building}, {"amenity-college", kml::BookmarkIcon::Building}, + {"amenity-courthouse", kml::BookmarkIcon::Building}, + {"amenity-embassy", kml::BookmarkIcon::Building}, + {"amenity-kindergarten", kml::BookmarkIcon::Building}, + {"amenity-library", kml::BookmarkIcon::Building}, {"amenity-police", kml::BookmarkIcon::Building}, {"amenity-prison", kml::BookmarkIcon::Building}, - {"amenity-embassy", kml::BookmarkIcon::Building}, - {"office-lawyer", kml::BookmarkIcon::Building}, + {"amenity-school", kml::BookmarkIcon::Building}, {"building-train_station", kml::BookmarkIcon::Building}, {"building-university", kml::BookmarkIcon::Building}, + {"office", kml::BookmarkIcon::Building}, + {"office-lawyer", kml::BookmarkIcon::Building}, + + {"amenity-grave_yard-christian", kml::BookmarkIcon::Christianity}, + {"amenity-place_of_worship-christian", kml::BookmarkIcon::Christianity}, + {"landuse-cemetery-christian", kml::BookmarkIcon::Christianity}, + + {"amenity-casino", kml::BookmarkIcon::Entertainment}, + {"amenity-cinema", kml::BookmarkIcon::Entertainment}, + {"amenity-nightclub", kml::BookmarkIcon::Entertainment}, + {"amenity-theatre", kml::BookmarkIcon::Entertainment}, + {"leisure-playground", kml::BookmarkIcon::Entertainment}, + {"leisure-water_park", kml::BookmarkIcon::Entertainment}, {"amenity-atm", kml::BookmarkIcon::Exchange}, - {"amenity-bureau_de_change", kml::BookmarkIcon::Exchange}, {"amenity-bank", kml::BookmarkIcon::Exchange}, + {"amenity-bureau_de_change", kml::BookmarkIcon::Exchange}, - {"amenity-vending_machine", kml::BookmarkIcon::Shop}, - {"shop", kml::BookmarkIcon::Shop}, + {"amenity-bbq", kml::BookmarkIcon::Food}, + {"amenity-cafe", kml::BookmarkIcon::Food}, + {"amenity-fast_food", kml::BookmarkIcon::Food}, + {"amenity-food_court", kml::BookmarkIcon::Food}, + {"amenity-restaurant", kml::BookmarkIcon::Food}, + {"leisure-picnic_table", kml::BookmarkIcon::Food}, + {"tourism-picnic_site", kml::BookmarkIcon::Food}, + + {"amenity-charging_station", kml::BookmarkIcon::Gas}, + {"amenity-fuel", kml::BookmarkIcon::Gas}, + + {"sponsored-booking", kml::BookmarkIcon::Hotel}, + {"tourism-alpine_hut", kml::BookmarkIcon::Hotel}, + {"tourism-chalet", kml::BookmarkIcon::Hotel}, + {"tourism-guest_house", kml::BookmarkIcon::Hotel}, + {"tourism-hostel", kml::BookmarkIcon::Hotel}, + {"tourism-hotel", kml::BookmarkIcon::Hotel}, + {"tourism-motel", kml::BookmarkIcon::Hotel}, + {"tourism-resort", kml::BookmarkIcon::Hotel}, + {"tourism-wilderness_hut", kml::BookmarkIcon::Hotel}, + {"tourism-apartment", kml::BookmarkIcon::Hotel}, + + {"amenity-place_of_worship-muslim", kml::BookmarkIcon::Islam}, + + {"amenity-place_of_worship-jewish", kml::BookmarkIcon::Judaism}, + + {"amenity-childcare", kml::BookmarkIcon::Medicine}, + {"amenity-clinic", kml::BookmarkIcon::Medicine}, + {"amenity-dentist", kml::BookmarkIcon::Medicine}, + {"amenity-doctors", kml::BookmarkIcon::Medicine}, + {"amenity-hospital", kml::BookmarkIcon::Medicine}, + {"amenity-pharmacy", kml::BookmarkIcon::Medicine}, + {"emergency-defibrillator", kml::BookmarkIcon::Medicine}, + + {"natural-bare_rock", kml::BookmarkIcon::Mountain}, + {"natural-cave_entrance", kml::BookmarkIcon::Mountain}, + {"natural-peak", kml::BookmarkIcon::Mountain}, + {"natural-rock", kml::BookmarkIcon::Mountain}, + {"natural-volcano", kml::BookmarkIcon::Mountain}, + + {"amenity-arts_centre", kml::BookmarkIcon::Museum}, + {"tourism-gallery", kml::BookmarkIcon::Museum}, + {"tourism-museum", kml::BookmarkIcon::Museum}, + + {"boundary-national_park", kml::BookmarkIcon::Park}, + {"landuse-forest", kml::BookmarkIcon::Park}, + {"leisure-nature_reserve", kml::BookmarkIcon::Park}, + + {"amenity-bicycle_parking", kml::BookmarkIcon::Parking}, + {"amenity-motorcycle_parking", kml::BookmarkIcon::Parking}, + {"amenity-parking", kml::BookmarkIcon::Parking}, + {"tourism-camp_site", kml::BookmarkIcon::Parking}, + {"tourism-caravan_site", kml::BookmarkIcon::Parking}, + {"vending-parking_tickets", kml::BookmarkIcon::Parking}, + + {"amenity-ice_cream", kml::BookmarkIcon::Shop}, {"amenity-marketplace", kml::BookmarkIcon::Shop}, + {"amenity-vending_machine", kml::BookmarkIcon::Shop}, {"craft", kml::BookmarkIcon::Shop}, - {"shop-pawnbroker", kml::BookmarkIcon::Shop}, - {"shop-supermarket", kml::BookmarkIcon::Shop}, - {"shop-car_repair", kml::BookmarkIcon::Shop}, - {"shop-mall", kml::BookmarkIcon::Shop}, {"highway-services", kml::BookmarkIcon::Shop}, - {"shop-stationery", kml::BookmarkIcon::Shop}, - {"shop-variety_store", kml::BookmarkIcon::Shop}, + {"shop", kml::BookmarkIcon::Shop}, {"shop-alcohol", kml::BookmarkIcon::Shop}, - {"shop-wine", kml::BookmarkIcon::Shop}, - {"shop-books", kml::BookmarkIcon::Shop}, - {"shop-bookmaker", kml::BookmarkIcon::Shop}, {"shop-bakery", kml::BookmarkIcon::Shop}, {"shop-beauty", kml::BookmarkIcon::Shop}, - {"shop-cosmetics", kml::BookmarkIcon::Shop}, {"shop-beverages", kml::BookmarkIcon::Shop}, {"shop-bicycle", kml::BookmarkIcon::Shop}, + {"shop-bookmaker", kml::BookmarkIcon::Shop}, + {"shop-books", kml::BookmarkIcon::Shop}, {"shop-butcher", kml::BookmarkIcon::Shop}, {"shop-car", kml::BookmarkIcon::Shop}, - {"shop-motorcycle", kml::BookmarkIcon::Shop}, {"shop-car_parts", kml::BookmarkIcon::Shop}, {"shop-car_repair", kml::BookmarkIcon::Shop}, - {"shop-tyres", kml::BookmarkIcon::Shop}, + {"shop-car_repair", kml::BookmarkIcon::Shop}, {"shop-chemist", kml::BookmarkIcon::Shop}, + {"shop-chocolate", kml::BookmarkIcon::Shop}, {"shop-clothes", kml::BookmarkIcon::Shop}, {"shop-computer", kml::BookmarkIcon::Shop}, - {"shop-tattoo", kml::BookmarkIcon::Shop}, - {"shop-erotic", kml::BookmarkIcon::Shop}, - {"shop-funeral_directors", kml::BookmarkIcon::Shop}, {"shop-confectionery", kml::BookmarkIcon::Shop}, - {"shop-chocolate", kml::BookmarkIcon::Shop}, - {"amenity-ice_cream", kml::BookmarkIcon::Shop}, {"shop-convenience", kml::BookmarkIcon::Shop}, {"shop-copyshop", kml::BookmarkIcon::Shop}, - {"shop-photo", kml::BookmarkIcon::Shop}, - {"shop-pet", kml::BookmarkIcon::Shop}, + {"shop-cosmetics", kml::BookmarkIcon::Shop}, {"shop-department_store", kml::BookmarkIcon::Shop}, {"shop-doityourself", kml::BookmarkIcon::Shop}, + {"shop-dry_cleaning", kml::BookmarkIcon::Shop}, {"shop-electronics", kml::BookmarkIcon::Shop}, + {"shop-erotic", kml::BookmarkIcon::Shop}, + {"shop-fabric", kml::BookmarkIcon::Shop}, {"shop-florist", kml::BookmarkIcon::Shop}, + {"shop-funeral_directors", kml::BookmarkIcon::Shop}, {"shop-furniture", kml::BookmarkIcon::Shop}, {"shop-garden_centre", kml::BookmarkIcon::Shop}, {"shop-gift", kml::BookmarkIcon::Shop}, - {"shop-music", kml::BookmarkIcon::Shop}, - {"shop-video", kml::BookmarkIcon::Shop}, - {"shop-musical_instrument", kml::BookmarkIcon::Shop}, {"shop-greengrocer", kml::BookmarkIcon::Shop}, {"shop-hairdresser", kml::BookmarkIcon::Shop}, {"shop-hardware", kml::BookmarkIcon::Shop}, {"shop-jewelry", kml::BookmarkIcon::Shop}, {"shop-kiosk", kml::BookmarkIcon::Shop}, {"shop-laundry", kml::BookmarkIcon::Shop}, - {"shop-dry_cleaning", kml::BookmarkIcon::Shop}, + {"shop-mall", kml::BookmarkIcon::Shop}, {"shop-mobile_phone", kml::BookmarkIcon::Shop}, + {"shop-motorcycle", kml::BookmarkIcon::Shop}, + {"shop-music", kml::BookmarkIcon::Shop}, + {"shop-musical_instrument", kml::BookmarkIcon::Shop}, {"shop-optician", kml::BookmarkIcon::Shop}, {"shop-outdoor", kml::BookmarkIcon::Shop}, + {"shop-pawnbroker", kml::BookmarkIcon::Shop}, + {"shop-pet", kml::BookmarkIcon::Shop}, + {"shop-photo", kml::BookmarkIcon::Shop}, {"shop-seafood", kml::BookmarkIcon::Shop}, {"shop-shoes", kml::BookmarkIcon::Shop}, {"shop-sports", kml::BookmarkIcon::Shop}, + {"shop-stationery", kml::BookmarkIcon::Shop}, + {"shop-supermarket", kml::BookmarkIcon::Shop}, + {"shop-tattoo", kml::BookmarkIcon::Shop}, {"shop-ticket", kml::BookmarkIcon::Shop}, {"shop-toys", kml::BookmarkIcon::Shop}, - {"shop-fabric", kml::BookmarkIcon::Shop}, + {"shop-tyres", kml::BookmarkIcon::Shop}, + {"shop-variety_store", kml::BookmarkIcon::Shop}, + {"shop-video", kml::BookmarkIcon::Shop}, + {"shop-wine", kml::BookmarkIcon::Shop}, - {"amenity-place_of_worship-christian", kml::BookmarkIcon::Christianity}, - {"landuse-cemetery-christian", kml::BookmarkIcon::Christianity}, - {"amenity-grave_yard-christian", kml::BookmarkIcon::Christianity}, + {"amenity-place_of_worship", kml::BookmarkIcon::Sights}, + {"historic-archaeological_site", kml::BookmarkIcon::Sights}, + {"historic-boundary_stone", kml::BookmarkIcon::Sights}, + {"historic-castle", kml::BookmarkIcon::Sights}, + {"historic-fort", kml::BookmarkIcon::Sights}, + {"historic-memorial", kml::BookmarkIcon::Sights}, + {"historic-monument", kml::BookmarkIcon::Sights}, + {"historic-ruins", kml::BookmarkIcon::Sights}, + {"historic-ship", kml::BookmarkIcon::Sights}, + {"historic-tomb", kml::BookmarkIcon::Sights}, + {"historic-wayside_cross", kml::BookmarkIcon::Sights}, + {"historic-wayside_shrine", kml::BookmarkIcon::Sights}, + {"tourism-artwork", kml::BookmarkIcon::Sights}, + {"tourism-attraction", kml::BookmarkIcon::Sights}, + {"tourism-theme_park", kml::BookmarkIcon::Sights}, + {"waterway-waterfall", kml::BookmarkIcon::Sights}, - {"amenity-place_of_worship-jewish", kml::BookmarkIcon::Judaism}, + {"leisure-fitness_centre", kml::BookmarkIcon::Sport}, + {"leisure-skiing", kml::BookmarkIcon::Sport}, + {"leisure-sports_centre-climbing", kml::BookmarkIcon::Sport}, + {"leisure-sports_centre-shooting", kml::BookmarkIcon::Sport}, + {"leisure-sports_centre-yoga", kml::BookmarkIcon::Sport}, + {"leisure-stadium", kml::BookmarkIcon::Sport}, + {"olympics-bike_sport", kml::BookmarkIcon::Sport}, + {"olympics-stadium", kml::BookmarkIcon::Sport}, + {"olympics-stadium_main", kml::BookmarkIcon::Sport}, + {"sport", kml::BookmarkIcon::Sport}, + {"sport-american_football", kml::BookmarkIcon::Sport}, + {"sport-archery", kml::BookmarkIcon::Sport}, + {"sport-athletics", kml::BookmarkIcon::Sport}, + {"sport-australian_football", kml::BookmarkIcon::Sport}, + {"sport-baseball", kml::BookmarkIcon::Sport}, + {"sport-basketball", kml::BookmarkIcon::Sport}, + {"sport-bowls", kml::BookmarkIcon::Sport}, + {"sport-cricket", kml::BookmarkIcon::Sport}, + {"sport-curling", kml::BookmarkIcon::Sport}, + {"sport-golf", kml::BookmarkIcon::Sport}, + {"sport-gymnastics", kml::BookmarkIcon::Sport}, + {"sport-multi", kml::BookmarkIcon::Sport}, + {"sport-shooting", kml::BookmarkIcon::Sport}, + {"sport-skiing", kml::BookmarkIcon::Sport}, + {"sport-soccer", kml::BookmarkIcon::Sport}, + {"sport-tennis", kml::BookmarkIcon::Sport}, - {"amenity-place_of_worship-buddhist", kml::BookmarkIcon::Buddhism}, - - {"amenity-place_of_worship-muslim", kml::BookmarkIcon::Islam}, - - {"amenity-parking", kml::BookmarkIcon::Parking}, - {"vending-parking_tickets", kml::BookmarkIcon::Parking}, - {"tourism-caravan_site", kml::BookmarkIcon::Parking}, - {"amenity-bicycle_parking", kml::BookmarkIcon::Parking}, - {"tourism-camp_site", kml::BookmarkIcon::Parking}, - {"amenity-motorcycle_parking", kml::BookmarkIcon::Parking}, + {"leisure-sports_centre-swimming", kml::BookmarkIcon::Swim}, + {"leisure-swimming_pool", kml::BookmarkIcon::Swim}, + {"natural-beach", kml::BookmarkIcon::Swim}, + {"olympics-water_sport", kml::BookmarkIcon::Swim}, + {"sport-diving", kml::BookmarkIcon::Swim}, + {"sport-scuba_diving", kml::BookmarkIcon::Swim}, + {"sport-swimming", kml::BookmarkIcon::Swim}, + {"aeroway-aerodrome", kml::BookmarkIcon::Transport}, + {"aeroway-aerodrome-international", kml::BookmarkIcon::Transport}, {"amenity-bus_station", kml::BookmarkIcon::Transport}, {"amenity-car_sharing", kml::BookmarkIcon::Transport}, {"amenity-ferry_terminal", kml::BookmarkIcon::Transport}, {"amenity-taxi", kml::BookmarkIcon::Transport}, - {"public_transport-platform", kml::BookmarkIcon::Transport}, - {"highway-platform", kml::BookmarkIcon::Transport}, - {"aeroway-aerodrome", kml::BookmarkIcon::Transport}, - {"aeroway-aerodrome-international", kml::BookmarkIcon::Transport}, - {"railway-station-light_rail", kml::BookmarkIcon::Transport}, - {"railway-station-subway", kml::BookmarkIcon::Transport}, - {"railway-station-monorail", kml::BookmarkIcon::Transport}, - {"railway-tram_stop", kml::BookmarkIcon::Transport}, - {"highway-bus_stop", kml::BookmarkIcon::Transport}, {"building-train_station", kml::BookmarkIcon::Transport}, + {"highway-bus_stop", kml::BookmarkIcon::Transport}, + {"highway-platform", kml::BookmarkIcon::Transport}, + {"public_transport-platform", kml::BookmarkIcon::Transport}, + {"railway-station-light_rail", kml::BookmarkIcon::Transport}, + {"railway-station-monorail", kml::BookmarkIcon::Transport}, + {"railway-station-subway", kml::BookmarkIcon::Transport}, + {"railway-tram_stop", kml::BookmarkIcon::Transport}, - {"amenity-fuel", kml::BookmarkIcon::Gas}, - {"amenity-charging_station", kml::BookmarkIcon::Gas}, + {"tourism-viewpoint", kml::BookmarkIcon::Viewpoint}, - {"amenity-fountain", kml::BookmarkIcon::Water}, - {"natural-spring", kml::BookmarkIcon::Water}, {"amenity-drinking_water", kml::BookmarkIcon::Water}, - {"man_made-water_tap", kml::BookmarkIcon::Water}, + {"amenity-fountain", kml::BookmarkIcon::Water}, {"amenity-water_point", kml::BookmarkIcon::Water}, - - {"amenity-dentist", kml::BookmarkIcon::Medicine}, - {"amenity-clinic", kml::BookmarkIcon::Medicine}, - {"amenity-doctors", kml::BookmarkIcon::Medicine}, - {"amenity-hospital", kml::BookmarkIcon::Medicine}, - {"amenity-pharmacy", kml::BookmarkIcon::Medicine}, - {"amenity-childcare", kml::BookmarkIcon::Medicine}, - {"emergency-defibrillator", kml::BookmarkIcon::Medicine} + {"man_made-water_tap", kml::BookmarkIcon::Water}, + {"natural-spring", kml::BookmarkIcon::Water} }; std::map const kFeatureTypeToBookmarkType = { - {"amenity-bbq", BookmarkBaseType::Food}, - {"tourism-picnic_site", BookmarkBaseType::Food}, - {"leisure-picnic_table", BookmarkBaseType::Food}, - {"amenity-cafe", BookmarkBaseType::Food}, - {"amenity-restaurant", BookmarkBaseType::Food}, - {"amenity-fast_food", BookmarkBaseType::Food}, - {"amenity-food_court", BookmarkBaseType::Food}, - {"amenity-bar", BookmarkBaseType::Food}, - {"amenity-pub", BookmarkBaseType::Food}, - {"amenity-biergarten", BookmarkBaseType::Food}, - - {"waterway-waterfall", BookmarkBaseType::Sights}, - {"historic-tomb", BookmarkBaseType::Sights}, - {"historic-boundary_stone", BookmarkBaseType::Sights}, - {"historic-ship", BookmarkBaseType::Sights}, - {"historic-archaeological_site", BookmarkBaseType::Sights}, - {"historic-monument", BookmarkBaseType::Sights}, - {"historic-memorial", BookmarkBaseType::Sights}, - {"tourism-attraction", BookmarkBaseType::Sights}, - {"tourism-theme_park", BookmarkBaseType::Sights}, - {"tourism-viewpoint", BookmarkBaseType::Sights}, - {"historic-fort", BookmarkBaseType::Sights}, - {"historic-castle", BookmarkBaseType::Sights}, - {"tourism-artwork", BookmarkBaseType::Sights}, - {"historic-ruins", BookmarkBaseType::Sights}, - {"historic-wayside_shrine", BookmarkBaseType::Sights}, - {"historic-wayside_cross", BookmarkBaseType::Sights}, - - {"tourism-gallery", BookmarkBaseType::Museum}, - {"tourism-museum", BookmarkBaseType::Museum}, - {"amenity-arts_centre", BookmarkBaseType::Museum}, - - {"sport", BookmarkBaseType::Entertainment}, - {"sport-multi", BookmarkBaseType::Entertainment}, - {"leisure-playground", BookmarkBaseType::Entertainment}, - {"leisure-water_park", BookmarkBaseType::Entertainment}, - {"amenity-casino", BookmarkBaseType::Entertainment}, - {"sport-archery", BookmarkBaseType::Entertainment}, - {"sport-shooting", BookmarkBaseType::Entertainment}, - {"sport-australian_football", BookmarkBaseType::Entertainment}, - {"sport-bowls", BookmarkBaseType::Entertainment}, - {"sport-curling", BookmarkBaseType::Entertainment}, - {"sport-cricket", BookmarkBaseType::Entertainment}, - {"sport-baseball", BookmarkBaseType::Entertainment}, - {"sport-basketball", BookmarkBaseType::Entertainment}, - {"sport-american_football", BookmarkBaseType::Entertainment}, - {"sport-athletics", BookmarkBaseType::Entertainment}, - {"sport-golf", BookmarkBaseType::Entertainment}, - {"sport-gymnastics", BookmarkBaseType::Entertainment}, - {"sport-tennis", BookmarkBaseType::Entertainment}, - {"sport-skiing", BookmarkBaseType::Entertainment}, - {"sport-soccer", BookmarkBaseType::Entertainment}, - {"amenity-nightclub", BookmarkBaseType::Entertainment}, - {"amenity-cinema", BookmarkBaseType::Entertainment}, - {"amenity-theatre", BookmarkBaseType::Entertainment}, - {"leisure-stadium", BookmarkBaseType::Entertainment}, - {"leisure-fitness_centre", BookmarkBaseType::Entertainment}, - {"olympics-stadium_main", BookmarkBaseType::Entertainment}, - {"olympics-stadium", BookmarkBaseType::Entertainment}, - {"olympics-bike_sport", BookmarkBaseType::Entertainment}, - {"leisure-sports_centre-climbing", BookmarkBaseType::Entertainment}, - {"leisure-sports_centre-shooting", BookmarkBaseType::Entertainment}, - {"leisure-sports_centre-yoga", BookmarkBaseType::Entertainment}, - - {"boundary-national_park", BookmarkBaseType::Park}, - {"leisure-nature_reserve", BookmarkBaseType::Park}, - {"landuse-forest", BookmarkBaseType::Park}, - - {"natural-beach", BookmarkBaseType::Swim}, - {"sport-diving", BookmarkBaseType::Swim}, - {"sport-scuba_diving", BookmarkBaseType::Swim}, - {"sport-swimming", BookmarkBaseType::Swim}, - {"leisure-swimming_pool", BookmarkBaseType::Swim}, - {"leisure-sports_centre-swimming", BookmarkBaseType::Swim}, - {"olympics-water_sport", BookmarkBaseType::Swim}, - - {"natural-cave_entrance", BookmarkBaseType::Mountain}, - {"natural-peak", BookmarkBaseType::Mountain}, - {"natural-volcano", BookmarkBaseType::Mountain}, - {"natural-rock", BookmarkBaseType::Mountain}, - {"natural-bare_rock", BookmarkBaseType::Mountain}, - {"amenity-veterinary", BookmarkBaseType::Animals}, {"leisure-dog_park", BookmarkBaseType::Animals}, {"tourism-zoo", BookmarkBaseType::Animals}, + {"amenity-college", BookmarkBaseType::Building}, + {"amenity-courthouse", BookmarkBaseType::Building}, + {"amenity-embassy", BookmarkBaseType::Building}, + {"amenity-kindergarten", BookmarkBaseType::Building}, + {"amenity-library", BookmarkBaseType::Building}, + {"amenity-police", BookmarkBaseType::Building}, + {"amenity-prison", BookmarkBaseType::Building}, + {"amenity-school", BookmarkBaseType::Building}, + {"building-train_station", BookmarkBaseType::Building}, + {"building-university", BookmarkBaseType::Building}, + {"office", BookmarkBaseType::Building}, + {"office-lawyer", BookmarkBaseType::Building}, + + {"amenity-casino", BookmarkBaseType::Entertainment}, + {"amenity-cinema", BookmarkBaseType::Entertainment}, + {"amenity-nightclub", BookmarkBaseType::Entertainment}, + {"amenity-theatre", BookmarkBaseType::Entertainment}, + {"leisure-water_park", BookmarkBaseType::Entertainment}, + {"leisure-playground", BookmarkBaseType::Entertainment}, + // Sport + {"leisure-fitness_centre", BookmarkBaseType::Entertainment}, + {"leisure-sports_centre-climbing", BookmarkBaseType::Entertainment}, + {"leisure-sports_centre-shooting", BookmarkBaseType::Entertainment}, + {"leisure-sports_centre-yoga", BookmarkBaseType::Entertainment}, + {"leisure-stadium", BookmarkBaseType::Entertainment}, + {"olympics-bike_sport", BookmarkBaseType::Entertainment}, + {"olympics-stadium", BookmarkBaseType::Entertainment}, + {"olympics-stadium_main", BookmarkBaseType::Entertainment}, + {"sport", BookmarkBaseType::Entertainment}, + {"sport-american_football", BookmarkBaseType::Entertainment}, + {"sport-archery", BookmarkBaseType::Entertainment}, + {"sport-athletics", BookmarkBaseType::Entertainment}, + {"sport-australian_football", BookmarkBaseType::Entertainment}, + {"sport-baseball", BookmarkBaseType::Entertainment}, + {"sport-basketball", BookmarkBaseType::Entertainment}, + {"sport-bowls", BookmarkBaseType::Entertainment}, + {"sport-cricket", BookmarkBaseType::Entertainment}, + {"sport-curling", BookmarkBaseType::Entertainment}, + {"sport-golf", BookmarkBaseType::Entertainment}, + {"sport-gymnastics", BookmarkBaseType::Entertainment}, + {"sport-multi", BookmarkBaseType::Entertainment}, + {"sport-shooting", BookmarkBaseType::Entertainment}, + {"sport-skiing", BookmarkBaseType::Entertainment}, + {"sport-soccer", BookmarkBaseType::Entertainment}, + {"sport-tennis", BookmarkBaseType::Entertainment}, + + {"amenity-atm", BookmarkBaseType::Exchange}, + {"amenity-bank", BookmarkBaseType::Exchange}, + {"amenity-bureau_de_change", BookmarkBaseType::Exchange}, + + {"amenity-bbq", BookmarkBaseType::Food}, + {"amenity-cafe", BookmarkBaseType::Food}, + {"amenity-fast_food", BookmarkBaseType::Food}, + {"amenity-food_court", BookmarkBaseType::Food}, + {"amenity-restaurant", BookmarkBaseType::Food}, + {"leisure-picnic_table", BookmarkBaseType::Food}, + {"tourism-picnic_site", BookmarkBaseType::Food}, + // Bars + {"amenity-bar", BookmarkBaseType::Food}, + {"amenity-biergarten", BookmarkBaseType::Food}, + {"amenity-pub", BookmarkBaseType::Food}, + + {"amenity-charging_station", BookmarkBaseType::Gas}, + {"amenity-fuel", BookmarkBaseType::Gas}, + + {"sponsored-booking", BookmarkBaseType::Hotel}, + {"tourism-alpine_hut", BookmarkBaseType::Hotel}, {"tourism-apartment", BookmarkBaseType::Hotel}, {"tourism-chalet", BookmarkBaseType::Hotel}, {"tourism-guest_house", BookmarkBaseType::Hotel}, - {"tourism-alpine_hut", BookmarkBaseType::Hotel}, - {"tourism-wilderness_hut", BookmarkBaseType::Hotel}, {"tourism-hostel", BookmarkBaseType::Hotel}, + {"tourism-hotel", BookmarkBaseType::Hotel}, {"tourism-motel", BookmarkBaseType::Hotel}, {"tourism-resort", BookmarkBaseType::Hotel}, - {"tourism-hotel", BookmarkBaseType::Hotel}, - {"sponsored-booking", BookmarkBaseType::Hotel}, + {"tourism-wilderness_hut", BookmarkBaseType::Hotel}, - {"amenity-kindergarten", BookmarkBaseType::Building}, - {"amenity-school", BookmarkBaseType::Building}, - {"office", BookmarkBaseType::Building}, - {"amenity-library", BookmarkBaseType::Building}, - {"amenity-courthouse", BookmarkBaseType::Building}, - {"amenity-college", BookmarkBaseType::Building}, - {"amenity-police", BookmarkBaseType::Building}, - {"amenity-prison", BookmarkBaseType::Building}, - {"amenity-embassy", BookmarkBaseType::Building}, - {"office-lawyer", BookmarkBaseType::Building}, - {"building-train_station", BookmarkBaseType::Building}, - {"building-university", BookmarkBaseType::Building}, + {"amenity-childcare", BookmarkBaseType::Medicine}, + {"amenity-clinic", BookmarkBaseType::Medicine}, + {"amenity-dentist", BookmarkBaseType::Medicine}, + {"amenity-doctors", BookmarkBaseType::Medicine}, + {"amenity-hospital", BookmarkBaseType::Medicine}, + {"amenity-pharmacy", BookmarkBaseType::Medicine}, + {"emergency-defibrillator", BookmarkBaseType::Medicine}, - {"amenity-atm", BookmarkBaseType::Exchange}, - {"amenity-bureau_de_change", BookmarkBaseType::Exchange}, - {"amenity-bank", BookmarkBaseType::Exchange}, + {"natural-bare_rock", BookmarkBaseType::Mountain}, + {"natural-cave_entrance", BookmarkBaseType::Mountain}, + {"natural-peak", BookmarkBaseType::Mountain}, + {"natural-rock", BookmarkBaseType::Mountain}, + {"natural-volcano", BookmarkBaseType::Mountain}, - {"amenity-vending_machine", BookmarkBaseType::Shop}, - {"shop", BookmarkBaseType::Shop}, + {"amenity-arts_centre", BookmarkBaseType::Museum}, + {"tourism-gallery", BookmarkBaseType::Museum}, + {"tourism-museum", BookmarkBaseType::Museum}, + + {"boundary-national_park", BookmarkBaseType::Park}, + {"landuse-forest", BookmarkBaseType::Park}, + {"leisure-nature_reserve", BookmarkBaseType::Park}, + + {"amenity-bicycle_parking", BookmarkBaseType::Parking}, + {"amenity-motorcycle_parking", BookmarkBaseType::Parking}, + {"amenity-parking", BookmarkBaseType::Parking}, + {"tourism-camp_site", BookmarkBaseType::Parking}, + {"tourism-caravan_site", BookmarkBaseType::Parking}, + {"vending-parking_tickets", BookmarkBaseType::Parking}, + + // Christianity + {"amenity-grave_yard-christian", BookmarkBaseType::ReligiousPlace}, + {"amenity-place_of_worship-christian", BookmarkBaseType::ReligiousPlace}, + {"landuse-cemetery-christian", BookmarkBaseType::ReligiousPlace}, + // Judaism + {"amenity-place_of_worship-jewish", BookmarkBaseType::ReligiousPlace}, + // Buddhism + {"amenity-place_of_worship-buddhist", BookmarkBaseType::ReligiousPlace}, + // Islam + {"amenity-place_of_worship-muslim", BookmarkBaseType::ReligiousPlace}, + // Sights + {"amenity-place_of_worship", BookmarkBaseType::ReligiousPlace}, + + {"amenity-ice_cream", BookmarkBaseType::Shop}, {"amenity-marketplace", BookmarkBaseType::Shop}, + {"amenity-vending_machine", BookmarkBaseType::Shop}, {"craft", BookmarkBaseType::Shop}, - {"shop-pawnbroker", BookmarkBaseType::Shop}, - {"shop-supermarket", BookmarkBaseType::Shop}, - {"shop-car_repair", BookmarkBaseType::Shop}, - {"shop-mall", BookmarkBaseType::Shop}, {"highway-services", BookmarkBaseType::Shop}, - {"shop-stationery", BookmarkBaseType::Shop}, - {"shop-variety_store", BookmarkBaseType::Shop}, + {"shop", BookmarkBaseType::Shop}, {"shop-alcohol", BookmarkBaseType::Shop}, - {"shop-wine", BookmarkBaseType::Shop}, - {"shop-books", BookmarkBaseType::Shop}, - {"shop-bookmaker", BookmarkBaseType::Shop}, {"shop-bakery", BookmarkBaseType::Shop}, {"shop-beauty", BookmarkBaseType::Shop}, - {"shop-cosmetics", BookmarkBaseType::Shop}, {"shop-beverages", BookmarkBaseType::Shop}, {"shop-bicycle", BookmarkBaseType::Shop}, + {"shop-bookmaker", BookmarkBaseType::Shop}, + {"shop-books", BookmarkBaseType::Shop}, {"shop-butcher", BookmarkBaseType::Shop}, {"shop-car", BookmarkBaseType::Shop}, - {"shop-motorcycle", BookmarkBaseType::Shop}, {"shop-car_parts", BookmarkBaseType::Shop}, {"shop-car_repair", BookmarkBaseType::Shop}, - {"shop-tyres", BookmarkBaseType::Shop}, + {"shop-car_repair", BookmarkBaseType::Shop}, {"shop-chemist", BookmarkBaseType::Shop}, + {"shop-chocolate", BookmarkBaseType::Shop}, {"shop-clothes", BookmarkBaseType::Shop}, {"shop-computer", BookmarkBaseType::Shop}, - {"shop-tattoo", BookmarkBaseType::Shop}, - {"shop-erotic", BookmarkBaseType::Shop}, - {"shop-funeral_directors", BookmarkBaseType::Shop}, {"shop-confectionery", BookmarkBaseType::Shop}, - {"shop-chocolate", BookmarkBaseType::Shop}, - {"amenity-ice_cream", BookmarkBaseType::Shop}, {"shop-convenience", BookmarkBaseType::Shop}, {"shop-copyshop", BookmarkBaseType::Shop}, - {"shop-photo", BookmarkBaseType::Shop}, - {"shop-pet", BookmarkBaseType::Shop}, + {"shop-cosmetics", BookmarkBaseType::Shop}, {"shop-department_store", BookmarkBaseType::Shop}, {"shop-doityourself", BookmarkBaseType::Shop}, + {"shop-dry_cleaning", BookmarkBaseType::Shop}, {"shop-electronics", BookmarkBaseType::Shop}, + {"shop-erotic", BookmarkBaseType::Shop}, + {"shop-fabric", BookmarkBaseType::Shop}, {"shop-florist", BookmarkBaseType::Shop}, + {"shop-funeral_directors", BookmarkBaseType::Shop}, {"shop-furniture", BookmarkBaseType::Shop}, {"shop-garden_centre", BookmarkBaseType::Shop}, {"shop-gift", BookmarkBaseType::Shop}, - {"shop-music", BookmarkBaseType::Shop}, - {"shop-video", BookmarkBaseType::Shop}, - {"shop-musical_instrument", BookmarkBaseType::Shop}, {"shop-greengrocer", BookmarkBaseType::Shop}, {"shop-hairdresser", BookmarkBaseType::Shop}, {"shop-hardware", BookmarkBaseType::Shop}, {"shop-jewelry", BookmarkBaseType::Shop}, {"shop-kiosk", BookmarkBaseType::Shop}, {"shop-laundry", BookmarkBaseType::Shop}, - {"shop-dry_cleaning", BookmarkBaseType::Shop}, + {"shop-mall", BookmarkBaseType::Shop}, {"shop-mobile_phone", BookmarkBaseType::Shop}, + {"shop-motorcycle", BookmarkBaseType::Shop}, + {"shop-music", BookmarkBaseType::Shop}, + {"shop-musical_instrument", BookmarkBaseType::Shop}, {"shop-optician", BookmarkBaseType::Shop}, {"shop-outdoor", BookmarkBaseType::Shop}, + {"shop-pawnbroker", BookmarkBaseType::Shop}, + {"shop-pet", BookmarkBaseType::Shop}, + {"shop-photo", BookmarkBaseType::Shop}, {"shop-seafood", BookmarkBaseType::Shop}, {"shop-shoes", BookmarkBaseType::Shop}, {"shop-sports", BookmarkBaseType::Shop}, + {"shop-stationery", BookmarkBaseType::Shop}, + {"shop-supermarket", BookmarkBaseType::Shop}, + {"shop-tattoo", BookmarkBaseType::Shop}, {"shop-ticket", BookmarkBaseType::Shop}, {"shop-toys", BookmarkBaseType::Shop}, - {"shop-fabric", BookmarkBaseType::Shop}, + {"shop-tyres", BookmarkBaseType::Shop}, + {"shop-variety_store", BookmarkBaseType::Shop}, + {"shop-video", BookmarkBaseType::Shop}, + {"shop-wine", BookmarkBaseType::Shop}, - {"amenity-parking", BookmarkBaseType::Parking}, - {"vending-parking_tickets", BookmarkBaseType::Parking}, - {"tourism-caravan_site", BookmarkBaseType::Parking}, - {"amenity-bicycle_parking", BookmarkBaseType::Parking}, - {"tourism-camp_site", BookmarkBaseType::Parking}, - {"amenity-motorcycle_parking", BookmarkBaseType::Parking}, + {"historic-archaeological_site", BookmarkBaseType::Sights}, + {"historic-boundary_stone", BookmarkBaseType::Sights}, + {"historic-castle", BookmarkBaseType::Sights}, + {"historic-fort", BookmarkBaseType::Sights}, + {"historic-memorial", BookmarkBaseType::Sights}, + {"historic-monument", BookmarkBaseType::Sights}, + {"historic-ruins", BookmarkBaseType::Sights}, + {"historic-ship", BookmarkBaseType::Sights}, + {"historic-tomb", BookmarkBaseType::Sights}, + {"historic-wayside_cross", BookmarkBaseType::Sights}, + {"historic-wayside_shrine", BookmarkBaseType::Sights}, + {"tourism-artwork", BookmarkBaseType::Sights}, + {"tourism-attraction", BookmarkBaseType::Sights}, + {"tourism-theme_park", BookmarkBaseType::Sights}, + {"waterway-waterfall", BookmarkBaseType::Sights}, + // Viewpoint + {"tourism-viewpoint", BookmarkBaseType::Sights}, - {"amenity-place_of_worship", BookmarkBaseType::ReligiousPlace}, - {"amenity-place_of_worship-christian", BookmarkBaseType::ReligiousPlace}, - {"landuse-cemetery-christian", BookmarkBaseType::ReligiousPlace}, - {"amenity-grave_yard-christian", BookmarkBaseType::ReligiousPlace}, - {"amenity-place_of_worship-jewish", BookmarkBaseType::ReligiousPlace}, - {"amenity-place_of_worship-buddhist", BookmarkBaseType::ReligiousPlace}, - {"amenity-place_of_worship-muslim", BookmarkBaseType::ReligiousPlace}, + {"leisure-sports_centre-swimming", BookmarkBaseType::Swim}, + {"leisure-swimming_pool", BookmarkBaseType::Swim}, + {"natural-beach", BookmarkBaseType::Swim}, + {"olympics-water_sport", BookmarkBaseType::Swim}, + {"sport-diving", BookmarkBaseType::Swim}, + {"sport-scuba_diving", BookmarkBaseType::Swim}, + {"sport-swimming", BookmarkBaseType::Swim}, - {"amenity-fuel", BookmarkBaseType::Gas}, - {"amenity-charging_station", BookmarkBaseType::Gas}, - - {"amenity-fountain", BookmarkBaseType::Water}, - {"natural-spring", BookmarkBaseType::Water}, {"amenity-drinking_water", BookmarkBaseType::Water}, - {"man_made-water_tap", BookmarkBaseType::Water}, + {"amenity-fountain", BookmarkBaseType::Water}, {"amenity-water_point", BookmarkBaseType::Water}, - - {"amenity-dentist", BookmarkBaseType::Medicine}, - {"amenity-clinic", BookmarkBaseType::Medicine}, - {"amenity-doctors", BookmarkBaseType::Medicine}, - {"amenity-hospital", BookmarkBaseType::Medicine}, - {"amenity-pharmacy", BookmarkBaseType::Medicine}, - {"amenity-childcare", BookmarkBaseType::Medicine}, - {"emergency-defibrillator", BookmarkBaseType::Medicine} + {"man_made-water_tap", BookmarkBaseType::Water}, + {"natural-spring", BookmarkBaseType::Water} }; void ValidateKmlData(std::unique_ptr & data)