bing-maps

Bing Maps vs Google Maps -> markers are in different places

拥有回忆 提交于 2019-12-11 06:22:33
问题 I've made 2 maps, one with Bing Maps and one with Google Maps. They both pull from the same data file to put a bunch of pins on the map. However the pins on the Bing map look like they are offset too far north and so not in the right place. see http://upstairsweb.com/examples/bingmap.html vs http://upstairsweb.com/examples/googlemap.html 回答1: The problem is with the icon you're using - the PNG file at http://upstairsweb.com/examples/SmallRedMapPin.png itself is 16px x 18px is size, but the

Bing Maps Drawing Tools Module

时光怂恿深爱的人放手 提交于 2019-12-11 04:59:26
问题 We are using Ricky Brundritt Drawing Tools Module for Bing Maps V7. Is there a Bing Maps V8 version of this ? Since we are unable to draw shapes using this. Any help is greatly appreciated. 回答1: Bing Maps V8 has drawing tools built in. Use that instead of the old drawing tools module I created for V7 (old one does not work as good as built in one in V8). Here is some resources: https://bingmapsv8samples.azurewebsites.net/#DrawingTools_Basic https://www.bing.com/api/maps/sdkrelease/mapcontrol

ZIndex of pushpins in WP7 bing map control

给你一囗甜甜゛ 提交于 2019-12-11 03:25:45
问题 I have a Bing silverlight map control for Windows phone 7. I am trying to display on top currently selected pushpin. Here is the snippet: <my:Map x:Name="map" Canvas.ZIndex="1" CredentialsProvider="{StaticResource Credentials}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" CopyrightVisibility="Collapsed" LogoVisibility="Collapsed"> <my:MapItemsControl x:Name="Pushpins"> <my:MapItemsControl.ItemTemplate > <DataTemplate> <my:Pushpin Location="{Binding Location}" Canvas.ZIndex="

WP7 App exits when deployed

一笑奈何 提交于 2019-12-11 02:57:50
问题 I've been developing a WP7 app that includes "Locate Me" style functionality with Bing Maps. I have an early prototype WP7 device and I can deploy to this no problem. 2 of my collegues have retail WP7 devices and when running the app it always exits at a certain point. I assume the crash occurs within this section of code: void UpdateMap(GeoPosition<GeoCoordinate> position, double zoom) { _foundLocation = position; mapLocation.Center = position.Location; mapLocation.ZoomLevel = zoom;

Visual studio 2010 Bing Map location finder by longitude and latitude

六月ゝ 毕业季﹏ 提交于 2019-12-11 00:51:17
问题 I am creating a windows 7 phone application which able to search for location by name of location. Now my problem is that i can't locate the current location and the bing map is unable to search for the location. I am using visual studio 2010 c sharp coding. 回答1: You can use the Bing Locations API to retrieve the latitude and longitude of a location specified by name. There is a REST API that can provide responses in JSON or XML and there is also a SOAP API (just navigate through the docs to

Bing Virtual Earth 7.0 calculate area

流过昼夜 提交于 2019-12-11 00:44:01
问题 I have a map where i have created pushPin for all the places i have checked in on facebook. I want to zoom in on the area where i have the most checkinplaces (pushPins). I could have a static zoom level and calculate some kind of median value but if i check in 20 times in Paris and 20 times in Los Angeles I'd end up somewhere in the middle of the Atlantic Ocean (or the North Pacific or something). I have an array with all the locations (longitudes and latitudes) to play with. 回答1: You can

Binding Pushpins in ObservableCollection to Bing Maps Control WP7

北战南征 提交于 2019-12-10 23:49:01
问题 I'm working on a Windows Phone 7 Project (Mango) and am trying to bind Pushpins to my silverlight Bing Maps control using an ObservableCollection, but it wont work. I've been sat here for the last 5 hours, scouring the internet and other questions on stackoverflow and have implemented some answers but can't find one which works :( I would be very grateful for any ideas as to why its not working. I'm pretty sure its to do with my XAML as my ObservableCollection is populated correctly (checked

(bing) maps: +5000 pinpoints

為{幸葍}努か 提交于 2019-12-10 23:16:26
问题 I am building a map application with the silverlight bing maps control. In the map control I want to show all of the subscribed customers. The amount of customers is somewhere between 5000 and 7000, this means I can't show them all at once. This would result in a crash I guess. How would you solve this issue? I've read about events on zoomlevels etc. about tile layers about spatial sql but I have no idea what the right solution is in this situation and where to begin. This seems like a pretty

Center and Zoom on Bing Maps WPF

不羁岁月 提交于 2019-12-10 22:09:53
问题 I created a Bing Maps WPF dialog box and would like set the center and zoom level programmatically. I have tried using SetValue() , but I haven't found the right property to pass to it. Here is the XAML for my Bing Maps dialog: <Window x:Class="RAPMkI.BingMapsDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:m="clr-namespace:Microsoft.Maps.MapControl.WPF;assembly=Microsoft.Maps.MapControl.WPF" Title=

how to get country name from latitude and longitude

☆樱花仙子☆ 提交于 2019-12-10 20:45:35
问题 How can i get the country name from latitude and longtitude using c#? Im using the Bing.Map API Location location12 = new Location(location.Latitude, location.Longitude); MapLayer.SetPosition(pin, location12); Map.Children.Add(pin); string placeName = GetPlaceNameForCoordinates(location.Latitude, location.Longitude); 回答1: You'll want to use a reverse geocoding API of some kind. For example: The Bing Maps API (the webservice) The Google Geocoding API The Geonames API If you're already using