Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Must tap map twice to follow link #59

Open
eweisbrot opened this issue Dec 2, 2015 · 8 comments
Open

Must tap map twice to follow link #59

eweisbrot opened this issue Dec 2, 2015 · 8 comments

Comments

@eweisbrot
Copy link

Hello,

When viewing the map on an iPhone, e.g. here: http://199.119.123.135/surety-bonds/commercial-bonds/auto_dealer_bond.htm, it seems you have to tap a state twice in order to go to its link. This only happens on the iPhone, not desktops.

Any idea how to fix this? Thanks!

@digitaccel
Copy link

I'm also having this issue on iPads. Will dig deeper to see what;s going on.

@digitaccel
Copy link

This issue was addressed (thankfully) by kcaran in issue#33. I added the 'touchend' to the click bind event in two places as he did and it works great.

Copied from that issue: "I had to add touchend events to get us-map working on ipads/iphones. I haven't noticed the hover states not clearing:

http://www.kcaran.com/us-map-example/

Here is my version of us-map:

https://github.com/kcaran/us-map"

@eweisbrot
Copy link
Author

I added the touchend to my code and it seemed to fix the issue. Thanks :)

However, I noticed now when you click a state on a mobile device, the state no longer gets highlighted and it sometimes zooms in before going to the linked page. Do you see this as well?

@digitaccel
Copy link

Actually I use text for smaller devices as I would imagine the states are too small. Can you supply a web link for me to look at?

@eweisbrot
Copy link
Author

Please see here: http://www.jwsuretybonds.com/

@digitaccel
Copy link

I'm using a droid maxx and it worked fine. Didn't see what you mentioned. I see you didn't make the map responsive. If you're interested in doing so check more recent comments on how to do it.

@eweisbrot
Copy link
Author

Thanks for checking! Can you point me to the thread for enabling responsive functionality?

@digitaccel
Copy link

It's number 60, the one prior to this one. Actually you commented there as well. There's no way to 'enable' the responsive mechanism. You have to create a map for whatever screen sizes you want and hide the others. You'll see what I mean in the thread.

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

No branches or pull requests

2 participants