Пример #1
0
        /// <summary>
        /// Returns the style to use on an CompleteGeo object given its tags and a styleset to search against.
        /// </summary>
        /// <param name="tags">the tags attached to a CompleteGeo object to search</param>
        /// <param name="styleSet">the styleset with the rules for parsing elements</param>
        /// <returns>The TagParserEntry that matches the rules and tags given, or a defaultStyle if none match.</returns>
        public static StyleEntry GetStyleForOsmWay(TagsCollectionBase tags, string styleSet = "mapTiles")
        {
            var tempTags = tags.ToDictionary(k => k.Key, v => v.Value);

            return(GetStyleForOsmWay(tempTags, styleSet));
        }