You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi - I'm having a go with jmapping at the moment and it's pretty neat - thank you.
This could be a Google maps rather than jmapping issue so forgive me if this is the wrong place to ask the question:
I have the map set up so that when a location link is clicked, in addition to it being identified on the map, a div with further information also appears on the page, like so:
$("a.map-link").click(function() {
var id = $(this).attr('href');
$("div").siblings(".partner").hide();
$(id).show();
});
So the information div appears if a sidebar link is clicked, but not if the map marker is clicked directly.
I'm a bit of a beginner and I'm wondering how I can get the div to also show when the map marker is clicked? I assume there's some sort of callback involved but I'm not sure where to start.
Many thanks.
The text was updated successfully, but these errors were encountered:
Hi - I'm having a go with jmapping at the moment and it's pretty neat - thank you.
This could be a Google maps rather than jmapping issue so forgive me if this is the wrong place to ask the question:
I have the map set up so that when a location link is clicked, in addition to it being identified on the map, a div with further information also appears on the page, like so:
$("a.map-link").click(function() {
var id = $(this).attr('href');
$("div").siblings(".partner").hide();
$(id).show();
});
So the information div appears if a sidebar link is clicked, but not if the map marker is clicked directly.
I'm a bit of a beginner and I'm wondering how I can get the div to also show when the map marker is clicked? I assume there's some sort of callback involved but I'm not sure where to start.
Many thanks.
The text was updated successfully, but these errors were encountered: