From: http://hi.baidu.com/xfm_zhr/blog/item/b210c3035b1f888fd53f7c2b.html
Show the picture in Google Maps.
Method: You can edit an appropriate HTML statement and call gmarker. showmapblowup () to display the small map.
Gmarker. showmapblowup (OPTs );
Opts: ginfowindowsoptions object. Includes six attributes. Selectedtab number, indicating the number of the selected tag. It starts from 0 and is only v
1. Map zoom control
(1) All-Around control-glargemapcontrol
(2) miniature controls-gsmallmapcontrol
(3) miniature scaling control-gsmallzoomcontrol
2. Map Type Selection Control
(1) gmaptypecontrol
(2) Menu Control-gmenutypecontrol
(3) standard class control-ghierarchicalmaptypecontrol
3. Thumbnail Control -- goverviewmapcontrol
4. Scale Control-gscalecontrol
How to add controls:
Map. addcontrol (New glargemapcontrol ());
Map. addcontrol (New glargemapcontrol (),New gcontr
Method 1: Obtain the coordinates of the specified position on the GMAP,1 open http://ditu.google.com/maps2. Locate the location where you want to obtain the coordinates, point to the location, right-click the location, and locate it in the center. The center is automatically centered.3. In the browser bar, enter
Javascript: void (prompt ('', Gapplication. getmap (). getcenter ()));
4. Press ENTER
Method 2: Through address http://maps.google.com/maps
From: http://hi.baidu.com/xfm_zhr/blog/item/fbfe5c274a87a904908f9d28.html
1.How to encode longitude and latitude
For static data that does not need to be modified, you can use the online encoding tool provided by Google to obtain the data. For more information, see related documentation.
For data that needs to be dynamically generated, it can be encoded according to the Code provided by GoogleAlgorithm
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
//
Projection coordinate interface, which cannot be instantiated but must be used through inheritance
Function
Gprojection (){}
//
Converts a from longitude and latitude to pixel. A is a glatlng, and B is a scaling level.
Gprojection. Prototype. fromlatlngtopixel
=
Function
(A, B){
Throw
Gmsg_implement;};
//
Converts a
1. Before using the Google API, we need to first apply for a key, which is appended to the URL as the only indication.
2. The Google Maps API contains an address that can be queried for details of a location, such as the one in Beijing: http://maps.google.com/
Sample Code of the api called by the php store
This article describes how to call APIs in a php store. We will share this with you for your reference. The details are as follows:
You may encounter problems when calling the store api. The system always prompts system error. In the final analysis, the sent parameter is i
For more information, see this FAQ. You must have a Google account to obtain the Maps API key, which is associated with your Google account.Please apply for a http://code.google.com/intl/zh-CN/apis/maps/signup.html--% here>
Integrate the google map api with the GOOGLE Search API. I wrote a class in object-oriented mode, passed a latitude and longitude, and automatically obtained nearby information through GOOGLE LOCAL SEARCH. Such as restaurants and scenic spots, which are marked on the map in
Store Call API code example, small shop Call API example
When you start calling the store API, you may encounter problems. System error is always prompted, in the final analysis, the wrong parameters are sent.
Several invocation examples are given below:
The example is not completely written.
php function Curlreques
Integrate the google map api with the GOOGLE Search API. I wrote a class in object-oriented mode, passed a latitude and longitude, and automatically obtained nearby information through GOOGLE LOCAL SEARCH. Such as restaurants and scenic spots, which are marked on the map in
By integrating the Google MAP API with the Google search API, I wrote a class in an object-oriented way, passing through a latitude and longitude to automatically get the relevant information from Google Local Search. such as restaurants, attractions, and so on, in turn mark
Android gets weather information via Google API
Copy Code code as follows:
public class Weatheractivity extends activity {
Private TextView txcity;
Private Button btnsearch;
Private Handler Weatherhandler;
Private Dialog ProgressDialog;
private timer timer;
/** called the activity is a. */
@Override
You can customize CSS for a simple example. For more information, see the Class documentation or use firebug.
# Searchweb. GSC-title {color: #330066 ;}
Link:
Google search api reference
Google search AP 'documentation
Google Code Playground
This article from smallkonra
The effect is relatively simple, and there are no artist cells :(
A lot of code is copied directly from Google's sample. I just added a simple PopUp mechanism.
The code is quite simple, so no comments are needed.
All code:
CSS:
JavaScript:
HTML:
Generate two-dimensional code online using the API of Google online generation of two-dimensional code.
The code is as follows:
Copy Code code as follows:
$content =$_
Copy Code code as follows:
Reference Document: http://code.google.com/intl/zh-CN/apis/maps/documentation/staticmaps/
Note that the secondary API does not require key!
Access the Google address by setting an IMG SRC address!
Http://maps.google.com/
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.