Joomla 4.2.2 and PhocaMap com/plg 4.0.0 - Map doesnt show up

Phoca Maps - displaying maps in Joomla! CMS
christoph.mue
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 26 Sep 2022, 14:15

Joomla 4.2.2 and PhocaMap com/plg 4.0.0 - Map doesnt show up

Post by christoph.mue »

hello,

I'm using Joomla 4.2.2, actually with xampp. Plugin and Component (v4.0.0) installed and activated. created a map and a marker, both published. defined all options width/height, longitude, zoom, etc. . Insert code in an article with basic code:

Code: Select all

{phocamaps view=map|id=1}
I just see a grey line.
what else can possibly wrong?

Tags:
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9094
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Joomla 4.2.2 and PhocaMap com/plg 4.0.0 - Map doesnt show up

Post by Benno »

Hi,
since Phoca Maps v4.0.0 it's not enough to set values for map width and height, you also need to set their units like: px, %
See image:
Image

Kind regards,
Benno
christoph.mue
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 26 Sep 2022, 14:15

Re: Joomla 4.2.2 and PhocaMap com/plg 4.0.0 - Map doesnt show up

Post by christoph.mue »

Hi!
Thats it, thank you very much!
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9094
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Joomla 4.2.2 and PhocaMap com/plg 4.0.0 - Map doesnt show up

Post by Benno »

You're welcome!

Kind regards,
Benno
ecat42
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 26 Jan 2023, 05:16

Re: Joomla 4.2.2 and PhocaMap com/plg 4.0.0 - Map doesnt show up

Post by ecat42 »

Thank you for helping with this answer. I had 2 Phoca maps on my website. One would not show up. I read your post and put 'px' after the value and it worked. The reason why the other map was showing after the upgrade to Joomla4 was because I had left the height and width values at default '0'. It appears that the default value of 0 does not need 'px'.
Thanks again!
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9094
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Joomla 4.2.2 and PhocaMap com/plg 4.0.0 - Map doesnt show up

Post by Benno »

@ecat42 You're welcome!

Kind regards,
Benno
Post Reply