“My Location” in Google Maps javascript API

前端 未结 1 2078
北恋
北恋 2021-02-14 04:38

Is there a way to use the \"My location\" button that exist on Google Maps in your own webbapplication using the javascript api?
I have read about adding controls here Googl

相关标签:
1条回答
  • 2021-02-14 05:32

    There's currently no geolocation button in Google Maps API v3. But it's not difficult to implement one yourself.

    Information about implementing geolocation can be found in the Google Maps Javascript API documentation.

    If you want to add a geolocation button as a map control, read the Custom Controls section of the Google Maps documentation.

    0 讨论(0)
提交回复
热议问题