Hi! I'm trying to set up leaflet in Drupal 8, and I'm having a weird issue. When it displays a map, it is displaying several tiles, but with tons of space between them. I've attached a screen shot. Any suggestions for how to fix this?

Also, there is a bug where the icons for the pin are being referred to relative to the current page, which means that they are 404s and not being displayed.

CommentFileSizeAuthor
map_broken_issue.png1.59 MBpukku
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pukku created an issue. See original summary.

MaskOta’s picture

I am taking a stab in the dark here but since i am using the module and i don't have this issues this looks like you might be overriding some map styles with your CSS.

szy’s picture

I am seeing exactly the same thing with the latest 7.x modules. It is completely fresh installation with Bootstrap theme.

It is no difference if I display the Leaflet map through Views or content type's fields - it is always broken in the way @pukku has shown.

Weird.

Szy.

pukku’s picture

For reasons of time, I had to switch over to the geolocation module for this purpose. However, when I was looking at the problem, I thought that I might be interfering with the CSS. I took the map tiles, and very carefully inspected the CSS tree, but I didn't find any rules from custom CSS that seemed to be the problem. My theme is a sub theme of Classy, so maybe there's something in Classy which doesn't work well?

RdeBoer’s picture

Title: Map displays really wrong » Map displays really wrong -- CSS/theme issue?

Changing title, as it seems to be a CSS or theme-related issue...