Retrieve latitude and longitude of a draggable pin via Google Maps API V3

后端 未结 8 519
礼貌的吻别
礼貌的吻别 2020-11-29 18:23

I will explain. I managed to have a draggable pin on a map. I want to retrieve the coordinates of this point and put them into two fields: Latitude and Longitude. These coor

8条回答
  •  一向
    一向 (楼主)
    2020-11-29 19:23

    Google Maps V3 Example. Here's a working example of a user dropping a single pin, replacing a dropped pin with new pin, custom pin images, pins that populate lat/long values in a FORM FIELD within a DIV.

    
    
    
      

    Latitude:

    Longitude:

提交回复
热议问题