示例#1
0
        /// <summary>
        /// Determines the name of the matching style for a CompleteGeo object
        /// </summary>
        /// <param name="tags">the tags attached to a completeGeo object</param>
        /// <param name="styleSet">the styleset to match against</param>
        /// <returns>The name of the style from the given styleSet that matches the CompleteGeo's tags</returns>
        public static string GetAreaType(TagsCollectionBase tags, string styleSet = "mapTiles")
        {
            var tempTags = tags.Select(t => new PlaceTags()
            {
                Key = t.Key, Value = t.Value
            }).ToList();

            return(GetAreaType(tempTags));
        }
 /// <summary>
 /// Gets the enumerator.
 /// </summary>
 /// <returns></returns>
 public IEnumerator <Attribute> GetEnumerator()
 {
     return(_tagCollection.Select(x => new Attribute(x.Key, x.Value)).GetEnumerator());
 }