Beispiel #1
0
 virtual protected Pin MakePin(AmenityNode node)
 {
     return(new Pin
     {
         Label = GetTitle(node),
         Address = node.Id,
         Position = new Position(node.Latitude, node.Longitude),
         Icon = MakeIconFunc(node),
     });
 }
Beispiel #2
0
        protected string GetTitle(AmenityNode node)
        {
            var result = node.Amenity.CapitalizeFirstLetter();

            if (node.Tags.TryGetValue("name", out var name))
            {
                result = name + " | " + result;
            }
            else if (node.Tags.TryGetValue("operator", out var op))
            {
                result = op + " | " + result;
            }
            return(result.Replace("_", " "));
        }