Displaying a map in an article

  • Lunado
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago - 4 years 5 months ago #13564 by Lunado
Displaying a map in an article was created by Lunado
Hallo..
I have a problem: look at the attached picture, the grid is set on the map and the marker is also displayed poorly. Thanks for help.
Attachments:
Last edit: 4 years 5 months ago by Lunado. Reason: please move to Zh OpenStreetMap

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #13565 by Dima
Replied by Dima on topic Displaying a map in an article
Hi
You have some troubles with CSS, I mean attributes for padding, margin for img tags. And for Icons - I think you have max-width attribute for img tag.

I can tell you more if you give direct link to your map page

Don't forget support my developments: post review in JED , donate , help with translation ;)
The following user(s) said Thank You: Lunado

Please Log in or Create an account to join the conversation.

  • Lunado
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #13569 by Lunado
Replied by Lunado on topic Displaying a map in an article
Thanks for the help, but if it's in the template, I won't do anything there because it works well. But I will also add a link:
krajinou.sk/marinemuseum-wilhelmshaven

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago - 4 years 5 months ago #13570 by Dima
Replied by Dima on topic Displaying a map in an article
Hi
I can see your template overrides img tag styles.

Before: by default I use style zhom-map-default class name for map div, ie you can use
Code:
.zhom-map-default { }
for chaging styles.

Look at, initial styles


You can see borders and margins

then I change some styles - remove some of it



As you can see all is correct, but placemark icon has bad background, lets fix it too



And now it is OK.

Just add your override styles at the end of your template CSS

Don't forget support my developments: post review in JED , donate , help with translation ;)
  • Last edit: 4 years 5 months ago by Dima.

    Please Log in or Create an account to join the conversation.

    • Lunado
    • Topic Author
    • Offline
    • New Member
    • New Member
    More
    4 years 5 months ago #13571 by Lunado
    Replied by Lunado on topic Displaying a map in an article
    Ok, thank you for your time, but I can't write the code, I tried something, it doesn't work, I'll see something else.

    Please Log in or Create an account to join the conversation.

    More
    4 years 5 months ago - 4 years 5 months ago #13572 by Dima
    Replied by Dima on topic Displaying a map in an article
    I mean your ode like
    Code:
    div.zhom-map-default img { margin: 0 !important; padding: 0 !important; }

    and override the other values for CSS for img tag in map div

    Don't forget support my developments: post review in JED , donate , help with translation ;)
    Last edit: 4 years 5 months ago by Dima.

    Please Log in or Create an account to join the conversation.

    Time to create page: 0.180 seconds
    Powered by Kunena Forum