uwp-maps

Binding a MapIcon in XAML

放肆的年华 提交于 2019-12-10 17:38:10
问题 I'm trying to use a MapControl, showing a MapIcon for the currently viewed location. In my XAML, I've got: <Maps:MapControl x:Name="MapControl" ZoomLevel="14" Center="{Binding Geopoint, Mode=OneWay}" Margin="-12,0,-12,0" Tapped="directions_Click" Height="200" MapServiceToken="{StaticResource BingMapsKey}" PanInteractionMode="Disabled" RotateInteractionMode="Disabled"> <Maps:MapIcon Location="{Binding Geopoint}" Title="{Binding AttractionName}" /> </Maps:MapControl> The items that I'm binding

UWP MapControl: MapElement fixed heading

那年仲夏 提交于 2019-12-08 09:54:52
问题 I'm adding a MapElement to my MapControl but when I rotate the MapControl, my MapElement rotates along with it. Is it possible to have a fixed heading on the element? I've tried using a RotateTransform on the MapElement but the Element seems to just completely disappear. I'm using the following code: Also, the <Planes:Airplane /> object is just a custom drawn path. <Maps:MapControl x:Name="Map" Style="None" Grid.Row="2" TiltInteractionMode="GestureAndControl" ZoomInteractionMode=

Map Control won't show up UWP XAML

旧街凉风 提交于 2019-12-08 06:24:17
问题 I'm trying to run a simple UWP application on my PC to test the Map Control, using the guidelines in: https://msdn.microsoft.com/en-us/windows/uwp/maps-and-location/display-maps#get-and-set-a-maps-authentication-key I have obtained a map key from Bing Maps Dev Center and assigned it to the map control. However, in the designer the control is shown up with a "This element is enabled only when the application is running" message. When I run the application, nothing is displayed on the

Vector Map Tiles on Bing Map Control

ⅰ亾dé卋堺 提交于 2019-12-04 22:58:27
Hello I am working on a UWP map based application. I am currently using Raster Tiles data to remove the Bing Map default tiles. I Want to now shift to using Vector Tiles on the Bing map control. For Raster Tiles I know there are two ways: Set Tile data via the HTTPTileSource Set Tile data via the BitMapTileSource I want to know how can I implement Vector Tiles on the bing map control. The Vector tiles I get are of the extention .pbf . I have to hit the URL and get the .pbf file now how do I place the tile on the map? This won't be easy, but can be done. There are two key things you will need

Invalid Credentials on MapLocationFinderResult uwp c#

痴心易碎 提交于 2019-12-02 08:11:19
I am having a strange problem with the use of MapLocationFinder. I am using MapLocationFinder to retrieve longitude and latitude based on string address: string address = ""; // Any address here var locFinderResult = await MapLocationFinder.FindLocationsAsync(address, new Geopoint(new BasicGeoposition())); After this, I use Laucher to start "drive to" application and get navigation map: var geoPos = locFinderResult.Locations[0].Point.Position; var url = $"ms-drive-to:?destination.latitude={geoPos.Latitude.ToString(CultureInfo.InvariantCulture)}&destination.longitude={geoPos.Longitude.ToString