Map not showing in Joomla 4

Phoca Maps - displaying maps in Joomla! CMS
JenClades
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 17 Feb 2022, 10:24

Re: Map not showing in Joomla 4

Post by JenClades »

Hi,
I have a similar problem. I would like to adjust the height of the map, but as soon as I enter a value, with or without units, the map becomes just a thin line on the front end. Height must be 0 or blank to get the map.
My config : Joomla 4.0.6, Phoca Maps 4.0.0Beta, Phoca Maps Plugin 4.0.0Beta2.

Regards

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Map not showing in Joomla 4

Post by Jan »

Hi, in Joomla 4 you can set own units there: 5em, 50%

Jan
If you find Phoca extensions useful, please support the project
JenClades
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 17 Feb 2022, 10:24

Re: Map not showing in Joomla 4

Post by JenClades »

Hi Jan,

Thank you for your reply.

"%" does'nt work, but with "em" unit, the Heigth ajust of the map works correctly.

Regards
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Map not showing in Joomla 4

Post by Jan »

OK
If you find Phoca extensions useful, please support the project
dc41
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 28 Oct 2019, 18:59

Re: Map not showing in Joomla 4

Post by dc41 »

Benno wrote: 28 Jan 2022, 15:00 Hi Chris,
Supplementary question:
Did you enter values in the fields for width and height of the map?
backend --> Components --> Phoca Maps --> Maps
If yes, there must be also size units behind them (e.g. px, %)
If you do not set any size units but values, you will see a narrow gray horizontal bar instead of the map in the frontend.

Kind regards,
Benno
Just wanted to thank you Benno. I was having problems getting the map to show, but I solved it by adding px to the map size. Thanks for the solution!
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9449
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Map not showing in Joomla 4

Post by Benno »

@dc41
thanks for feedback

Kind regards,
Benno
plamen
Phoca Professional
Phoca Professional
Posts: 100
Joined: 16 Mar 2014, 13:23

Re: Map not showing in Joomla 4

Post by plamen »

Benno wrote: 28 Jan 2022, 15:00 If yes, there must be also size units behind them (e.g. px, %)
If you do not set any size units but values, you will see a narrow gray horizontal bar instead of the map in the frontend.
Nice to have it somewhere around the settings.
It would save me some time.
Post Reply