简体   繁体   English

Google Maps JavaScript API和JavaScript

[英]Google Maps JavaScript API and JavaScript

I'm working on a map project, that enable users to find nearby specific places (say, a swimming pool club in your neighborhood). 我正在开发一个地图项目,该项目使用户可以找到附近的特定地点(例如,您附近的游泳池俱乐部)。

I'm required by the client to build the map such that, the map displays the various swimming pools (map markers) in a users location on the map. 客户端要求我构建地图,以便该地图在地图上的用户位置中显示各种游泳池(地图标记)。 Close quartered locations are to be grouped in a cluster. 封闭的四分之一的位置将在一个群集中分组。

I'm also required by the client to build the map such that, when a user clicks on a map marker representing a particular location (swimming pool club), a modal window opens up which plays videos of say, people swimming in the pool at the club (the videos aren't live, they are videos he'll be recording and uploading for viewing on the map). 客户端还要求我构建地图,以便当用户单击表示特定位置的地图标记(游泳池俱乐部)时,将打开一个模态窗口,该窗口播放例如人们在游泳池中游泳的视频俱乐部(这些视频不是直播的,而是他将要录制并上传以在地图上查看的视频)。

I'm lost as to how to go about all this, any help codes and tips is much appreciated. 我不知道如何处理所有这些问题,非常感谢任何帮助代码和提示。

For a getting started tutorial: Adding a Map with a Marker 对于入门教程: 使用标记添加地图

You should check out https://developers.google.com/maps/documentation/javascript/marker , it has a good explanation on how the marker portion of the api works, but also check out https://developers.google.com/maps/documentation/javascript/tutorials/custom-markers 您应该查看https://developers.google.com/maps/documentation/javascript/marker ,它对api的标记部分的工作方式有很好的解释,但也请查阅https://developers.google.com。 / maps / documentation / javascript / tutorials / custom-markers

Essentially you'll insert a map into your page and place custom markers on it. 本质上,您将在页面中插入地图并在其上放置自定义标记。

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

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