Member
Member
HermannG   16-10-2016, 17:28
#1

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

Administrator
Administrator
fretzl   16-10-2016, 17:49
#2

Some obvious questions ;-)
Is the plugin properly installed?(does it show up in the list of plugins?)
Did you in fact activate/enable the plugin?
Do you have a link to the site?

Can you post the code you placed + some surrounding lines of code?

Member
Member
HermannG   16-10-2016, 18:01
#3

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):

`

`

Administrator
Administrator
fretzl   16-10-2016, 18:53
#4

Thanks!
About the installation of the plugin again: Is the folder [i]zp_openstreetmap[/i] present in the [i]/plugins[/i] folder?

Administrator
Administrator
acrylian   16-10-2016, 18:59
#5

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.

Member
Member
HermannG   26-10-2016, 19:18
#6

Hi everyone,
since I could not figure out what caused the problem, I did a fresh install on a real machine (not a virtual one), and everything is working perfectly.
So thank you very much for the support; I hope I can help at anoter place.

Administrator
Administrator
acrylian   27-10-2016, 08:24
#7

Thanks for the feedback. Great it worked out finally. I hope I find time update the plugin to the latest leafletjs script soon.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.