Announcement

  •  » Themes
  •  » Bootstrap darkroom: OpenStreet Map not shown

#1 2017-06-01 16:10:10

wernfried
Member
2012-01-21
84

Bootstrap darkroom: OpenStreet Map not shown

Hi,

I am using OpenStreetMap Plugin but map is not shown.

Map is shown in any other theme I use. Map is also visible when I go to theme configuration and set "Picture info display position" to "Sidebar (like Boostrap Default)" but when I set "Tabs below the image" then the map is not shown.

It was working fine in earlier version (i.e. a few weeks ago)

Piwigo version: 2.9.0
Bootstrap darkroom Version: 1.5.10
OpenStreetMap Version: Version 2.8.d
PHP version: 7.0.11
MySQL version: 5.5.5-10.0.28-MariaDB

Any idea to fix it?

Best Regards
Wernfried

Offline

 

#2 2017-06-02 09:31:24

teekay
Member
2013-06-12
427

Re: Bootstrap darkroom: OpenStreet Map not shown

Oh, the last version 1.5.10 broke it. I will not revert the change that broke it, though.

As a quick workaround, edit plugins/piwigo-openstreetmap/picture.inc.php, line 60:

from:

Code:

$search = '#<div id="'. $conf['osm_conf']['right_panel']['add_before'] .'" class="imageInfo">#';

to:

Code:

$search = '#<(.*) id="'. $conf['osm_conf']['right_panel']['add_before'] .'" class="imageInfo">#';

Offline

 

#3 2017-06-02 18:57:56

wernfried
Member
2012-01-21
84

Re: Bootstrap darkroom: OpenStreet Map not shown

Hi

I tried your workaround but it does not help. Still the same issue.

Offline

 

#4 2017-06-05 19:22:54

martinis
Member
2013-07-02
32

Re: Bootstrap darkroom: OpenStreet Map not shown

Hi

Yes I have the same problem. The map shows on album view but not for individual photos.I have also tried the work-around, but unsuccessfully.

My configuration is
Piwigo 2.9.0
Operating system: Linux
PHP: 7.0.16 (Show info) [2017-06-05 18:14:56]
MySQL: 5.5.51-38.2 [2017-06-05 10:14:56]
Graphics Library: External ImageMagick 6.9.3-10
OpenStreet map: 2.8.d
Bootstrap Darkroom: 1.5.10

Hope you can see what the problem is. Let me know if you need more info.

Many thanks

Martin

Offline

 

#5 2017-06-06 09:22:00

teekay
Member
2013-06-12
427

Re: Bootstrap darkroom: OpenStreet Map not shown

Hm, strange.

Try this instead:

Code:

$search = '#<tr id="'. $conf['osm_conf']['right_panel']['add_before'] .'" class="imageInfo">#';

Offline

 

#6 2017-06-06 11:31:20

martinis
Member
2013-07-02
32

Re: Bootstrap darkroom: OpenStreet Map not shown

Thanks for your quick response.  That made no difference. However, I think I have solved the problem.  I re-read the documentation for the OpenStreetMap plugin and there is a section under 'Right Panel configuration' on 'Add location before':

Make sure that the position you choose for the map is set in 'Display' options to be visible and does exist. Configuration -> Options -> Display

My positioning was set to 'Add location before: Rating Score' and on checking I see I had not made this visible to all (I do not use rating scores). So I changed it to 'Add location before: Created on' and now the map is displayed (using the original version of picture.php)
So it looks as though it was my mistake. But I am sure that the map did display a few weeks ago. I know I have had the problem with the 'EXIF GPS data not read' http://piwigo.org/forum/viewtopic.php?id=26785, so maybe while trying to sort that out I had changed the OpenStreetMap settings.

Best wishes

Martin

Offline

 

#7 2017-06-12 12:43:05

teekay
Member
2013-06-12
427

Re: Bootstrap darkroom: OpenStreet Map not shown

This is fixed in git now.

Offline

 
  •  » Themes
  •  » Bootstrap darkroom: OpenStreet Map not shown

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact