openlayers maps get crashed when they are dispalyed on bamboo theme.

has anyone had the same problem and/or find a solution about it?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Danny Englander’s picture

Category: bug » support
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

I need much more info than this. Please have a look at:

Tips for making a good issue report

In particular, you will need to focus in "repeatability of the problem" and "steps to repeat".

Examples:

  • Is this a View or a node?
  • Can you reproduce this with another theme?
  • What are the steps I take to reproduce this?
  • Are you using JQuery Update?
  • Also, are you sure you are using version 7.x-1.0-alpha14? Can you confirm that?
  • What version of OpenLayers are you using?
  • etc.. etc..
alpp’s picture

i'm sorry i thought it was better when it's shorter.

i can add some information: this is an openlayers map view, and when i switch off to other themes the map displays all ok.

yes i can confirm that i am using bamboo 7.x-1.0-alpha14.

and openLayers is 7.x-2.0-beta3.

and for a quick look, this is what i mean: http://istanpoli.com/taksim_restaurants/

you can see the problem in the map, it does not appear on any other theme, so i thought this could be a bug within bamboo.

Danny Englander’s picture

Title: openlayers maps get crashed » openlayers maps issue
Status: Postponed (maintainer needs more info) » Active

Thanks for more details, can you provide an export of your View and attach it here as a text file? Also does a node with an Openlayers map display OK with this theme?

alpp’s picture

ok i will export the view and attach below.

alpp’s picture

and yes it has the same problem in nodes too: http://istanpoli.com/node/2

alpp’s picture

FileSize
8.48 KB

here is the view...

Danny Englander’s picture

Can you please edit #4, get rid of all the inline code and attach as a text file please as I asked for above. Thanks.

alpp’s picture

ok, i just did that.

Danny Englander’s picture

Thanks and what other Location related modules are you using with Openlayers? Geofield? or whatever, let me know. This may take a few weeks or more for me to get sorted out so there will not be a quick solution unless I find anything glaring.

alpp’s picture

yes Geofield is used.
OpenLayers Layer Zoom, OpenLayers Plus and OpenLayers Views are also active.

Danny Englander’s picture

Sorry, one more thing, can you export your maps content type using http://drupal.org/project/bundle_copy if it's not too much trouble and attach it here as a text file? Please use the 2.x dv version, activate and go to: /admin/structure/types/export -- export with all the fields checked off and then copy into a text doc and attach. Thanks

alpp’s picture

FileSize
11.93 KB

here it is... all the fields are included.

alpp’s picture

FileSize
561 bytes

and this is the bundle with all fields checked off.. so this is what you asked for, ignore the previous one please.

Danny Englander’s picture

Component: Code » User interface
Assigned: Unassigned » Danny Englander
Status: Active » Closed (won't fix)
FileSize
580.05 KB

Hi, I could not get your content type to work with any theme at all, I was getting a slew of errors. But when I used the "OpenLayers Test Example Feature" that comes with OpenLayers, it worked right out of the box with any theme including Bamboo so it appears you have a serious config issue with your maps setup. Thanks and sorry I was not able to help. I suggest you try the Feature I mention above. Closing this issue.

OpenLayers Test Example Feature Map

Danny Englander’s picture

Just a few more things:

  • Be sure to have notices and errors set to 'All messages' at /admin/config/development/logging
  • I found that Geofield 7.x-1.1 worked better than 7.x-2.x-dev for me, I was getting error messages with that version.
alpp’s picture

i was using Geofield 7.x-1.1, now i'm checking how the features test is working for me.. i tried in 2 different sites before i sent the issue so i really wonder what is the real situation...

alpp’s picture

seems very strange for me.. because i see the same broken map when i choose the openlayers / Geofield Formatter Map for the geofield field (unless i do that i see no map because it comes out of the box as WKT and no map is displayed) and it's all the same broken map? can you be more spesific about what "configuration" is? i use fresh installations on both sites.

alpp’s picture

FileSize
111.84 KB

this is what i have with the test content. with fresh config.

alpp’s picture

and yes it's set to all messages...

Danny Englander’s picture

At /admin/structure/types/manage/openlayers_example_content/display, I simply changed the field called OpenLayers Example Geofield Input to Format: "Geofield Map". It sounds like you need to file an issue over in the Openlayers queue, it works perfectly for me on a clean install, Drupal 7.20. I cannot replicate your issue.

alpp’s picture

ok i think i got somewhere.

the problem is i am using geofield_formatter_map and openstreetmaps.. so it gives this errrorous scene. and when i tried using google maps or any others, it worked ok...

pity for me is i will be using openstreetmaps layers, which gives those unique errors in scene.

ps: sorry i should've checked other layers/maps before...

alpp’s picture

if you switch to geofield_formatter_map in any of these maps you will see that it will give you the same problem... and since this can not be reproduced on any other themes, i think this is not an essential issue for openlayers module.

also if i choose yahoo maps or bing maps it gives blank scenes for me.

alpp’s picture

i wonder if you had a working map with "geofield formatter map".

i have tried on the third fresh installation and it still do not work.

Danny Englander’s picture

Title: Openlayers maps breaks with img set to max-width: 100%; » openlayers maps issue

Ok I was finally able to duplicate your issue. I am opening this back up. I duplicated it using 'Openlayers' as the format >> geofield formatter map as the display as you mention above.

This is the same issue we are having here as reported in Adaptive Theme:
#1297980: img max-width 100% breaks map displays - gmap, getlocations, openlayers

I have a line of CSS in style.css as such:

img,
video {
  height: auto;
  max-width: 100%;
}

Removing max-width: 100%; fixes it. However, this is needed to provide some very basic defaults for a responsive style theme so I need to now figure out how best I am going to fix this. I need to look at the issue above and sort through it and see whats what.

Danny Englander’s picture

Title: openlayers maps issue » Openlayers maps breaks with img set to max-width: 100%;
Status: Closed (won't fix) » Needs work

Updating the title for better tracking.

Danny Englander’s picture

Title: openlayers maps issue » Openlayers maps breaks with img set to max-width: 100%;
Component: User interface » Code
Category: support » bug
Priority: Normal » Major
Status: Needs work » Needs review

I have pushed a preliminary fix to dev, can you test it out:

git clone --recursive --branch 7.x-1.x http://git.drupal.org/project/bamboo.git

Once you confirm, I will add a new release.

This is the new code added to style.css:

.gmap img,
.view-gmap img,
.openlayers-map img,
#getlocations_map_canvas img {
  max-width: none;
}

Thanks.

alpp’s picture

yes it fixed the problem. openlayers maps are now displayed all ok.

thank you very much.

Danny Englander’s picture

Status: Needs review » Reviewed & tested by the community

Ok thanks for reporting this. I am sorry about the confusion. I'll have a new alpha available within 24 hours.

Danny Englander’s picture

Status: Reviewed & tested by the community » Fixed

This fix is now incorporated into 7.x-1.0-alpha15

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.