If you are familiar with ASP. net MVC. net MVC, you can quickly integrate map applications or perform secondary development related to maps. You can use Bing Maps API for Ajax for development. On codeplex, an open-source project mvcmaps is released, specifically for ASP. the net MVC project is provided by developing
Copy Code code as follows:
var request;
var distancearray = [];
function Getdistance () {
Distancearray = [];
var directionsservice = new Google.maps.DirectionsService ();
for (var a = 0; a for (var b = 0; b if (a!= b) {
request = NULL;
Request = {
Origin:pointsarray[a],
DESTINATION:POINTSARRAY[B],
TravelMode:google.maps.DirectionsTravelMode.DRIVING,
UnitSystem:google.maps.DirectionsUnitSystem.METRIC
};
Directionsservice.route (Request, function (response, stat
prompt layer, that is, deleting or shielding the error prompt layer, without passing the development KEY verification.
In actual development, the error prompt layer cannot be blocked directly, but can only be handled in other indirect ways. After carefully checking the API, we can find that the Map Control of Bing Maps Silverlight Control has a LoadError event.
solve the loading of different map data can be achieved through a custom tilesource. In addition to solve a problem, is not through the development of key validation in the case of how to kill the error hint layer, that is, delete or mask the error hint layer.
In actual development, we can not directly block the error message layer, only through other indirect way to deal with. A closer look at the API reveals that the
As a universal development platform, both Silverlight and JavaScript APIs can render map data of other vendors. This article uses rendering esri shp format map data as an example, describes in detail how to render Esri SHP Map data on Bing Map Silverlight Control. Because BMSC does not have the corresponding data reading API, it needs to use third-party open-source components to read SHP, and the data is pr
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
When I wrote this article, I thought of a poem: no intention of inserting Liu into the shade. Although I used to know the usefulness of the MKT parameter, it was used to display different language versions, but I never thought of adding this parameter to the Bing map API development and expected results.
Many of my friends asked me how to display a satellite map on the
The RouteService provided by Bing Maps allows you to compute routes and routes on Maps in multiple ways, such as driving routes and locations, and travel routes. You can add a Web service reference to the service through the Service's address (http://dev.virtualearth.net/WebServices/v1/RouteService/RouteService.svc.
The routing function service provides two met
Here's how to develop Bing maps. First, we need to introduce the Bing Map SDK into our program. Detailed method, here is recommended a link In the whole development, the deepest feeling to me is. In the case of scarce online information. Looking at the API given by Bing Map
This article describes how to develop Bing maps. First we need to introduce the Bing Map SDK into our program. Specifically, here is a link What impressed me most in the development was that, in the rare case of online data, looking at the API given by Bing
The Routing function Service (Routeservice) provided by the Bing maps can be used to compute the directions on the map, path and so on, such as driving route and location, travel route, etc. The service's Web service reference can be added through the service's address (HTTP://DEV.VIRTUALEARTH.NET/WEBSERVICES/V1/ROUTESERVICE/ROUTESERVICE.SVC).
The Routing feature service provides two methods, namely Calcul
=" +Str+ "language=zh-cnsensor=false"; returnGetValues (NULL, URL); } } Call the GetAddress () method to pass the latitude and longitude to get the detailed address returned is a JSON string, you can parse a bitMapsapiutils.getinstance (). GetAddress (getLocation (context)); Calculate route dataYou can get the time and distance from the beginning to the end.Call the Getroutes () method to transmit the start and end pointsMapsapiutils.getinstance ()
call SetCenter can be based on the coordinates point center map, because there is information window, sitting punctuation Center does not necessarily make the information window completely visible, but should be lower than some, Call Map.panby (New Gsize (-40,100)) method to animate the specified distance (left: 40px, bottom: 100px), and be aware that many of the methods in the Google Maps
Google Maps API Reference manual Map
Constructors/Objects
Description
Map ()
Creates a new map in the specified HTML container, which is typically a DIV element.
Overlay Layer
Constructors/Objects
Description
Marker
Create a tag.
Markeroptions
The option to mark. All markup rendered by Directionsrend
The following code uses the Google map API to obtain the distance between vertices ()
The Code is as follows:
Var request;Var distanceArray = [];Function getdistance (){DistanceArray = [];Var directionsService = new google. maps. DirectionsService ();For (var a = 0; a For (var B = 0; B If (! = B ){Request = null;Request = {Origin: pointsArray [a],Destination:
Copy codeThe Code is as follows:Var request;Var distanceArray = [];Function getdistance (){DistanceArray = [];Var directionsService = new google. maps. DirectionsService ();For (var a = 0; a For (var B = 0; B If (! = B ){Request = null;Request = {Origin: pointsArray [a],Destination: pointsArray [B],TravelMode: google. maps. DirectionsTravelMode. DRIVING,UnitSystem: google.
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.