private Category CreateOthersCategory() { var otherCategory = new Category { Color = "orange", Icon = "icon-star", Name = Categories.OTHER }; var attractionIcon = new IconColorCategory("icon-star", Categories.OTHER, "orange", "Attraction"); otherCategory.Items.Add(new IconAndTags(attractionIcon, "tourism", "attraction")); var natureReserveIcon = new IconColorCategory { Icon = "icon-nature-reserve", Color = "green", Category = Categories.OTHER, Label = "Nature Reserve, National Park" }; otherCategory.Items.Add(new IconAndTags(natureReserveIcon, new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("leisure", "nature_reserve"), new KeyValuePair <string, string>("boundary", "national_park"), new KeyValuePair <string, string>("boundary", "protected_area") })); return(otherCategory); }
private Category CreateCampingCategory() { var campingCategory = new Category { Color = "brown", Icon = "icon-picnic", Name = Categories.CAMPING }; var iconPicnic = new IconColorCategory { Icon = "icon-picnic", Color = "brown", Category = Categories.CAMPING, Label = "Picnic Area" }; campingCategory.Items.Add(new IconAndTags(iconPicnic, new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("tourism", "picnic_site"), new KeyValuePair <string, string>("leisure", "picnic"), new KeyValuePair <string, string>("leisure", "picnic_table"), })); var campsiteIcon = new IconColorCategory("icon-campsite", Categories.CAMPING, "brown", "Campsite"); campingCategory.Items.Add(new IconAndTags(campsiteIcon, "tourism", "camp_site")); return(campingCategory); }
private Category CreateWaterCategory() { var waterCategory = new Category { Color = "blue", Icon = "icon-tint", Name = Categories.WATER }; var springIcon = new IconColorCategory { Category = Categories.WATER, Color = "blue", Icon = "icon-tint", Label = "Spring, Pond" }; waterCategory.Items.Add(new IconAndTags(springIcon, new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("natural", "spring"), new KeyValuePair <string, string>("water", "pond") })); var waterfallIcon = new IconColorCategory { Category = Categories.WATER, Color = "blue", Icon = "icon-waterfall", Label = "Waterfall" }; waterCategory.Items.Add(new IconAndTags(waterfallIcon, "waterway", "waterfall")); var waterHole = new IconColorCategory { Category = Categories.WATER, Color = "blue", Icon = "icon-waterhole", Label = "Waterhole" }; waterCategory.Items.Add(new IconAndTags(waterHole, "natural", "waterhole")); var waterWell = new IconColorCategory { Category = Categories.WATER, Color = "blue", Icon = "icon-water-well", Label = "Water Well" }; waterCategory.Items.Add(new IconAndTags(waterWell, "man_made", "water_well")); var cistern = new IconColorCategory { Category = Categories.WATER, Color = "blue", Icon = "icon-cistern", Label = "Cistern" }; waterCategory.Items.Add(new IconAndTags(cistern, "man_made", "cistern")); return(waterCategory); }
private Category CreateINatureCategory() { var iNatureCategory = new Category { Color = "#116C00", Icon = "icon-inature", Name = Categories.INATURE }; var iNatureIcon = new IconColorCategory("icon-inature", Categories.INATURE); iNatureCategory.Items.Add(new IconAndTags(iNatureIcon)); return(iNatureCategory); }
private Category CreateWikipediaCategory() { var wikipediaCategory = new Category { Color = "black", Icon = "icon-wikipedia-w", Name = Categories.WIKIPEDIA }; var wikipediaIcon = new IconColorCategory("icon-wikipedia-w", Categories.WIKIPEDIA); wikipediaCategory.Items.Add(new IconAndTags(wikipediaIcon)); return(wikipediaCategory); }
private Category CreateViewpointCategory() { var viewPointCategory = new Category { Icon = "icon-viewpoint", Color = "brown", Name = Categories.VIEWPOINT }; var viewpointIcon = new IconColorCategory("icon-viewpoint", Categories.VIEWPOINT, "brown", "Viewpoint"); viewPointCategory.Items.Add(new IconAndTags(viewpointIcon, "tourism", "viewpoint")); return(viewPointCategory); }
private Category CreateHistoricCategory() { var historicCategory = new Category { Color = "brown", Icon = "icon-ruins", Name = Categories.HISTORIC }; var ruinsIcon = new IconColorCategory { Category = Categories.HISTORIC, Color = "brown", Icon = "icon-ruins", Label = "Ruins" }; historicCategory.Items.Add(new IconAndTags(ruinsIcon, "historic", "ruins")); var archaeologicalSiteIcon = new IconColorCategory { Category = Categories.HISTORIC, Color = "brown", Icon = "icon-archaeological", Label = "Archeological Site" }; historicCategory.Items.Add(new IconAndTags(archaeologicalSiteIcon, "historic", "archaeological_site")); var memorialIcon = new IconColorCategory { Category = Categories.HISTORIC, Color = "brown", Icon = "icon-memorial", Label = "Memorial" }; historicCategory.Items.Add(new IconAndTags(memorialIcon, new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("historic", "memorial"), new KeyValuePair <string, string>("historic", "monument"), })); return(historicCategory); }
private Category[] CreateRoutesCategories() { var hikeCategory = new Category { Color = "black", Icon = "icon-hike", Name = Categories.ROUTE_HIKE }; var hikeIcon = new IconColorCategory("icon-hike", Categories.ROUTE_HIKE); hikeCategory.Items.Add(new IconAndTags(hikeIcon, new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("route", "hiking") })); var bikeCategory = new Category { Color = "black", Icon = "icon-bike", Name = Categories.ROUTE_BIKE }; var bikeIcon = new IconColorCategory("icon-bike", Categories.ROUTE_BIKE); bikeCategory.Items.Add(new IconAndTags(bikeIcon, new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("route", "bicycle"), new KeyValuePair <string, string>("route", "mtb") })); var fourWheelDrivecategory = new Category { Color = "black", Icon = "icon-four-by-four", Name = Categories.ROUTE_4X4 }; return(new[] { hikeCategory, bikeCategory, fourWheelDrivecategory }); }
private Category CreateNoneCategory() { var noneCategory = new Category { Icon = "", Name = Categories.NONE, Color = "" }; var peakIcon = new IconColorCategory("icon-peak"); noneCategory.Items.Add(new IconAndTags(peakIcon, "natural", "peak")); noneCategory.Items.Add(new IconAndTags(new IconColorCategory(), new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("landuse", "farmyard"), new KeyValuePair <string, string>("waterway", "stream"), new KeyValuePair <string, string>("waterway", "river"), new KeyValuePair <string, string>("waterway", "wadi") })); return(noneCategory); }
private Category CreateNaturalCategory() { var naturalCategory = new Category { Color = "green", Name = Categories.NATURAL, Icon = "icon-tree" }; var caveIcon = new IconColorCategory("icon-cave", Categories.NATURAL, "black", "Cave"); naturalCategory.Items.Add(new IconAndTags(caveIcon, "natural", "cave_entrance")); var treeIcon = new IconColorCategory("icon-tree", Categories.NATURAL, "green", "Tree"); naturalCategory.Items.Add(new IconAndTags(treeIcon, "natural", "tree")); var flowersIcon = new IconColorCategory("icon-flowers", Categories.NATURAL, "purple", "Flowers"); naturalCategory.Items.Add(new IconAndTags(flowersIcon, "natural", "flowers")); return(naturalCategory); }
/// <summary> /// Constructor /// </summary> /// <param name="optionsProvider"></param> public TagsHelper(IOptions <ConfigurationData> optionsProvider) { _iconsToTags = new Dictionary <string, IconTags>(); _options = optionsProvider.Value; // ORDER IS IMPORTNAT FOR UI, BOTH CATEGORIES AND FIRST ICON // // Water // var springIcon = new IconColorCategory { Category = Categories.WATER, Color = "blue", Icon = "icon-tint", Label = "Spring, Pond" }; _iconsToTags[springIcon.Icon] = new IconTags(springIcon, new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("natural", "spring"), new KeyValuePair <string, string>("water", "pond") }); var waterfallIcon = new IconColorCategory { Category = Categories.WATER, Color = "blue", Icon = "icon-waterfall", Label = "Waterfall" }; _iconsToTags[waterfallIcon.Icon] = new IconTags(waterfallIcon, CreateOne("waterway", "waterfall")); var waterHole = new IconColorCategory { Category = Categories.WATER, Color = "blue", Icon = "icon-waterhole", Label = "Waterhole" }; _iconsToTags[waterHole.Icon] = new IconTags(waterHole, CreateOne("natural", "waterhole")); var waterWell = new IconColorCategory { Category = Categories.WATER, Color = "blue", Icon = "icon-water-well", Label = "Water Well" }; _iconsToTags[waterWell.Icon] = new IconTags(waterWell, CreateOne("man_made", "water_well")); var cistern = new IconColorCategory { Category = Categories.WATER, Color = "blue", Icon = "icon-cistern", Label = "Cistern" }; _iconsToTags[cistern.Icon] = new IconTags(cistern, CreateOne("man_made", "cistern")); // Historic // var ruinsIcon = new IconColorCategory { Category = Categories.HISTORIC, Color = "brown", Icon = "icon-ruins", Label = "Ruins" }; _iconsToTags[ruinsIcon.Icon] = new IconTags(ruinsIcon, CreateOne("historic", "ruins")); var archaeologicalSiteIcon = new IconColorCategory { Category = Categories.HISTORIC, Color = "brown", Icon = "icon-archaeological", Label = "Archeological Site" }; _iconsToTags[archaeologicalSiteIcon.Icon] = new IconTags(archaeologicalSiteIcon, CreateOne("historic", "archaeological_site")); var memorialIcon = new IconColorCategory { Category = Categories.HISTORIC, Color = "brown", Icon = "icon-memorial", Label = "Memorial" }; _iconsToTags[memorialIcon.Icon] = new IconTags(memorialIcon, new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("historic", "memorial"), new KeyValuePair <string, string>("historic", "monument"), }); // View Point // var viewpointIcon = new IconColorCategory("icon-viewpoint", Categories.VIEWPOINT, "black", "Viewpoint"); _iconsToTags[viewpointIcon.Icon] = new IconTags(viewpointIcon, CreateOne("tourism", "viewpoint")); // Camping // var iconPicnic = new IconColorCategory { Icon = "icon-picnic", Color = "brown", Category = Categories.CAMPING, Label = "Picnic Area" }; _iconsToTags[iconPicnic.Icon] = new IconTags(iconPicnic, new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("tourism", "picnic_site"), new KeyValuePair <string, string>("leisure", "picnic"), new KeyValuePair <string, string>("leisure", "picnic_table"), }); var campsiteIcon = new IconColorCategory("icon-campsite", Categories.CAMPING, "black", "Campsite"); _iconsToTags[campsiteIcon.Icon] = new IconTags(campsiteIcon, CreateOne("tourism", "camp_site")); // Natual // var caveIcon = new IconColorCategory("icon-cave", Categories.NATURAL, "black", "Cave"); _iconsToTags[caveIcon.Icon] = new IconTags(caveIcon, CreateOne("natural", "cave_entrance")); var treeIcon = new IconColorCategory("icon-tree", Categories.NATURAL, "green", "Tree"); _iconsToTags[treeIcon.Icon] = new IconTags(treeIcon, CreateOne("natural", "tree")); var flowersIcon = new IconColorCategory("icon-flowers", Categories.NATURAL, "purple", "Flowers"); _iconsToTags[flowersIcon.Icon] = new IconTags(flowersIcon, CreateOne("natural", "flowers")); // Other // var attractionIcon = new IconColorCategory("icon-star", Categories.OTHER, "orange", "Attraction"); _iconsToTags[attractionIcon.Icon] = new IconTags(attractionIcon, CreateOne("tourism", "attraction")); var natureReserveIcon = new IconColorCategory { Icon = "icon-nature-reserve", Color = "green", Category = Categories.OTHER, Label = "Nature Reserve, National Park" }; _iconsToTags[natureReserveIcon.Icon] = new IconTags(natureReserveIcon, new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("leisure", "nature_reserve"), new KeyValuePair <string, string>("boundary", "national_park"), new KeyValuePair <string, string>("boundary", "protected_area") }); var wikipediaIcon = new IconColorCategory("icon-wikipedia-w", Categories.WIKIPEDIA); _iconsToTags[wikipediaIcon.Icon] = new IconTags(wikipediaIcon, new List <KeyValuePair <string, string> >()); var hikingIcon = new IconColorCategory("icon-hike", Categories.ROUTE_HIKE); _iconsToTags[hikingIcon.Icon] = new IconTags(hikingIcon, CreateOne("route", "hiking")); var bicycleIcon = new IconColorCategory("icon-bike", Categories.ROUTE_BIKE); _iconsToTags[bicycleIcon.Icon] = new IconTags(bicycleIcon, new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("route", "bicycle"), new KeyValuePair <string, string>("route", "mtb") }); var fourWheelDriveIcon = new IconColorCategory("icon-four-by-four", Categories.ROUTE_4X4); _iconsToTags[fourWheelDriveIcon.Icon] = new IconTags(fourWheelDriveIcon, new List <KeyValuePair <string, string> >()); // For search but not as POI var peakIcon = new IconColorCategory("icon-peak"); _iconsToTags[peakIcon.Icon] = new IconTags(peakIcon, CreateOne("natural", "peak")); _iconsToTags[string.Empty] = new IconTags(new IconColorCategory(), new List <KeyValuePair <string, string> > { new KeyValuePair <string, string>("landuse", "farmyard"), new KeyValuePair <string, string>("waterway", "stream"), new KeyValuePair <string, string>("waterway", "river"), new KeyValuePair <string, string>("waterway", "wadi") }); }
public IconTags(IconColorCategory iconColorCategory, List <KeyValuePair <string, string> > tags) { IconColorCategory = iconColorCategory; Tags = tags; }