Home  >  Article  >  Web Front-end  >  Baidu map api application to mark geographical location information (js version)_javascript skills

Baidu map api application to mark geographical location information (js version)_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:42:221742browse

Sometimes I do something without recording it, and when I look at it after a while, I may forget it. Need to watch it again.

Baidu map javascript api can refer to http://developer.baidu.com/map/reference/
Example: http://developer.baidu.com/map/jsdemo.htm

More introductions to Baidu Maps http://www.cnblogs.com/milkmap/tag/mapAPI/
The introduction is very detailed.

I made a Baidu map to mark the geographical location information, and obtained the address through Baidu API. This map api is a javascript version

Add the displayed div control

Copy the code The code is as follows:

Search:
type="button" value="search" style="cursor: pointer" />


Latitude:
Longitude:
Mark point Area:








Beijing City [Change City]


🎜>
Copy code

The code is as follows: //jquery library //Baidu map file //City selection
Add code



Copy the code

The code is as follows:



Rendering

The source code of this annotation: Baidu map annotation source code

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn