Hello,

- the html code of the node is correctly loaded
- the title of the node is correctly displayed
- the map (Openlayers / Gmap) is not displayed at all

What to do ?

CommentFileSizeAuthor
#6 error-geofieldmap-colorboxn.jpg38.8 KBviseser

Comments

iLLin’s picture

Title: Openlanyers / Gmap not displayed in a colobox_node » Openlayers / Gmap not displayed in a colobox_node

Ok, I have tried to add this in the init() and got a little further.

  if (module_exists('openlayers')) {
    openlayers_include();
  }

But I think because we are trying to load it through AJAX that some stuff is not being loaded up correctly. I have a request here: #1600796: How to load an OpenLayers view into the content area with an AJAX link?

treckstar’s picture

Would love to see this working with Colorbox node.

On the page that I want to load with colorbox node(contains a geofield map field)
<div style="width: 100%; height: 150px" id="geofield_map_entity_field_location_geo_48" class="geofieldMap processed"></div>

It should look something like this (loads fine without colorbox node)
<div style="width: 100%; height: 150px; position: relative; background-color: rgb(229, 227, 223); overflow: hidden; " id="geofield_map_entity_field_location_geo_48" class="geofieldMap processed">Map-Source-Code-Here</div>

I am using jquery 1.4 and I am starting to think this is also related to Ajax

iLLin’s picture

You need to Comment in the thread I started at openlayers. They will need to fix it in their module, or provide the necessary ajax integration.

iLLin’s picture

Status: Active » Closed (won't fix)
mavdiablo’s picture

I don't test this so much, but i think Openlayers doesn't support two maps on the same page...
what do you think about?

viseser’s picture

StatusFileSize
new38.8 KB

My case is as follows:

I created a page view that contains a field geofield shown by geofield map.

I connect this url using a link (class = "colorbox-node") opens correctly geofield map, but the map is a small and not completely.

The modules used are:

Node Colorbox 7.x-2.4
Geofield 7.x-1.1
Colorbox 7.x-1.3
Map Geofield 7.x-1.1

Attached image.

Any idea?.

Thanks.

paean99’s picture

I had a similar problem.
Try to add "?width=600&height=600" (or other dimensions) to the end of the link:
href="blogs/my-example?width=600&height=600"