插入显示我当前位置的谷歌地图 [英] Insert google map showing my current location
问题描述
我在全球旅行,需要在我的网页上插入Google地图,以显示我目前的位置(而不是读者的位置),以便其他人可以看到我的位置。
I am traveling globally and need to insert a Google map on my web page that shows my current position (not the position of the reader) so that others can see where I am.
有没有人有一个简单的解决方案来做到这一点。我知道如何使用我的地点创建地图并将其插入到我的网页中,但避免必须参与使用地图API。我有一些关于HTML和Javascript的知识,但它是最小的,所以如果可以的话就避免使用它。
Does anyone have a straightforward solution to do this. I know how to use My Places to create maps and insert in my pages, but have avoided having to get involved in using the Maps API so far. I have some knowledge of HTML and Javascript, but it is minimal so would rather avoid this if I can.
有没有人有解决方案?
推荐答案
继续我在你的其他问题你可能会发现这个例子有用: - hypoCampus
Further to my answer over at your other question you may find bits of this example useful: - hypoCampus
小蓝人/人/图标跟随您的位置。如果您滚动地图,则可以按静态蓝色地图控制人重新定位您的位置。当你移动时(节流位置更新正在改变)图标正在走路,否则它正在站立。
The little blue man/person/icon follows your location. If you scroll the maps away you can then press the static blue map-control man to re-center on your location. When you're moving (throttled location update is changing) the icon is walking otherwise it is standing.
(Manifest存在一个错误 - display:standalone在mo Chrome bug )
(There's a bug with Manifest - "display" : "standalone" at the mo Chrome bug)
希望Firebase承诺绕过W3C / IETF的速度,将很快为我们提供ServiceWorker背景地理位置跟踪。
Hopefully Firebase have committed to bypassing the speed-humps of W3C/IETF and will give us ServiceWorker Background Geolocation tracking very soon.
这篇关于插入显示我当前位置的谷歌地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!