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), }); }
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("_", " ")); }