Active
Project:
GMap Module
Version:
7.x-2.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2013 at 20:55 UTC
Updated:
15 Nov 2015 at 22:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
JSCSJSCS commentedI did a bisect and found that commit f1203055ca084364f0f3d7050cbb9a6f818b0725 introduced the issue.
The previous commit daed68af5995775decc0340d35d9458590c11fd6 works as 7.x-1.x did with regard to displaying the marker text from the title field.
I should also point out that the odd tooltip behavior only exhibits itself when there are several locations displayed on the map. If a single location is displayed, then the tooltip looks correct.
Comment #2
JSCSJSCS commentedImages showing tooltips with many locations and a single location.
Comment #3
Bagz commentedThis issue is caused by the tooltip being built from the rendered field content (see for example views_plugin_style.inc, ~ line 525), which is then used in gmap_plugin_style_gmap.inc ~ line 233.
HTML tooltips are html attributes, not rendered content, hence the problem here.
My way of getting around this was to add the line
$tooltip = htmlspecialchars_decode($tooltip, ENT_QUOTES);immediately following the line in gmap_plugin_style_gmap.inc, which reverts the special characters back to what they were.
Comment #4
ikeigenwijs commentedtried this but did not help
line 259 in gmap_plugin_style_gmap.inc
if ($this->options['tooltipenabled'] && !empty($this->rendered_fields[$row_index][$this->options['tooltipfield']])) {
$tooltip = $this->rendered_fields[$row_index][$this->options['tooltipfield']];
$tooltip = htmlspecialchars_decode($tooltip, ENT_QUOTES);
Comment #5
ikeigenwijs commentedcannot change the Status in edit
Comment #6
wildlife commentedI'm having the same problem. GMap version 7.x-2.9.
Comment #7
wildlife commentedI just tried the solution in #3 and it worked. Starting at line 254 in version 7.x.-2.9, I now have the following code:
I don't know if the way I added the new line is correct though. Please advise if this is how it should be. It worked though. Thanks.
Comment #8
summit commentedHi,
May be late. But this works
See for D7, https://www.drupal.org/node/2615890
greetings, Martijn