Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Hotspot links aren't working? #52

Closed
emjaysea opened this issue Mar 7, 2012 · 7 comments
Closed

Hotspot links aren't working? #52

emjaysea opened this issue Mar 7, 2012 · 7 comments

Comments

@emjaysea
Copy link

emjaysea commented Mar 7, 2012

Hey James, thanks for your help with issue #47. Now that I've got that all sorted out, I uploaded the files to the server and started testing them, only to find that the map hotspot links don't work. (Kinda defeats the purpose...)
Here's my code:
http://jsfiddle.net/emjaysea/npkvX/

Here's one of the pages:
http://www.michigan.gov/documents/dnr/FMD_Hatch_378312_7.html

(Oh, and I reverted to your original script in case the one from the USA map I was using was the problem (or my implementation of it), but it doesn't appear that's the case.)

@jamietre
Copy link
Owner

jamietre commented Mar 7, 2012

See issue: #41 -- this isn't actually a bug, it's not supposed to do it.

However, this comes up all the time! And I said I would make it a feature sometime soon. Now I have. Download the latest dev version (1.2.4.050):

https://raw.github.com/jamietre/ImageMapster/master/dist/jquery.imagemapster.js

and add an option

clickNavigate: true

(I didn't want to make it the default beause it could break existing code)

Anything with an href that's not href="#" willl get navigated to.

@jamietre
Copy link
Owner

jamietre commented Mar 7, 2012

btw here's an example I've been working on which shows some of the stuff you use:

http://jsfiddle.net/jamietre/eaf2G/

Might be useful. Alaska will navigate.

@jamietre jamietre closed this as completed Mar 7, 2012
@emjaysea
Copy link
Author

emjaysea commented Mar 8, 2012

Damn noobs always misunderstanding our intentions! ;)
Thanks for your help, James. Works like a charm.

@goftt
Copy link

goftt commented Mar 27, 2012

I got the clickNavigate working using the dev link above, but then the tooltips don't show up.

You can see here: http://jsfiddle.net/MpwbE/2/ the href link works, but then the tooltips don't appear at all. If I use version 1.2.4, the tooltips appear but the href links don't work.

I'm not sure if this belongs here or here #16, but the issue did not appear until I used version 1.2.4.050.

Any advice for how to workaround this? The end result I need is to have the image map click navigate to an href, and I also need to have the tooltips so users know where to click.

Thanks in advance!

@jamietre jamietre reopened this Mar 28, 2012
@jamietre
Copy link
Owner

There's a stray comma in the fiddle of revision 2 which is causing the problem (there's a script error) though before you edited the issue, I could see the problem in revision 1! I had made some changes to the tooltip positioning code a few subversions ago to correct the problem that tooltips could not appear outside the image boundary. Looks like I got something wrong.

Jsfiddle is horrendously slow right now, rather than pulling the example offline I'm going to wait a little while and try again to look at it online later. This shouldn't be hard to resolve.

@jamietre
Copy link
Owner

OK you're good to go, pull the latest dev (057) down.

http://jsfiddle.net/jamietre/MpwbE/8/

@goftt
Copy link

goftt commented Mar 28, 2012

Thank you for your quick response and for donating your time on this plugin -- cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants