Skip to content
This repository

Interactivity: location seems to be broken #1502

Closed
lxbarth opened this Issue May 30, 2012 · 11 comments

5 participants

Alex Barth Dane Springmeyer Tom MacWright Ansis Brammanis Justin R. Miller
Alex Barth
Owner
lxbarth commented May 30, 2012

Tried to use location interactivity on 0.9.1, unexpectedly, click on an interactive element fails silently.

Tom MacWright
Owner
tmcw commented June 13, 2012

Added in Wax 6.2.0, needs integration with TileMill

Ansis Brammanis
Collaborator
ansis commented June 27, 2012

Whats the correct behavior in TileMill? Opening a browser window? Or do nothing and just export correctly?

Ansis Brammanis
Collaborator
ansis commented June 27, 2012

Any suggestions for opening a link in an external browser on all platforms (since it can't open in the TileMill standalone browser)?

Tom MacWright
Owner
tmcw commented June 27, 2012

I was told it could; check with @springmeyer and @incanus .

Dane Springmeyer
Owner

target="_blank" should do it if I recall correctly. Are you seeing that is not the case on linux?

Ansis Brammanis
Collaborator
ansis commented June 27, 2012

I looks like it isn't possible to open it using javascript, window.open() isn't working for me. An issue in topcube?

A possible workaround is showing a dialog asking whether to open the link, and linking the ok button. Its not great, since it would be different behavior than on MapBox hosting.

Ansis Brammanis
Collaborator
ansis commented June 27, 2012

It looks like its actually an issue in webkitgtk and probably won't get fixed any time soon https://bugs.webkit.org/show_bug.cgi?id=23432

Tom MacWright
Owner
tmcw commented June 27, 2012

Could use window.location - I think the code way in the past had, and I think the _base attribute of the tilemill UI will make it open in a new window.

Ansis Brammanis
Collaborator
ansis commented June 27, 2012

window.location does not work for me, it opens within the webview. I'll try to look back, and see what could have changed.

Ansis Brammanis ansis referenced this issue from a commit June 27, 2012
Ansis Brammanis Location interaction, opens in new tab.
Does not work in gtk webview due to a signal bug.
Discussion in #1502
5c6d385
Justin R. Miller
Owner

Re: the new window behavior, we should be covered on OS X per these lines.

Dane Springmeyer
Owner

Okay, location is now enabled in TileMill thanks to @aibram's pull request landing in #1542. The issue of how handling of a popup or new window behaves when TileMill is used not from a browser but from a native wrapper is a separate issue and can be handled at #1421. closing.

Dane Springmeyer springmeyer closed this June 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.