Page 1 of 1
Map does not show in article
Posted: 26 Oct 2022, 16:34
by MartijnM
I wanted to start using Phoca Maps on my new Joomla 4 website.
I do use the plugin.
When I do use {phocamaps view=map|id=1} the map does not show, just an empty box.
I did read all the problems others had with not showing the map. At last I found the solution.
I do think that when I use a pagebreak (<hr class="system-pagebreak" title="Text" />, even when it is after the map) the map is not shown. My articles are big, so without pagebreaks is not the solution.
I do think the plugin for J3 has the same problem.
Re: Map does not show in article
Posted: 29 Oct 2022, 23:27
by Jan
Hi, there can be two problems:
- the plugin is not transformed (not installed, not enabled, used in place which does not support content plugins)
or
- the plugin is rendered but the map not display due to a) Javascript problem or b) CSS problem
So check a) (displaying the JS console if there is no error) or try to check the website for CSS - if e.g. the map box is large enough, etc.
Jan
Re: Map does not show in article
Posted: 31 Oct 2022, 12:52
by MartijnM
You can discover it yourself:
Make a new Joomla4 or Joomla 3 website.
Install PhocaMaps and plugin. Activate plugin. Create a map. Use a Google map. Create an article and add {phocamaps view=map|id=1}
The map shows. Now add <hr class="system-pagebreak" title="Text" />
On the frontend the map does not show. When you hit in the Article Index: 'All pages', the map will show.
I did not install anything but Joomla and PhocaMaps.
Re: Map does not show in article
Posted: 02 Nov 2022, 00:33
by Jan
Hi,
Now add <hr class="system-pagebreak" title="Text" />
Where should I add this code? Below or above the map?
Jan
Re: Map does not show in article
Posted: 02 Nov 2022, 10:38
by MartijnM
It is below the map.
Re: Map does not show in article
Posted: 03 Nov 2022, 23:55
by Jan
Hi, I see now.
What is interesting, displaying OpenStreetMap is no problem.
The solution for Google maps is to reordering of the plugins in Joomla administration. Just order Phoca Maps plugin before Page Navigation and Page Break plugin
Then even Google Maps will be displayed.
Jan
Re: Map does not show in article
Posted: 04 Nov 2022, 11:53
by MartijnM
For me the solutions was to make the order of the Plugin 'Last'
https://imgur.com/u2FHIOx
Thanks!
Re: Map does not show in article
Posted: 09 Nov 2022, 01:32
by Jan
Ok, thank you for the info.
Jan