bing-maps

Bing Maps in a hybrid app

最后都变了- 提交于 2019-12-08 08:24:48
问题 I am currently trying to use the Bing Maps AJAX API v7 in the new 'Multi-device hybrid App" template provided in Visual Studio, which uses Apache Cordova to provide crossplatform compatibility. I have written the following code, following the template at http://msdn.microsoft.com/en-us/library/gg427624.aspx : <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <head> <meta charset="utf-8" /> <title>Wand</title> <!-- Wand

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

Virtual Earth / Bing Maps - How To Calculate Best Zoom Level

一曲冷凌霜 提交于 2019-12-08 05:02:35
问题 I'm working on some map stuff and I'm stuck with something that seems to be quite basic. The gist of what I'm doing is adding 10 flags to a map, and I need to dynamically set the zoom level and center of the map based on the position of the pins (map needs to be zoomed in as far as possible while still showing all pins). This works exactly as expected with MultiMap without any intervention (as expected), but the Virtual Earth map doesn't play nice. If I don't give it a center Lat/Lon, it

how to draw driving route path using two point latitude and longitude

假装没事ソ 提交于 2019-12-08 01:01:47
问题 i need know how to draw driving route between two locations(pushpin) using latitude and longitude in this locations.i know how to draw two locations driving route using location names.need use latitude and longitude for this. is it possible ? (in bing map ) 回答1: Yeah, it's possible. Try the below code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title></title> <meta http-equiv="Content-Type" content=

MVVM Light - Relaycommand with Pushpins

一曲冷凌霜 提交于 2019-12-07 18:21:39
问题 I am data binding some pushpins to a MapLayer. They display fine, but when I use the relaycommand to pass the eventargs from the mouse leftbuttonUp, the object sources is an elipse. I have used this method on a MapPolygon and picked up the information I wanted from the object. Maybe I am aproaching this badly as I am new to mvvm, so please let me know! This works for my MapPolygons (vm references the namespace of my extendedMapPolygon class) <DataTemplate x:Name="polyTemplate"> <vm

How to bind maximum and minimum zoom levels in Bing Maps Silverlight

安稳与你 提交于 2019-12-07 15:42:44
问题 I would like to implement a custom zoom slider for a Bing Maps control in my silverlight application. I can set up the mechanics of it in a pretty straightforward way: <Slider ... Value="{Binding ZoomLevel, Mode=TwoWay, ElementName=MyMap}"/> However, I can't find a way to bind the Maximum and Minimum properties of the Slider to the maximum and minimum available zoomlevel for the map. I am using the default views (Road, Aerial) and no custom tilesets or anything fancy. I've tried something

Add Bing Maps Reference to Windows Phone 8.1 project

北慕城南 提交于 2019-12-07 14:32:37
问题 I want to add a reference to Bing Map in windows Phone 8.1 C# project. I have installed this package http://visualstudiogallery.msdn.microsoft.com/224eb93a-ebc4-46ba-9be7-90ee777ad9e1/ But now I can't choose the dll under "Add Reference". If I try this for a Windows 8.1 project (Surface) I can choose the Bing Maps DLL and use the Map Element. How can I use the Bing Map under Windows Phone 8.1? I tried this tutorial but it didn't work for me. http://msdn.microsoft.com/en-us/library/dn456475

how to format the text or change the font size inside pushpin in bingmaps ajax

China☆狼群 提交于 2019-12-07 13:42:33
问题 I've created pushpin using the follwing code var pin = new Microsoft.Maps.Pushpin(data._LatLong, { icon: 'images/pushpin.png', text: '1', typeName: 'pushpinStyle' }); Text displayed in the pushpin icon is 5px below from top of the icon by default. I've changed the height and width of the pushpin icon, but no improvement in text format inside the pushpin. How to format the text inside the pushpin. I've googled a lot but i didn't get the correct response. Thanks in advance 回答1: You are on the

Can I adjust my Bing Map's View/LocationRect/Bounding Box by a small amount?

送分小仙女□ 提交于 2019-12-07 12:23:07
问题 I am using this code: photraxMap.SetView(new LocationRect(App.photosetLocationCollection)); ...to zoom a map to show the List of Locations contained in photosetLocationCollection. photraxMap is a BingMap. SetView() is a Bing Maps method, not my own custom method. The problem is that it works too well - it shows all the markers/pushpins, but just barely - the extreme locations are "clipped" as you can see here: In the screamshot, you can see that the pushpin north of San Andreas as well as the

Bing maps for iPhoneSDK

元气小坏坏 提交于 2019-12-07 11:51:06
问题 Does anyone know how to create simple iPhone app using bing maps? 回答1: The Bing Mobile/Bing Maps team released a new Bing Maps iOS SDK for iPhone and iPad in early May 2011. You can download the SDK here and read about the details in this blog post. 回答2: Personally I would start by reading their API and figure out which services to use 回答3: You may also find that the Bing Maps V7 AJAX control used with PhoneGap gives you a lot more power. Using this approach you get the full power of Bing