开发者

How to show a Drupal Openlayers map in a colorbox?

开发者 https://www.devze.com 2023-02-12 14:02 出处:网络
We\'ve been work开发者_如何转开发ing 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 Colo

We've been work开发者_如何转开发ing 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号