Exemplo n.º 1
0
        private void OnPresentOnMap(CityData obj)
        {
            WbMapBrowser.Visibility = Visibility.Visible;
            var mapUrl = $"www.openstreetmap.org/?lat={FormatCoord(obj.Latitude)}&lon={FormatCoord(obj.Longitude)}&zoom=14&layers=M";

            WbMapBrowser.Navigate("https://" + mapUrl);
        }
Exemplo n.º 2
0
        public MapView(ICitySearchService citySearchService)
        {
            InitializeComponent();

            citySearchService.PresentOnMap += OnPresentOnMap;

            Overlay.Visibility = Visibility.Visible;
            WbMapBrowser.Navigate("https://www.openstreetmap.org");
        }