开发者

"My Location" in Google Maps javascript API

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 Google Maps Javasc开发者_Python百科ript API V3 Controls but I haven't found anything about the "My locaton" control.


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜