I tried a lot to get zp_OSM working following the instructions on github. Unfortunately, I did not have success for 2 weeks. I tried several themes (especially basic and libratus), put the printOpenStreetMap() in image.php (hopefully in the right place).
There is obviously some space reserved below the picture, but no map displayed (only blank background).
I could not find any errors in the logs, so I ask here for advice, maybe someone has a suitable "image.php" I can try with.
Thanks for any help
Hermann
Hi fretzl, thanks for the quick reply.
Is the plugin properly installed?(does it show up in the list of plugins?)
--> Yes
Did you in fact activate/enable the plugin?
--> Yes, the box on the plugins list is ticked.
Do you have a link to the site?
--> Unfortunately not now, I'm using a virtual machine for testing.
Can you post the code you placed + some surrounding lines of code?
--> Here comes a snippet from libratus' image.php (about lines 63-81):
`
`
You actually you don't need to check for geodata as the class method printMap() does this already, ,too. (counts for both plugins).
Actually using the printOpenStreetMap() and optionally setting the parameters are needed should be enough. Setting the options everytime is not needed at all as you can set them on the backend.
I heard reports about the map not showing up but so far I could not reproduce it. Make sure you have selected one of the OSM map tiles for testing. And of course there is not a big company behind OSM so sometimse their servers take a while.