bing-maps

Bing Maps incompatibility with MooTools

≡放荡痞女 提交于 2019-12-25 04:47:11
问题 I have an existing project that uses MooTools that I would like to add a Bing Map to. I've discovered, however, that MooTools breaks Bing Maps. I'm kind of at a loss of how to fix this. Here is a jsfiddle that shows the problem. If you watch your console when you click the Run button, you'll see that Bing throws an exception Uncaught TypeError: n.open is not a function If you then disable MooTools, and hit run again, you'll see the map appears in the results pane. How do I get past this? Is

How to get nearby locations using query API in windows phone 8.1

十年热恋 提交于 2019-12-25 03:42:06
问题 Using this query api how to get the nearby places in to our mapcontrol in windows phone 8.1. When I placed the code from the above link it shows the 404 error (i.e resource not found). I got bing maps key. But how to place the access id. How the data source are named. Please help me. string BingMapsKey = "MY_BING_MAPS_KEY"; string DataSourceID = "20181f26d9e94c81acdf9496133d4f23"; string dataSourceName = "petrolbunk"; string dataEntityName = "petrolbunk"; string accessId = DataSourceID;

Center map between two points WinRT

陌路散爱 提交于 2019-12-25 03:26:43
问题 im trying to center the windows phone map between two points, adjusting center and zoom to make that points visible at the same time. Im Android and IOS there are functions to do it, as example this is how to do it in Android: LatLngBounds.Builder builder = new LatLngBounds.Builder(); builder.include(myPos.getPosition()); builder.include(defaultPos.getPosition()); mapa.animateCamera(CameraUpdateFactory.newLatLngBounds(builder.build(), 50)); How can i do the same in WinRT? Thanks in advance.

How to temporaily block map zoom using Bing Maps API?

假装没事ソ 提交于 2019-12-25 03:15:57
问题 I am using Bing Maps API and I have to temporaily block zoom. Plese tell me how to do that using Java Script? I relize that I have to block some key controls and remove + / - buttons from default Bing Map controls. Edit; To hide controlls I can use VEMap.HideDashboard Method. But how to block response for some keys? Do I have to overload some methods? 回答1: You could override the events on map like this: var bloc_zoom = false; var bloc_pan = false; function PaintMap() { var VEMap = new VEMap

setting Bing Maps Silverlight Control Property From Code Behind

爷,独闯天下 提交于 2019-12-25 00:36:11
问题 I need to set the CredentialsProvider from code behind prior to load the control on page. I have "ApiKey" dependency property in code behind and binding it to Bing Maps silverlight Control but it doesn't work. It gives an error "invalid credentials" at run time. Code Behind public static readonly DependencyProperty ApiKeyProperty = DependencyProperty.Register("ApiKey", typeof(string), typeof(MainPage), new PropertyMetadata("")); protected string ApiKey { get { return this.GetValue

JavaScript UI for ideally Bing maps or Google maps?

十年热恋 提交于 2019-12-25 00:26:44
问题 Im making a simple proof of concept webpage using Bing maps. I need to have several pins on a map which is embedded in my page. Then a javascript UI will make it so when users tick or untick certain boxes the results are filtered, so different pins will be made visible or invisible. Sorry for the openness of this question but how do I go about doing this? Id much rather work with jQuery than plain JavaScript. Its only a proof of concept so speed, performance, reliability, etc are all flexible

Do I need to revalidate my Bing Maps credentials?

*爱你&永不变心* 提交于 2019-12-25 00:23:20
问题 Do Bing Maps credentials time out? My Bing Maps credentials, supplied like so (but with a bogus value shown here): <maps:Map x:Name="bingMap" Grid.Column="1" Grid.Row="1" Grid.RowSpan="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" LandmarkTapped="BingMap_OnLandmarkTapped" Credentials="jkdfsjkfadjkdfsajkdfsasdfaasdf" /> ...have worked fine until today, and now I get this message across the map on my main page when I run my app: " The specified credentials are invalid. You can

WP7 Bing Maps Zoom level based on Push Pin collection locations

这一生的挚爱 提交于 2019-12-24 23:26:17
问题 Just a quick question regarding the use of the following code snippet: var locations = CurrentItems.Select(model => model.Location); map.SetView(LocationRect.CreateLocationRect(locations)); as suggested in this answer: Zoom to show all locations in bing maps I am retrieving a list of geocoordinate asynchrounsly and binding these to a Bing Map using an ObservableCollection; copying the resultant data over to the main UI thread using: Deployment.Current.Dispatcher.BeginInvoke( ()=> {...} ) My

Android Map APIs

浪子不回头ぞ 提交于 2019-12-24 20:20:22
问题 Trying to write app for service technicians that will display open service calls within X miles of them on a map and allow them to perform custom actions by clicking on the pushpin for each individual location. Locations would need to belong to groups with different colored pushpins. So I need to provide a list of locations from a SQL database and have the map display only the ones within X miles. Then based on the group that pushpin is in, have certain options available for how to proceed

Is it possible to make a Polygon clickable using the Bing Maps API?

房东的猫 提交于 2019-12-24 19:07:55
问题 I can put a pushpin in the center of each Polygon to achieve a "clickable" region but that is an extra step I'd rather not take. 回答1: Yes, but it's kind of a pain. The steps are: 1.) attach to the mousclick event within VEMap 2.) determine if the mouseclick was within the area of your polygon or on a shape 3.) stop event propogation to the map object itself The mousehandler portion here: http://www.codeproject.com/KB/scripting/Use_of_VEMap.aspx#heading0012 is a decent primer, though if you