bing-maps

Bing Map V8 Cluster Pass real time data

拥有回忆 提交于 2019-12-10 19:52:02
问题 I am just starting with Bing map. Gone through few examples in official documentation. Example from Bing map V8 official documentation <!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8" /> <script type='text/javascript' src='http://www.bing.com/api/maps/mapcontrol?callback=GetMap' async defer></script> <script type="text/javascript"> var map, clusterLayer; function GetMap() { map = new Microsoft.Maps.Map('#myMap',{ credentials: 'Your Bing Maps Key', zoom: 3 }); Microsoft.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

How to prevent overlapping pushpins at the same geolocation with Bing Maps?

拥有回忆 提交于 2019-12-10 16:26:51
问题 If you have 2 pushpins on 'London' at the same geolocation, is there anything in the API to move them apart so they are both visible? I can only find documentation on their old map points API which had PreventIconCollisions, this is what I want but can't see any reference to this in the new API. I am using the JavaScript API. 回答1: So if I understand correctly, you have similar information on the same location, it this correct? In order to display both information, you will have two options:

Bing maps on Android emulator works but not on device

断了今生、忘了曾经 提交于 2019-12-10 16:15:51
问题 I've set up the http://bingmapsandroidsdk.codeplex.com/ to try bing maps instead of google maps on Android. Because I was unable to set that up. I'm able to run Bing maps on my emulator but I'm unable to run it on my device(Galaxy S2). I have a wifi connection on my phone but I'm still unable to get past the load screen. I also checked this question but it doesn't solve the problem Working on Emulator but not on the real Android device So my code: Manifest <uses-permission android:name=

WP7, How to use a service reference after adding it to Visual Studio 2010

拟墨画扇 提交于 2019-12-08 16:08:21
问题 I'm following this example for connecting to the Bing Maps geocode service: http://blogs.msdn.com/b/dragoman/archive/2010/10/07/wp7-code-reverse-geocoding-with-the-bing-maps-service.aspx About half way down the page, it explains how to add a service reference in Visual Studio 2010, which I was able to do successfully. Then it says to add "using GeoCode.GeoCodeService", but when I do, I get an error saying "The type or namespace 'GeoCode' could not be found" Am I doing something wrong. The

Bing maps silverlight control custom pushpin

三世轮回 提交于 2019-12-08 13:50:12
问题 I tried to make a custom pushpin for the Bing Maps silverlight control, but I can only add 1 pushpin. At the second pushpin I get the following error: System.ArgumentException: Value does not fall within the expected range. at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.Collection_AddValue[T](PresentationFrameworkCollection`1 collection, CValue value) at MS.Internal.XcpImports.Collection_AddDependencyObject[T](PresentationFrameworkCollection`1 collection,

Getting longitude/latitude from a link in JavaScript

风流意气都作罢 提交于 2019-12-08 12:38:58
问题 I am fairly new to programming. I need to extract coordinates from a link I get when recieving my data. The object I'm interested in looks like this: event: { "type": "message", "attachments": [{ "facebookUrl": "https://www.bing.com/maps/default.aspx?v=2&pc=FACEBK&mid=8100&where1=52.217125%2C+5.959805&FORM=FBKPL1&mkt=en-US" }], } So, I'm interested in event.attachments[0].facebookUrl (is this the right notation to access it?). What is the right approach to get the coordinates lat: 52.217125

How to get raw traffic flow data

一笑奈何 提交于 2019-12-08 10:00:58
问题 Creating application to use car count data from traffic. How do I access the live google maps, waze or bing maps data? 回答1: The Azure Maps platform has raw traffic data you can access for analysis purposes (I have been working with several others who are doing this). There are two approaches. The first is to use the Traffic flow segment API: https://docs.microsoft.com/en-us/rest/api/maps/traffic/gettrafficflowsegment The second is to use the traffic flow tiles. https://docs.microsoft.com/en

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=

Traffic Layer for Bing Maps in Silverlight

馋奶兔 提交于 2019-12-08 09:43:42
问题 I have a Bing Maps Silverlight Application and want to display Traffic Information on the Map. It seems to be implemented in the AJAX Version, but not in the Silverlight Version. So how can I implement a working traffic layer for Silverlight? 回答1: For everyone who is interested in the solution: After hours of searching and trying I found the solution here: Custom Rendering in Bing Silverlight Control public class TrafficTileSource : TileSource { public TrafficTileSource() : base