bing-maps

Which longitude/latitude adjustments do I need to enlarge my map to the northwest and to the southeast?

[亡魂溺海] 提交于 2019-12-23 06:07:14
问题 This is related to my earlier question I want to add a "shim" to my map so that the extreme pushpins aren't half-in bounds, half out-of-bounds. I'm on the right track (no pun intended), but my logic is faulty. I wrote this method: // Adapted from Brundritt and Boonaert: https://stackoverflow.com/questions/26937358/can-i-adjust-my-bing-maps-view-locationrect-bounding-box-by-a-small-amount public static Location GetAShimLocation(IList<Location> locations, bool IsForNorthwestCorner) { const

Bing GeocodeService userState usage as custom additional parameter

守給你的承諾、 提交于 2019-12-23 05:55:07
问题 In my Windows Phone 7.1 application I have to send a request that consumes Bing geocoding services (using the address: http://dev.virtualearth.net/webservices/v1/geocodeservice/geocodeservice.svc/mex, without setting the option Always generate message contracts in my Service Reference Settings). My request is made in this way: BingMapGeoCodeService.GeocodeRequest request = new BingMapGeoCodeService.GeocodeRequest(); request.Options = new BingMapGeoCodeService.GeocodeOptions() { Filters = new

Google maps or Bing maps API?

柔情痞子 提交于 2019-12-23 04:03:39
问题 I'm trying to figure out what to use for my web application. I"m currently using Google maps api, however I have started looking at Bing maps api more. This application among other things, gives directions to where you have to go. The reason I'm thinking about going to Bing is that Google has gotten some addresses wrong (probably about 10%) and Bing has gotten 0 wrong so far. Does anyone know if one is more accurate than the other (other than me just performing my non scientific test on both)

WPF map control with supported directions, search

淺唱寂寞╮ 提交于 2019-12-23 03:07:52
问题 I am searching Windows 7 compatible WPF/WinForms control that can display maps, calculate directions, perform searching and other map operations. Basically, it all doesn't have to integrated in one solution, it can be something like one control for maps display (Google or Bing or Nokia or OSM) and some library that supports all other operations, but it should be easy to integrate this two, like draw calculated route on map or fetch calculated routes from map. What i don't want is that all is

Why can I not reference Bing Maps in my app?

好久不见. 提交于 2019-12-22 09:39:05
问题 I tried to add a Reference to Bing Maps in my app by right-clicking on References | Add References | Windows | Extensions | Bing Maps for C#... , but selecting "OK" does nothing - the Reference is not added. I then tried adding it via Tools | Extensions and Updates , but when I installed the latest version (with today's date - 11/5/2012), I then got: Successfully installed 'BingMapAppSDK 1.0.1011.1716'. Successfully uninstalled 'BingMapAppSDK 1.0.1011.1716'. Install failed. Rolling back...

No more bird's eye view in the Bing Maps V8 API?

拜拜、爱过 提交于 2019-12-22 05:26:10
问题 It appears that Bird's Eye View is no longer available in V8. Can anyone confirm that this is actually the case or if there is any way of still using Bird's Eye View in the new version? Microsoft's documentation about this is very poor, so I just pieced the information together from various sources. For example: 1. In their MapTypeId Enumeration the 'birdseye' option doesn't exist anymore. This used to exist in V7. 2. Bing's own snippet generator for embeded maps has an option to add the Bird

Vector Map Tiles on Bing Map Control

江枫思渺然 提交于 2019-12-22 01:37:31
问题 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

Display locations based on KML file in Bing Windows Phone 7

故事扮演 提交于 2019-12-22 00:50:34
问题 Currently i am using the following code to display locations on a map in my application: //Bustop 8448 – Pushpin BusStop8448 = new Pushpin(); BusStop8448.Background = new SolidColorBrush(Colors.Red); BusStop8448.Location = new GeoCoordinate(-36.934608, 174.73016); BusStop8448.Content = "Bus Stop: 8448 "; BusStop8448.MouseLeftButtonUp += new MouseButtonEventHandler(BusStop8448_MouseLeftButtonUp); var BusStop8448Press = sender as Pushpin; this.Map.Children.Add(BusStop8448); This is very tedious

Bing Maps V7 Context Menu

两盒软妹~` 提交于 2019-12-21 23:04:21
问题 I use Bing Maps Ajax V7. I want on right click to get an infobox and show my links inside. function GetMap(){ // Initialize the map map = new Microsoft.Maps.Map(document.getElementById("mapDiv"),{credentials:""}); attachrightclick = Microsoft.Maps.Events.addHandler(map, 'rightclick',showPopupMenu); } function showPopupMenu(e){ var latlong = new Microsoft.Maps.Location(e.getY(),e.getX()); var defaultInfobox = new Microsoft.Maps.Infobox(latlong, {title: '<div>My Pushpin<div>', visible: true} );

Using Google maps in Windows Phone 8

北城以北 提交于 2019-12-21 17:51:44
问题 It's possible using Google maps in Windows Phone 8? The question may seem strange, since the internet is very much a post about it. But in practice, I was faced with real problems. The only way I know to use Google maps (with MapTileLayer.TileSources) is described in this article. But you can not replace the tiles in the new map control in WP 8. Of course we can use the old map contol plugging the appropriate library. This is where I have problems begin. The old Bing Map control in WP8 has a