-
Zh OpenStreetMap
-
Component
-
Special Map for smartphone in Joomla
Special Map for smartphone in Joomla
-
kreidei
-
Topic Author
-
Offline
-
Senior Member
-
Less
More
-
Posts: 42
-
Thank you received: 0
-
-
3 years 7 months ago #13930
by kreidei
Hi Dima!
I need a special map height for the smartphone user and i tried following way.
Make a second map.
for example:
map1 (height: 600px)
map1_mobil (height: 500px)
Make two modul in joomla:
One with map1 and subfix hidden_phone
One with map1_mobil and subfix visible_phone
but on the smartphone will not be showed!
Is there also a other way to make a own map for smartphones ?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
3 years 7 months ago #13931
by Dima
You can try to use the same map, but define
in map details CSS class name.
And after that apply your CSS depends on device resolution
Please Log in or Create an account to join the conversation.
-
kreidei
-
Topic Author
-
Offline
-
Senior Member
-
Less
More
-
Posts: 42
-
Thank you received: 0
-
-
3 years 7 months ago #13934
by kreidei
Dima can you give me a example for the map class name and a definition ?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
3 years 7 months ago #13935
by Dima
Here map with default class name
Go to map details, Advanced options tab, and enter your class name
And now you can see your class for map div
Please Log in or Create an account to join the conversation.
-
kreidei
-
Topic Author
-
Offline
-
Senior Member
-
Less
More
-
Posts: 42
-
Thank you received: 0
-
-
3 years 7 months ago #13936
by kreidei
Okay Dima, now i have give the map a class name name = mobil
and than ? how i can confugure it for the resulotion ?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
3 years 7 months ago #13937
by Dima
I'm not well on CSS, just check words in CSS like
@media only screen and (max-width: 960px), (max-device-width: 960px) {
/*here CSS styles*/
}
@media only screen and (max-width: 480px), (max-device-width: 480px) {
/*here CSS styles*/
}
@media only screen and (min-width: 481px) and (max-width: 960px), (min-device-width: 481px) and (max-device-width: 960px) {
/*here CSS styles*/
}
@media only screen and (min-width: 719px) and (max-width: 721px), (min-device-width: 719px) and (max-device-width: 721px) and (orientation:portrait) {
/*here CSS styles*/
}
Please Log in or Create an account to join the conversation.
-
Zh OpenStreetMap
-
Component
-
Special Map for smartphone in Joomla
Time to create page: 0.122 seconds