-
Main Forum
-
Suggestion Box
-
PopUp image resize content
PopUp image resize content
-
tag6
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 24
-
Thank you received: 0
-
-
4 years 6 months ago #12550
by tag6
I used a Zh OpenStreetMap Module with Placemark Group List ID4 but the popUp image is too large. custom-maps.css does not work as in component. (see attachments).
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4606
-
Thank you received: 460
-
-
-
-
-
4 years 6 months ago - 4 years 6 months ago #12551
by Dima
Hi.
In your case custom-map.css is overriden by my common.css
Try to create your own css file. Add your styles there and in map details on "Advanced options" add line into "Additional CSS style files for loading" with path to your file.
In this case after my styles will be loaded your file and it will override my styles.
Last edit: 4 years 6 months ago by Dima.
Please Log in or Create an account to join the conversation.
-
tag6
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 24
-
Thank you received: 0
-
-
4 years 6 months ago - 4 years 6 months ago #12560
by tag6
custom-map.css is overriden by common.css !!! why ?
1) load my css in custom-map.css file
menu> single item> in item insert plugin {Zhosmmap: 1; 10}
it works correct
2) load my css in custom-map.css file
menu> contact list category + bottom module OpenStreetMap group id 4 (enabled only for menu list contacts category)
not correct ...
see attachments...
Last edit: 4 years 6 months ago by tag6.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4606
-
Thank you received: 460
-
-
-
-
-
4 years 6 months ago #12563
by Dima
I think due to different loading way.
Without link to page I can't explain more.
As I wrote, you can easyly add to load your styles in map in case styles override
Please Log in or Create an account to join the conversation.
-
tag6
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 24
-
Thank you received: 0
-
-
Less
More
-
Posts: 4606
-
Thank you received: 460
-
-
-
-
-
4 years 6 months ago #12565
by Dima
Hi
I can see the same order of css files, but I can't correct explain why custom-maps.css is not override.
I can see your first map displayed by plugin call, and map div is not "OMapsID" - this div defined in my css file to disable max-width (and you set not default map CSS class), therefore my css is not set img tag.
And the second map displayed by module, and it has div OMapsID, which take my styles and you got wrong style.
I'm not well in CSS overrides, I though it have to be correct work.
I suggest to check
1 - in your custom-maps file add override to definite map div, like
.rcmaps img,
#OMapsID img
{
max-width: 100% !important;
}
Probably in this case direct override (not by class) will do what you want
2 - you can create Custom HTML module, publish it instead map module, and call there plugin
Please Log in or Create an account to join the conversation.
-
Main Forum
-
Suggestion Box
-
PopUp image resize content
Time to create page: 0.250 seconds