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

Responsive(mobile) view & main stage actions-possible? #47

Open
upcamogie opened this issue Jan 7, 2016 · 3 comments
Open

Responsive(mobile) view & main stage actions-possible? #47

upcamogie opened this issue Jan 7, 2016 · 3 comments
Labels

Comments

@upcamogie
Copy link

I have a link on my side panel that is a main stage action to replace the map on the main stage with a PDF document describing the map/project. It looks good in the main view but when I test on an Ipad-sized view, the link on the side panel (which is now the 'learn more' content..would love to change that language but thats another story) does not go to the PDF but rather just back to the map. Is there any way for the responsive design to get to this content? Bug? limitation?

Alternatively, I have put the PDF in a iframe on the side panel-- that could work if I could get the 'fit to width' to be the default view and/or have the iframe code I enter be honored. I try and add standard iframe code I've used elsewhere defining width, height & scrolling, but the tags are ignored and it defaults to its own dimensions. ideas? thx

@glazou
Copy link

glazou commented Jan 12, 2016

I am not able to reproduce the first issue. For me the PDF open as expected using Safari on iOS 9.1. But your issue may be that if you don't click exactly on the link, it will get back to the map as this is the expected behavior. Could you try increasing the font size and see if it helps? If that's your issue, you may like the following article to create nice button https://medium.com/story-maps-developers-corner/create-buttons-for-main-stage-actions-using-the-style-tag-144b3aeb5583#.wa4x9pefq

Inline PDF seems to works fine for me, see my test app http://story.maps.arcgis.com/apps/MapJournal/?appid=d56ce09c17624eb2a7d760481f05ea40.
Are you adding it using the inline media feature or through the editor source view? I recommand you use the first way, see screenshot below , you will have access to fit to width or custom. If you want custom value, entering them in that dialog should work.

image

I noticed another issue, the PDF cannot be navigated, scrolling the Main Stage makes the whole app to scroll. I will look at that one for sure for next release and wait for your feedback on the other two.

@glazou glazou added the bug label Jan 12, 2016
@glazou glazou added this to the V1.7.0 milestone Jan 12, 2016
@upcamogie
Copy link
Author

Sorry for not being available to respond to this until n ow...
I am having better performance viewing the PDF as the main stage action so I think I will probably use that if it works OK with the resolution for our iframe (this will be embedded in a web page and I am using Ipad as the approx size of the frame).

For the other question, I am adding as you indicate in the screen shot-- I have done the 'fit to width' but it still seems to not fit the document itself but the PDF window that comes up. I will test it again because it looks good in your test app and that is how it should look in mine. It may be the way this window is getting compressed in the mobile view.
and finally, I did notice the PDF scroll issue. Luckily in my main stage action in the mobile view, it does work.
I'll be watching for the bug you reported and other improvements. thanks--

@glazou
Copy link

glazou commented Feb 5, 2016

Wanted to let you know that I haven't been able to find a fix for any of those issues. I will be looking at it again for our next release in June.

@glazou glazou removed this from the V1.7.0 milestone Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants