简体   繁体   English

向我的网站添加交互式地图

[英]Adding an interactive map to my website

I'm relatively new coder and am currently putting together a website as part of my University work. 我是一个相对较新的编码员,目前正在建立一个网站,作为我大学工作的一部分。 I'd really appreciate it someone could give me advice on how I would go about adding an interactive map that uses JavaScript to show my location. 我真的很感激有人可以给我一些建议,说明如何添加使用JavaScript显示我的位置的交互式地图。

Thanks! 谢谢!

https://developers.google.com/maps/documentation/javascript/examples/marker-simple https://developers.google.com/maps/documentation/javascript/examples/marker-simple

Google maps, just copy paste and edit the latlong to your desired position. 在Google地图上,只需复制粘贴并将latlong编辑到所需位置即可。

And here is one example getting position from browser and marks it on the map: https://developers.google.com/maps/documentation/javascript/examples/map-geolocation 以下是一个从浏览器获取位置并将其标记在地图上的示例: https : //developers.google.com/maps/documentation/javascript/examples/map-geolocation

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM