Integrate Bing Maps

Source: Internet
Author: User
Tags reverse geocoding

Currently, the map service is mainly Microsoft's Virtual Earth, Google Earth and Yahoo's map service. In terms of development, Microsoft's Virtual Earth is the most convenient. However, the accuracy of a map is still powerful for Google. After all, it is relatively early. Microsoft has changed Virtual Earth to Bing Maps and integrated the map service into bing search. Microsoft's Live service includes Bing service and Windows azure platform. Live service is built on the Windows azure platform. It's a long way to go.

Generally, Map Service has the following applications:

L website location. For example, you can visualize your stores, asset devices, and company organizations on a map. You can easily use a bird's pie chart for map roaming and specific search.

L information portal. Map-based portal search integrates map information with relevant information to facilitate map search.

L travel portal-provide information in virtual routes and routes, such as shops, banks, and hotels that pass through the routes.

L mobile positioning service.

L Real-Time Route and route Prediction Tracking

In Microsoft's development field, Google Earth can be integrated with its COM APIs. Com api or Google service. At the same time, the com SDK provides the Map Client operation model.

The following describes how to integrate Bing Maps. There are two ways to integrate Bing Maps.

1Meshup

L Ajax Control

Example:

<SCRIPT type = "text/JavaScript" src = "http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx? V = 6.2 "> </SCRIPT>

<SCRIPT type = "text/JavaScript">

VaR map = NULL;

Function getmap ()

{

Map = new vemap ('mymap ');

Map. loadmap ();

}

</SCRIPT>

</Head>

<Body onload = "getmap ();">

<Div id = 'mymap' style = "position: relative; width: 400px; Height: 400px;"> </div>

</Body>

</Html>

L Silverlight Control

<Usercontrol X: class = "mapcontrolinteractivesdk. tutorials. modes. tutorialfadinglabels"

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; Assembly = Microsoft. Maps. mapcontrol">

<Grid X: Name = "layoutroot" background = "white">

<M: Map credentialsprovider = "{staticresource mycredentials}" center = "37.806029,-122.407007" zoomlevel = "16">

<M: map. Mode>

<M: aerialmode labels = "true" fadinglabels = "true"/>

</M: map. Mode>

</M: Map>

<Border verticalalignment = "TOP" horizontalalignment = "right" background = "white" opacity = "0.7" cornerradius = "5" padding = "10">

<Textblock text = "labels fade after a few seconds when mouse remains still."/>

</Border>

</GRID>

</Usercontrol>

L Asp.net control is coming soon

2Server-side Integration

Two map Web services are available.

LBing Maps Web Services.Bing Maps Web Services (BMWs) provides soap/XML Web Service Access to static Map Images (.gif ,. JPEG, and. PNG), direct map tile access, one-box search functionality, geocoding, reverse geocoding, and routing. these services also integrate with features in the Bing Maps Silverlight control to provide a complete web mapping application feature set.

LMappoint web service.The mappoint Web Service (MWs) uses industry-proven web services available from Microsoft since 2002. the MWs core strength has des the ability to use customer-specific data to perform proximity and Route Searching and line drive maps.

Other integration methods:

Some third-party component companies, such as componentone, provide map control for Silverlight and map control for Asp.net. They can set data source to Google Earth or virtual Earth to allow more convenient APIs to control maps. This method is used in the GE project.

1. Main Functions of the Virtual Earth API:

2. display a map

3. Use a layer (graph nail layer, shape layer)

4. Add an element (proportional scaling is allowed) and add the element according to coordinates.

5. Add a map event

6. Custom map title Layer

7. Call Bing Maps web service to customize business logic

8. Custom shape or navigation

9. Data Binding

10. Others

Yes for the GE Project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.