bing-maps

Map Highlight Odd/Even Side of Street

夙愿已清 提交于 2019-12-06 10:08:24
I have two coordinates of a street. Either both Odd or Even. So for example 15 ABC Street and 77 ABC Street (with their reverse geocode). I'm trying to draw a path line that is near the sidewalk. I used google maps api and did not find a way to do it. The directions api draws a line in the middle of the road, and I cannot find a way to do a geometric translation to either side of the street. I don't mind using any other API as long as I can solve the problem. 来源: https://stackoverflow.com/questions/33886715/map-highlight-odd-even-side-of-street

Get list of Local Businesses using Bing Maps Search service API

感情迁移 提交于 2019-12-06 09:07:51
问题 I am developing a Windows Phone 7 Silverlight application that currently displays a map that show's the user where they are by getting the coordinates from location services. I can get an address using bing Reverse geocoding API. I would like to display local businesses to the user that may be off interest by placing pushpins on the map. However I'm not able to get any search results from the Search Service API. Whatever I enter I get 0 results and I find the documentation lacking. I've tried

WP7 Bing Map Pushpin - how to tweak the location of the custom pushpin?

馋奶兔 提交于 2019-12-06 06:09:50
问题 Ok, simple question, but I haven't found the obviously easy answer yet! I have a Windows Phone 7 app with map integration, with a set of pushpins on the map. The pushpin is custom (just a ellipse/circle). Unfortunately, the location of the custom pushpin is "off" from the geolocation. when you zoom in, it gets closer and closer to accurate, and is the farthest off in the most zoomed out level. I think this is an offset issue. I looked at RenderTransformOnOrigin, but it didn't appear to help

Making the Bing Map API Map responsive

筅森魡賤 提交于 2019-12-06 05:14:36
I am using Bing Map API v7 and I am trying to make it responsive. My initial idea was the typical <div id='mapDiv' style="position:relative; width:100%; height:auto;"></div> The problem is the map disappears completely when I do this. Any ideas on how to make the map scale down correctly if I can't use height:auto; The map works fine when I define a height. I am pretty stumped by this. Not sure what else I can show of my code to try and help but let me know if you need more. This was the solution I used: $(window).ready(updateHeight); $(window).resize(updateHeight); function updateHeight() {

MVVM Light - Relaycommand with Pushpins

拟墨画扇 提交于 2019-12-06 04:43:36
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:extendedMapPolygon cName="{Binding _cName}" Locations="{Binding _Locations}" /> </DataTemplate> Here is the XAML

Add Bing Maps Reference to Windows Phone 8.1 project

心已入冬 提交于 2019-12-06 02:48:10
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.aspx The Bing Maps SDK you are referring to is for Windows 8.1 apps, not Windows Phone 8.1. The maps for

Why can I not reference Bing Maps in my app?

Deadly 提交于 2019-12-06 01:11:04
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... Could not install package 'BingMapAppSDK 1.0.1011.1716'. You are trying to install this package into a

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

谁说胖子不能爱 提交于 2019-12-06 00:05:52
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 like this: Maximum="{Binding Path=Map.Mode.ZoomRange.To, Mode=TwoWay}" Minimum="{Binding Path=Map.Mode

Bing Maps Ajax API - get location from address

主宰稳场 提交于 2019-12-05 23:25:31
问题 I'm using Microsoft.Maps API (AJAX control v. 7). I want to display pin for an address. When I use: var loc = new Microsoft.Maps.Location(47.592, -122.332); var pOptions = {icon: 'img/ICN_Bullet_Blue_25x38.gif', text: '1'}; var pin = new Microsoft.Maps.Pushpin(loc, pOptions); It's working fine. How can I get latitude and longitude from address, so I will later use it for pin location ? 回答1: Bing Maps includes geocoding support (finding location by addresses). You have two options for this:

How to zoom to fit in WP7 Bing Maps control using LocationCollection?

ε祈祈猫儿з 提交于 2019-12-05 23:13:51
问题 How can I zoom the Microsoft.Phone.Controls.Maps.Map control to the correct zoom level on Windows Phone 7? I have a LocationCollection of GeoCoordinates and I calculated the Center myself, but now how do I calculate the correct zoom level to fit the LocationCollection? P.S. Is there an out of the box method to calculate the center of GeoCoordinates so I don't have to calculate it myself? EDIT: I've found another fine solution: http://4mkmobile.com/2010/09/quick-tip-position-a-map-based-on-a