Home  >  Article  >  Backend Development  >  PHP uses Amap (1) to draw polygons and edit to obtain coordinates (simple summary)

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

不言
不言Original
2018-04-19 13:27:313442browse

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):         ?>                                     
  •         [],         
  •                                                               
                                                                                   

                         清空所有                                  生成抢修范围                                  

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

                 

             

        

        

                 




# #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!

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
Previous article:php file operationsNext article:php file operations