如何在颜色框中显示 Drupal Openlayers 地图?
我们一直致力于一个项目,以在网格中显示公交路线,并将每个列标题链接到地图上的相应位置。我们使用的是 Drupal 6,并且已经安装了 Colorbox 和 OpenLayers 模块。我已经能够使用 CCK OpenLayers WKT 字段在节点内显示地图。
理想情况下,这将使用与嵌入式 OpenLayers 地图一起出现的颜色框。是否有最好的方法让链接打开嵌入了适当地图的颜色框实例?如果地图是一个节点,是否有最好的方法来仅显示颜色框中的节点内容?
任何帮助将不胜感激。我们已经尝试过一些事情,但还没有真正找到实现这一目标的好方法。
We've been working on a project to show bus routes in a grid and have each column header link to the corresponding location on a map. We're on Drupal 6 and already have both the Colorbox and OpenLayers modules installed. I've been able to display a map inside a node using the CCK OpenLayers WKT field.
Ideally, this would use a colorbox that would appear with embedded OpenLayers map. Is there a best way to have a link open a colorbox instance with the appropriate map embedded? If the map is a node, is there a best way to show just node content inside a colorbox?
Any help would be appreciated. We've played with some things, but just haven't really found a good way of accomplishing this yet.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们在类似的场景中所做的(在 Colorbox 中弹出视频)是创建一个 page.tpl.php 覆盖特定于的文件除了我们想要在灯箱中显示的内容之外,该内容类型已删除所有内容。
What we've done in a similar scenario (popping up a video in Colorbox) was to create a page.tpl.php override file specific to that content type with everything stripped out, except for the content we want displayed in the lightbox.
我发现的另一件事是,如果将地图图层默认为全屏,它会填充颜色框
The other thing I found is that if you make the map layer default to fullscreen, it fills the colorbox