PHP uses Amap (1) to draw polygons and edit to obtain coordinates (simple summary)

不言
Release: 2023-03-24 11:44:01
Original
3517 people have browsed it

The content of this article is about using Amap with PHP (1) to draw polygons and edit to obtain coordinates (simple summary). It has certain reference value. Now I share it with you. Friends in need can refer to it. Let’s take a look

If you use the Amap API for the first time, you must first apply for a Amap key
Main instructions:
1. Amap map display
2. Amap map Click to get the coordinates
3. Draw polygons with the mouse on Amap

4. Edit polygons with the mouse on Amap and get the coordinates

 

    $v): ?>
  • [],

清空所有 生成抢修范围

开始编辑抢修范围 结束编辑抢修范围

Copy after login




# #Reference:

##http://lbs.amap.com/api/javascript-api/guide/create-map/show-map Show map


http://lbs.amap.com/api/javascript-api/guide/draw-on-map/marker-point Point annotation

http: //lbs.amap.com/api/javascript-api/example/marker/marker-content Point mark example

http://lbs.amap.com/api/javascript- api/example/overlayers/polyline-circle-polygon Polyline, polygon, circle examples


http://lbs.amap.com/api/javascript-api/example/ mouse-operate-map/mouse-draw-overlayers Mouse draws points, lines and surfaces


##http://lbs.amap.com/faq/web/javascript-api/327

Mouse tool draws overlay, how to get the position/range/path of the overlay?


http://lbs.amap.com/api/javascript-api/example/overlayers/edit-polyline-circle-polygon Edit polyline, polygon, Circle


http://lbs.amap.com/faq/web/javascript-api/editpolygon-getpath

How to get the path of a polygon after editing it?



The above is the detailed content of PHP uses Amap (1) to draw polygons and edit to obtain coordinates (simple summary). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!