I'm using Leaflet to display maps from geofield data, with the great Leaflet Widget for Geofield module and I was having trouble with the accurate display of the marker points. When editing, the marker position displayed correctly but shown displayed on the node display (or in Views) the marker was consistently too high, by about 20 pixels.
I struggled with this issue and wasted a few hours but with help (from 'indigoxela' and 'yorkshire-pudding' in https://backdrop.zulipchat.com/) managed to get to the bottom of it.
I had built a subtheme of Bootstrap Lite, and that theme adds a top and bottom margin of 20px to the marker (img).
I added to my subtheme's styles.css:
img { margin: 0; }
and all was displayed perfectly.
I'm adding this here in case anyone else comes across this particular combination of theme and module and sees the same problem.
Recent comments
Awesome, I've unchecked the multifiled settings and now everthings works like a charm! Great work, again thank you very much!
How to show "Repeating dates" on a view page?
Extremely useful idea and module. Thank you! This may have many other flexible applications in administering website's content and design.
Is it possible to choose a specific layout for each post ?
Oh cool ! I didn't know this module. I'm going to try it. Thanks.
Is it possible to choose a specific layout for each post ?
Hi Dominique You can use Field Visibility Condition to determine whether a layout is used or not. For example, I often use this where I have some pages with a sidebar and some without. I create a...
Is it possible to choose a specific layout for each post ?
Hello, Sorry, I forgot to thank you for your responses. So thank you for your help. Dominique.
Is there a rest api?