bing-maps

Get business type/industry from Bing Phonebook API

别等时光非礼了梦想. 提交于 2019-12-18 09:22:22
问题 The below example shows how I'm building the query string that will return a bunch of addresses for the search parameters defined in the query string (in this case, Starbuck's)...I'm wondering if it's possible to use the Bing Phonebook API to define a type of entity that you're looking for e.g. Cafe, Gas Station, Software Company, etc...? function Search(position) { // note a bunch of this code uses the example code from // Microsoft for the Phonebook API var requestStr = "http://api.bing.net

MVVM Windows Phone 8 - adding a collection of pushpins to a map

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 03:01:44
问题 Here is the XAML code: <maps:Map x:Name="NearbyMap" Center="{Binding MapCenter, Mode=TwoWay}" ZoomLevel="{Binding ZoomLevel, Mode=TwoWay}" > <maptk:MapExtensions.Children> <maptk:MapItemsControl Name="StoresMapItemsControl" ItemsSource="{Binding Treks}"> <maptk:MapItemsControl.ItemTemplate> <DataTemplate> <maptk:Pushpin x:Name="RouteDirectionsPushPin" GeoCoordinate="{Binding Location}" Visibility="Visible" Content="test"/> </DataTemplate> </maptk:MapItemsControl.ItemTemplate> </maptk

Bing Map for Android

浪子不回头ぞ 提交于 2019-12-17 21:34:08
问题 we are planning to use bing maps for Android device. We are not using google maps as we have premium licences for Bing and hence we prefer to use that. But after few days of search I was not able to find any thing substantial about how to use bing maps in android phones. One option I tried was to use WebView and then display the bing maps but it was not as intuitive as what we could get if it was a MapView . So if is possible to get bing maps in the same way as we get the google maps in the

Get view bounds of a Map

核能气质少年 提交于 2019-12-17 19:54:43
问题 I'm developing a Windows Phone 8.1 app that works with Bing Maps. During the rendering of this map I use the TrySetViewBoundsAsync to set correctly my custom view. But now I want to get this information (after the user changes the view by zooming/moving the map) but I don't find any method that helps me. How can I get the view bounds? 回答1: There isn't a built in method for this, however it can be done fairly easily. Here is a bit of code for this which I pulled from the Microsoft Maps Spatial

Using a Web Browser with a button and text box linked across 2 forms?

眉间皱痕 提交于 2019-12-14 03:33:30
问题 I have written a piece of a code which takes the postcode from my textbox then searches it within Bing for the user, at the moment all of it is on Form1 and works as it should, I'm looking to improve on the idea by allowing the user to press a button on Form1 then the web browser appearing in Form2. So far my attempts to figure this out have failed and was wondering if anyone had any ideas. I have attached a copy of my code which all works within in one Form Public Class Form1 Dim Automate As

How to display a DataBound Pushpin on Windows Phone

◇◆丶佛笑我妖孽 提交于 2019-12-14 03:13:36
问题 I am trying to create a pushpin on Windows Phone that shows a number of locations, including there name, rating and more. I have searched MSDN, Stack Overflow and other sites for a solution to this and found only partial answers. This is my current attempt. It doesn't work at all. It does create a pushpin, but it is not changed to show a grid or any of the other elements. Instead it shows a blank pushpin in the top left of the map. <mi:Map x:Name="map" Margin="-12,0" d:LayoutOverrides="Width"

Get distance of MapControl border in degrees

為{幸葍}努か 提交于 2019-12-14 02:47:12
问题 I have a MapControl and would like to know how many degrees are currently shown on the x and y axes. First example: 360 degrees are shown on the x axis (longitude) ~90 degrees are shown on the y axis (latitude) (The zoom level is 3.2 and it's max zoomed out) Second example: ~220 degrees on the x axis (longitude) 180 degrees on the y axis (latitude) (zoom level: 1.7; max zoomed out) I tried calculating the current degrees on the x axis using following code: double dist = 360 * Math.Pow(0.5,

Invalid Credentials for bing maps in wpf application

谁说我不能喝 提交于 2019-12-14 00:06:57
问题 Impossible to display the map. I still have a error message: "Invalid Credentials. Sign up for a developer account at: http://www.microsoft.com/maps/developers" However, I created a account correctly and obtained a valid key: Application name: Geography Key: *My key* Application Url: Key type: Basic / Dev/Test Created date: 08/12/2015 Expiration date: None My xaml code: <Window x:Class="Geography.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http:/

Binding pushpins to Bing maps

拟墨画扇 提交于 2019-12-13 18:21:14
问题 Im working a a WP7 project, and try to bing pushpins to bing maps a particular way, but it just wont work. It seems to read the XML file ok as it counts all the items, and then loads the map, but just puts the black pushpin in the top right hand corner of the map. Would be grateful for any ideas why its not dispalying the pushpins. Many thanks. I think I have included all the relevent code.. namespace maps_data_test_2 { public class LocationData { public Location Location { get; set; } public

Bing maps - how can I turn off street labels in Bird's Eye view?

我的未来我决定 提交于 2019-12-13 18:18:38
问题 For a client I need to show a static Bing map, in Bird's Eye view, with the street labels turned off. I can accomplish Bird's Eye view with no labels for dynamic view by just clicking the toolbar buttons for Bird's Eye view and labels off. But my goal is to show this for a static map, on load, without the need to click any buttons. Thank you! 回答1: I'm putting everything in the <body> for demonstration purposes. You'd probably put the loading of the external mapcontrol library and your GetMap(