8 years ago
7
Topic

hi

i'm trying to add tags field in the infowindow of Map Template but after adding tags field, the map is not loading itself. every field is showing itself but when i add tags field, it is unable to load itself also if i add tags in the search field it is showing error can any one help me to solve this bug in Map template i'm very upset  

thanks 

Get a VIP membership
4229 Posts
Kadministrator
8 years ago
6
Level 1

Hi,

I made a ticket on github and sent fix to seblod

https://github.com/Octopoos/SEBLOD/issues/147

548 Posts
joomleb
7 years ago
5
Level 2

Hi Klas,

as far as I understand this issue is still unsolved, am I right ?

4229 Posts
Kadministrator
7 years ago
4
Level 3

as far as I know, yes..

4229 Posts
Kadministrator
7 years ago
3
Level 4

FIX

Replace

$markers          =  '';

with

$markers       =  array();

Replace

$html      =  addslashes( $html );
$markers   .= '["'.$html.'", "'.$icon.'", "'.trim( $location ).'"],';

with (there are 2 places where you need to replace this):

$markers[] = array($html, $icon, trim( $location ));

and (also 2 places)

$markers       =  substr( $markers, 0, -1 );

with

$markers    = json_encode($markers);
548 Posts
joomleb
7 years ago
2
Level 5

Hi Klas, 

many thanks for suggestion!

Please, Why is it still as "Open" on GitHub?

4229 Posts
Kadministrator
7 years ago
1
Level 6

Because new version of the field has not been released yet. Not sure why.

4229 Posts
Kadministrator
7 years ago
0
Level 7

New version that fixes this has been published.

Get a Book for SEBLOD