Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建类似于这张堪萨斯县地图 的东西,用户可以点击该县(甚至他/她感兴趣的更好的城市......)并获取一些信息。1)使用谷歌混搭怎么可能?2) 谷歌混搭中是否可以只显示一种状态,例如仅堪萨斯州?
有几种方法可以促进用户与 Google 地图的交互:
如果您想将视图修复为仅显示一种状态,您可以适当地在 Google 地图上设置缩放和居中以仅显示您感兴趣的地图,然后禁用缩放和平移,这样用户只会看到您的视图想要展示。
NB用户仍然会在地图边缘看到相邻的州。没有办法只切除你想要的状态。