Last month, acnchen, Business Development Manager of Bing (Bing Maps) Greater China, published an article titled loading other Maps (Google satellite Maps, etc.) in the Bing map SilverLight control, it details how to load Google s
Maps API.
The following is an example of using Google map in the Google Maps API from Anthony Wong (four options are displayed for the map type, and the fourth ditu is the Google Map button ):
The core code is:
VaR Copyright = New Gcopyright ( 1 , New Glatlngboun
A few days ago, the project used network maps, mainly Baidu maps and search maps, or sogou maps and Google Maps. The search scope is mainly in Beijing urban areas, and a bit is used in the suburbs. The advantages and disadvantages
);//urldivvar url_x = X*zoomn;var url_y = Y*zoomn;return [Math.floor ( url_x), Math.floor (url_y)];} Calculate tile x-value function calculationlng (LNG) {var x = (180.0 + parsefloat (LNG))/360.0;return x according to longitude;} Calculates the tile y-value function Calculationlat (LAT) {var PI = Math.pi;//3.1415926535897;var y =-parsefloat (lat) * pi/180; y = 0.5 * per latitude Math.log ((1+math.sin (Y))/(1-math.sin (y))); Y *= 1.0/(2 * PI); Y + = 0.5;return y;}The resulting data is spelled ".
If you have Google mobile Maps on your phone, you can find that as long as your mobile phone can connect GPRS, even if there is no GPS function, you can locate the location of your phone, but the accuracy is not accurate. Before we explore this principle, we need to know some mobile knowledge about what is Mnc/lac/cell ID.Mobile Network Code (MNC)Mobile network number, China Unicom CDMA System MNC 03, China
As follows:
JavaScript code:
New encapsulated version:VaR map; var geocoder = new Google. Maps. geocoder ();/***-25.363882, 131.044922 * initial map */
Function initialize (LAT1, lng1, zoom, canvas_div ){
VaR mylatlng = new Google. Maps. latlng (LAT1, lng1 );
VaR myopti
Google Maps API.
The following is an example of using Google map in the Google Maps API from Anthony Wong (four options are displayed for the map type, and the fourth ditu is the Google Map button ):
The core code is:
var copyrig
binding everything together. The homepage of Google Maps is
Http://maps.google.com
The request method for each map of Google Maps is:
Http://maps.google.com/maps? LL = 49.29,-123.12 SPN = 0.017998, 0.027586 Z = 3 HL = en
We can see that each map has four parameters. The
element, you only need to hide it or remove it directly to solve the problem.
The simplest way is to expand a Map control by yourself. In its constructor, the error prompt layer is killed, and then the custom Map control is used in the project, which can be roughly implemented as follows.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Public class Offline
1. Google maps-Basic map typesThe following map types are available in the Google maps API:
MapTypeId.ROADMAPTo display the default corridor map view
MapTypeId.SATELLITEFor displaying Google earth satellite images
MapTypeId.HYBRIDFor simultaneous display of
This article briefly introduces the basic structure of DeepEarth and the basic usage of TileSource for maps. This article uses a simple application example to load online google satellite maps) continue to introduce the DeepEarth control usage.
Any TileSource provided by DeepEarth inherits from the DeepEarth. Layers.
Use the Google Maps API search featureDue to the working relationship, the recent two days to study the next Google Map API, to achieve the map location search function, display search results and can be marked down on the map, just started to consider the use of 51ditu, in terms of keyword segmentation and other aspects of search, finally decided to use
Operations related to google map tiles (js, google Maps v3 ),
Some time ago, due to work reasons, I studied tile-related operations on Google Maps. The longitude and latitude of a point and the map level are known to obtain the url of the tile where the point is located. the
Html > Head > Title > Load Google Map Title > Meta HTTP-equiv = "Content-Type" Content = "Text/html; charsets = UTF-8" /> Script SRC = "Http://ditu.google.com/maps? File = API amp; V = 2 amp; Key = ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA HL = ZH-CN" Type = "Text/JavaScript" > Script > Script Type = "Text/JavaScript" > Fu
forcibly changed by the system. If you want to get after this type getBounds() of event, be sure to listen to the bounds_changed event instead.Accessing parameters in user interface eventsTypically, user interface events in Google Maps API V3 Pass event arguments that you can access through the event listener, which indicates the user interface state at the time the event occurred. For example, a user inte
When talking about the default control and gmap2 settings on the map, I mentioned the Google map local search bar control. It is very easy to add this control to the map, you do not need to call gmap2.addcontrol (). You only need one sentence:
Map. enablegooglebar ();
In this way, you can add this search box in the low
programming, and you only need to provide it with kml,xml or JSON data with all the location information.ExampleMaplace.jsMaplace.js can help you embed Google Maps in your site and quickly create new and control-location menus on them.ExampleMapqueryMapquery is a jquery plugin that you can use to add maps to your site
With a free API key, you can formally call Google's API for development.Create a simple Google map:Html>Head>ScriptSrc= "Http://maps.googleapis.com/maps/api/js?key=AIzaSyDY0kkJiTPVd2U7aTOAwhc9ySH6oHxOIYMsensor=false">Script>Script>functionInitialize () {VarMapprop={Center:NewGoogle.maps.LatLng (51.508742,-0.120850), Zoom:5, MapTypeId:google.maps.MapTypeId.ROADMAP
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.