是否可以在Google地图中嵌入侧边栏? [英] Is it possible to embed the sidebar with Google Maps?

查看:52
本文介绍了是否可以在Google地图中嵌入侧边栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们想使用Google Maps跟踪本地车库的销售情况.我们已经创建了地图(

We'd like to use Google Maps to keep track of local garage sales. We've created a map (see here) and we'd like to embed that map on our website. However, when we do, we lose the sidebar of the map that contains a list of all the garage sales.

我们非常熟悉如何嵌入Google;他们使过程变得非常简单.但是,有没有一种方法可以嵌入地图并保留车库销售的侧边栏列表?

We're quite familiar with how to embed a Google; they've made the process quite simple. However, is there a way that we can embed the map and keep the sidebar list of garage sales?

推荐答案

据我所知,最好的方法是创建自己的销售容器并将其链接到您要填充的地图.我假设您是在Google网站上构建并输入数据,并使用了嵌入功能,这意味着我的答案需要做更多的工作.

To my knowledge, the best way would be to create your own container of the sales and link them to a map you are populating. I am assuming you are building and entering your data on Google's site and using the embed feature, which means my answers is significantly more work.

您需要使用向下的数据源,并使用Maps API创建地图和侧边栏.

You would need to have your down data source and use the Maps API to create a map and a sidebar.

您将不再使用iFrame,您将在编写自己的解决方案.如果您以前曾经做过JavaScript,那么如果没有一些很好的例子,这确实很容易.

Your woudln't be using the iFrame anymore, you would be coding your own solution. If you have done JavaScript before, it is really fairly easy, if you haven't there are some good examples.

这篇关于是否可以在Google地图中嵌入侧边栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆