MattB
MattB

Reputation: 724

How to show a Drupal Openlayers map in a colorbox?

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.

Upvotes: 0

Views: 1084

Answers (2)

Charles Bandes
Charles Bandes

Reputation: 795

The other thing I found is that if you make the map layer default to fullscreen, it fills the colorbox

Upvotes: 0

Matt V.
Matt V.

Reputation: 9809

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.

Upvotes: 1

Related Questions