Contents
What is the zoom level range for Bing Maps?
Most only go to zoom level 19 as those are the only zoom levels that imagery is available for. The WPF control does allow you to go to zoom level 22 (possibly 23 but it may crash due to calculation overflow). I believe the Windows 8 map control, in which this forum post was for also could be made to go to zoom level 21.
How to zoom to fit pushpins in Bing Maps?
Once you have the locationRect, simply set the bounds property either at the initial creation of the map, or later using the setView method for the map class. Here is my code:
Where to find Barringer Crater in Bing Maps?
The following line of code can be used to center the map over Barringer Crater located at coordinates 35.027222, -111.0225 and set the zoom level to 15. One common scenario that developers come across is that they wish to display a set of objects on the map.
How to get a street image in Bing Maps?
Retrieve a street image at a specified centerPoint using the parameters zoomLevel, heading, and pitch. The heading parameter specifies the direction from 0° to 360°, where 0° faces North, and pitch specifies the angle from -90° (facing directly down) to 90° (facing directly up) at which the returned image is positioned. Either use a structured URL:
How to calculate the zoom level of a map?
Then the formula becomes: Map scale = 1 : (ScreenRes pixels/inch * 39.37 inches/meter * 156543.04 meters/pixel * cos (latitude * pi/180) / (2 ^ zoomlevel)) For example, assuming a ScreenRes of 100 pixels/inch, the map scale at level 10 and latitude 40 degrees is:
How big is the world in Bing Maps?
In terms of capturing more high resolution imagery, Microsoft Bing Maps has released over 80M SQ KM of imagery this year. That’s over 50% of the landmass of the globe. You will be hard pressed to find any mapping provider who has as much imagery that is this new and this high quality. It depends on the map control.
How to set zoom level according to number of pushpins?
But by default i need to zoom in that only MINIMUM 5 push pins should be shown (Which is gernerated by HTML). For example if 8th push pin is coming near to 3rd push is also fine. But i need to show the 5 pushpins with maximum zoom level. Till now i am setting a particular hardcoded zoom level to display the pushpins.