Exemplo n.º 1
0
        public static string ToOpenStreetMapsLink(this IGeoLocation location, int zoomLevel = 17)
        {
            var formatter = new OpenStreetMapsLinkFormatter
            {
                ZoomLevel = zoomLevel
            };

            return(location.ToFormattedString(formatter));
        }
Exemplo n.º 2
0
        public static string ToBingMapsLink(this IGeoLocation location, string?pinName = null)
        {
            var formatter = new BingMapsLinkFormatter
            {
                PinName = pinName
            };

            return(location.ToFormattedString(formatter));
        }
Exemplo n.º 3
0
        public static string ToGoogleMapsLink(this IGeoLocation location)
        {
            var formatter = new GoogleMapsLinkFormatter();

            return(location.ToFormattedString(formatter));
        }