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
Option to open links in "_parent" target instead of "_blank" for easier iframe integration #323
Comments
|
Would allow anchor values only in the link be an option? In other words:
It would be a bit implicit, but we already have a bunch of options in uMap, and I'm not sure this needs a new one. |
|
Of maybe |
Well, functionality-wise, yes, of course. You could also directly parse the
Nope, due to x-origin restriction you have no way of determining where the map is viewed: you cannot say if it's stand-alone in a separate tab/window or within an iframe on a parent page. Your condition would likely never match since you probably don't want to link to uMap in most cases. |
Good point!
I'll think about that option. |
|
Alright, thanks. I'd be very nice to have it, here's the (German) web page I'd like to use it in: http://www.pro-fuerstenried.de/2016/05/oekologie-im-viertel-ein-gastbeitrag/ Click on a green area on the map and jump down to the appropriate detailed description... |
|
Is there an solution for this problem? |
|
@yohanboniface with regard to your other comment in #349 (bottom):
As I don't know how exactly the links are created or what happens when you click on the overlay elements, here are the two ways that seem to work according to community: Redirect iFrame parent by clicking anchor link inside:
Redirect iFrame parent by javascript call:http://stackoverflow.com/questions/580669/redirect-parent-window-from-an-iframe-action
Determine when to load content in parent windowWell, see #323 (comment) for the suggestions already given... |
Is http://jsfiddle.net/ppkzS/ working for you? |
|
It's actually working if I try it in uMap: http://umap.openstreetmap.fr/en/map/demo_1#12/53.2397/9.0308 I'll investigate a bit more and have a try. Need to find the right format syntax though. |
|
Yes, this would solve my problem! This is my map: http://umap.openstreetmap.fr/de/map/webcams_98826#10/46.8405/12.6755 The links should open in the same (_parent) window. Von: Yohan Boniface notifications@github.com It's actually working if I try it in uMap: http://umap.openstreetmap.fr/en/map/demo_1#12/53.2397/9.0308 I'll investigate a bit more and have a try. Need to find the right format syntax though. You are receiving this because you commented. |
|
Perfect! Thank you for your great job! When will be the next release approximately? |
|
Thanks. Looks perfect. Can't wait to try it out... |
|
hey guys, when will be the next release? i would need this option as soon as possible. |
|
any news on this? |
|
the above option is still missing in the new release. what is the reason? |
You meant "I can find this option in the new version, am I not looking at the right place?". |
|
Is it possible to get this option for markers too? Thank you for your help! Von: Yohan Boniface [mailto:notifications@github.com] the above option is still missing in the new release. You meant "I can thing this option in the new version, am I not looking at the right place?". — |
|
Will this option be implemented for markers too in one of the next updates? |
|
hello, any news for this release? thank you! |

Dear dev's,
for easier iFrame integration I'd like to be able to set the target property of outgoing URLs. On my webpage, I currently have an interactive map with several areas. Upon clicking, a link such as
www.mydomain.com/deep-link#area_1is opened; the browser scrolls down to the respective anchor.Unfortunately, it always opens in a new window. I'd like to open in "_parent" to hint to the browser to simply scroll instead of loading the whole page again, even over cross-origin.
Thanks.
The text was updated successfully, but these errors were encountered: