When building a map with user markers, setting the marker to "link" (2) works, but setting them to popup (1) does not work. Debugging what happens show this exception Uncaught TypeError: Object #(some object id) has no method openInfoWindow().
This is thrown in this fragment, near line 117 of marker.js:
$.get(uri, {}, function (data) {
obj.rmtcache[marker.rmt] = data;
marker.marker.openInfoWindowHtml(data);
The marker.marker object does not have such a method.
I fixed the problem in my case by changing the code to use a method similar to the one used when redisplaying from cache instead of fetching via AJAX:
$.get(uri, {}, function (data) {
obj.rmtcache[marker.rmt] = data;
infowindow.setContent(data);
infowindow.open(obj.map, marker.marker);
Comments
Comment #1
fgmSuggested quick patch.
Comment #2
podarokbefore commit this one needs check against latest 7.x dev
please, do it
Comment #3
podarok#1: 0001-Issue-1989450-by-fgm-fixed-user-popup-not-opening.patch queued for re-testing.
Comment #5
miccelito commented#1 worked fine for me (I'm using version 6.x-2.0-beta2).
Java console errors:
and
are gone after doing the change in the marker.js file
Thanks!
Comment #7
anpolimusComment #9
anpolimusThis code has already implemented to the latest dev branch.
Closing issue.