Javascript + mapbar implement map positioning _ javascript skills

Source: Internet
Author: User
Map location map bar map location with javascript source code each line has a comment this article map uses a map Map
Figure bar map online API address
Http://union.mapbar.com/apidoc/
Offline CHM format:
Http://union.mapbar.com/apidoc/chm/mapbarapi.rar

:

The Mapbar map API allows you to use JavaScript to embed a Mapbar map into your own webpage. API provides many ways to interact with maps (as shown on a http://www.mapbar.com/localsearch/index.html web page), as well as a series of services that add content to maps, this allows you to create a stable map application on your website.
Public test key:

The Code is as follows:


Http://union.mapbar.com/apis/maps/free? F = mapi & v = 31.2 & k = acw9citql7sqt7axab0zdhzozswmbbsu7jhmhtsmed6zil9nzfszht = @ JBL979 @ login =


If you want to try the Mapbar map and omit the steps to apply for a key, you can use the public test key to perform the test locally (http: // localhost.
Internet Explorer 8.0 is compatible.Add between tags Label to ensure that the map line function is correctly executed.
Only some source code is available at the front end.
You need ajax in your project to achieve location persistence
The Code is as follows:

The Code is as follows:


Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>


Map test

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.