PhocaMaps not displaying on J4

Phoca Maps - displaying maps in Joomla! CMS
PJones54
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 18 Aug 2022, 13:20

Re: PhocaMaps not displaying on J4

Post by PJones54 »

Jan wrote: 23 Aug 2022, 14:02 Hi, the map is there, it is only hidden by CSS.

When I set 100px height for the map box, I get this result:

Try to go to options and try to set some height for the map.

Jan
Thanks Jan.....each map is set to 600px.

Can you give me the code to manually add it into the template with 600px?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47898
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PhocaMaps not displaying on J4

Post by Jan »

e.g.

Code: Select all

.phocamaps-map {
  height: 50vh;
}
If you find Phoca extensions useful, please support the project
PJones54
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 18 Aug 2022, 13:20

Re: PhocaMaps not displaying on J4

Post by PJones54 »

Jan wrote: 23 Aug 2022, 15:08 e.g.

Code: Select all

.phocamaps-map {
  height: 50vh;
}
Many thanks Jan......works great on the component page, but still not showing with the plugin!

Scroll down a little bit here and you'll see that just the code shows:

https://www.onfootinspain.com/new/tours ... e-santiago
PJones54
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 18 Aug 2022, 13:20

Re: PhocaMaps not displaying on J4

Post by PJones54 »

See previous post Jan......and for some unknown reason the component page map is now no longer working.

Nothing has changed on the site that could have caused that to happen.

https://www.onfootinspain.com/new/map
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47898
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PhocaMaps not displaying on J4

Post by Jan »

Hi,

if the plugin code is displayed instead of the map, then generally, this can be the reasons:

- plugin is not installed
- plugin is not activated
- plugin is used in area which does not accept content plugins

The component map still does not have the height, when I set it manually in code, everything is OK there:

Image
If you find Phoca extensions useful, please support the project
Post Reply