This article introduces how to use javascript to extract the coordinates of the administrative region boundary longitude and latitude from AMAP and Baidu. This article is highly practical and easy to understand. For more information, see.
Using JavaScript to extract the coordinates of longitude and latitude of administrative region boundary using AMAP and Baidu map
Now my retreat is coming to an end. According to the initial plan, I plan to spend about a month studying JavascriptCodeObfuscation. Later, as the engine of Google App Engine is being studied more and more deeply, and code obfuscation is more complicated than I thought, I canceled the plan to study code obfuscation, focus on website-related research.
This article introduces three Rest interface services that I implemented on Google App Engine:
1. query the service of administrative divisions
What should I do if the map of the input region name is automatically located there? Enter the region name nbsp; the map is automatically located there nbsp; how can this problem be solved? Use google maps to share: more --- how to automatically locate the map with the
What should I do if the map of the input region name is automatically located there? What should I do if the map of the input region name is automatically located there?
Implemented using google Maps
Reply to discussion (solution)
Locate coordinates based on place names
What should I do if the
1 Do map positioning today, find this problem, call the following function, there is a problem Mkcoordinateregion region = Mkcoordinateregionmake (_currentlocationcoordinate, Mkcoordinatespanmake (ZoomLevel, Zoomlevel)); [_mapview Setregion:[_mapview regionthatfits:region] animated:yes];Exception: ' Invalid region 2 degrees Niang a bit, the original is out of
First, let's take a look
It is mainly to determine the longitude and latitude of the Beijing region based on Baidu encyclopedia, and then calculate the approximate value. And the longitude and latitude order of the rectangle on the map is
Left, top left, top right, and right are set clockwise. If the order is reversed, it may not be a rectangle.
This document calls a third-party amap api.
The
The original: "Baidu Map API" How to obtain the boundaries of the administrative region?Summary: Previously taught you how to obtain an administrative region, or custom to get the boundary value of an area. Today to teach you to directly call Baidu Map API1.3 (currently the latest version) to obtain the boundary value
What should I do if the map of the input region name is automatically located there? Enter the region name nbsp; the map is automatically located there nbsp; how can this problem be solved? Share with google Maps: How do I automatically locate a map with a
Requirements: Division of Administrative Regions (take Guizhou province as an example)Baidu API Code: Effect:Don't want to have that layer of cover outside;Workaround:functiongetboundary () {varBdary =Newbmap.boundary (); Bdary.get ("Guizhou Province",function(RS) {//access to administrative regionsMap.clearoverlays ();//Clear Map Overlay varCount = Rs.boundaries.length;//How many points are there in the administrative
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.