Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Callback from map markers #17

Open
ReallySmall opened this issue Aug 26, 2011 · 0 comments
Open

Callback from map markers #17

ReallySmall opened this issue Aug 26, 2011 · 0 comments

Comments

@ReallySmall
Copy link

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant