The map in this article uses Tu Map
Tuba Map online API address
http://union.mapbar.com/apidoc/
Offline CHM format download address:
http://union.mapbar.com/apidoc/chm/mapbarapi.rar
Rendering:
The Mapbar Map API allows you to embed Mapbar maps into your own web pages using JavaScript. The API provides many ways to interact with the map (as shown on the http://www.mapbar.com/localsearch/index.html page), as well as a set of services for adding content to the map, allowing you to You can create a stable map application on your own website.
Public test key:
http:// union.mapbar.com/apis/maps/free?f=mapi&v=31.2&k=aCW9cItqL7sqT7AxaB0zdHZoZSWmbBsuT7JhMHTsMeD6ZIl9NzFsZHT=@JBL979@Iu7lJJZWWq0IDu9xZMzMxq7I9AhH7LAAA6hqzZHZZLTbZ ZauxlDz7C7DD9ZCFGT=
If you want to try Mapbar map, skip the step of applying for a key, Testing can be done locally (http://localhost) using the public test key.
There is a compatibility issue in Internet Explorer version 8.0. It is necessary to add the
tag between the tags of the web page to ensure the map The polyline function performs correctly.
Here is only the front-end source code
You need ajax to implement positioning persistence in your project
The code is as follows
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict .dtd">
Map Test Source code download address:
http://xiazai.jb51.net/201004/yuanma/mapbar.rar