-
Forum
-
Zh GoogleMap
-
Component
-
Displaying a map in an article
Displaying a map in an article
-
Lunado
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
3 years 10 months ago - 3 years 10 months ago #13564
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.
Last edit: 3 years 10 months ago by Lunado. Reason: please move to Zh OpenStreetMap
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
3 years 10 months ago #13565
by Dima
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
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
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
3 years 10 months ago - 3 years 10 months ago #13570
by Dima
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
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
Last edit: 3 years 10 months ago by Dima.
Please Log in or Create an account to join the conversation.
-
Lunado
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
3 years 10 months ago #13571
by Lunado
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.
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
3 years 10 months ago - 3 years 10 months ago #13572
by Dima
I mean your ode like
div.zhom-map-default img {
margin: 0 !important;
padding: 0 !important;
}
and override the other values for CSS for img tag in map div
Last edit: 3 years 10 months ago by Dima.
Please Log in or Create an account to join the conversation.
-
Forum
-
Zh GoogleMap
-
Component
-
Displaying a map in an article
Time to create page: 0.257 seconds