Support Forum

  • Page:
  • 1

Marker description in JB maps doesn't show up on mouse over

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi,

I am using your great JB maps extension. I installed it here:
steinerskole.dk/index.php/om-os/hvor-ligger-skolen

When I click on the marker, the marker description shows, but I would like the marker description to show up when I put the mouse over it, or if possible to show up permanently. Is this possible?

Thanks.

Nya
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
Hi Nya,

If you open the mod_jbmaps.php file and change:
google.maps.event.addListener(marker, 'click', function() {

to this:
google.maps.event.addListener(marker, 'hover', function() {

It should work.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi Anthony,

I found this part of the script:

// The inactive version of the direction info
html = html + '<br>Directions: <a href="javascript:tohere('+i+')">To here</a> - <a href="javascript:fromhere('+i+')">From here</a>';

GEvent.addListener(marker, "hover", function() {
marker.openInfoWindowHtml(html);
});
gmarkers = marker;
htmls = html;
i++;
return marker;
}

and changed click to hover, but I am afraid it is not working. steinerskole.dk/index.php/om-os/hvor-ligger-skolen

Hope you had a nice weekend.

Nya
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
Hi Nya,

Did you change the code I mentioned above? Thats where the click function is coming from.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
I couldn't find it Anthony. The script section I included was the closest I could get to what you wrote. :(

Nya
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
Last Edit: 12 years 3 months ago by Nya Fleron.
The administrator has disabled public write access.
Hi Nya,

Im not sure that you are actually using our extension there. The code is different to the module we have.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi Anthony,

It was a much older version of jb_maps. I uploaded a newer version and was able to find the script you referred to.

Now I have just redelegated a second domain name and of course, nothing shows, because I can't have two API keys in the module. I have forwarded one of the domain names as a frame redirect, but it looks like that doesn't work either. I probably have to do a straight forward domain forward, correct? Or is there another way I can get around this? Can a second API key be added on?

Thanks for all of your help.

Nya
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
So I set the second domain name to be a normal http forward, but the module is still not working. Hope you can help out.

Nya
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
Hi Nya,

Did you install the latest version of the module? AFAIK, an API key is no longer required and that option should not appear in the module settings any more.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Thanks Seth, had to upload the xml file too. So it is working now!

The hover function still doesn't work though. Not sure what the problem is: I changed 'click' to 'hover'.

{ content: message
});
google.maps.event.addListener(marker, 'hover', function() {
infowindow.open(map,marker);
});
}

Thanks.

Nya
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
Last Edit: 12 years 3 months ago by Nya Fleron.
The administrator has disabled public write access.
Anything you can do to help me out with the hover function?

Nya
  • Nya Fleron's Avatar
  • Nya Fleron
  • LIfetime Developer - Big Bamboo
  • 284 posts
  • 3 Thanks
  • Karma: 2
The administrator has disabled public write access.
Sorry Nya,

I can't. Not sure what the issue is there. Maybe Anthony can spot something :)
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers