tangram-play icon indicating copy to clipboard operation
tangram-play copied to clipboard

share menu option

Open burritojustice opened this issue 8 years ago • 15 comments

once we implement #637, add a "Share" menu item that generates a mapzen.com/tangram/view URL based off of the current scene.

burritojustice avatar Jan 25 '17 18:01 burritojustice

Share requires saving, we should have the button show up prominently for now. Button stays active and prompts sign-in+save to share

souperneon avatar Jan 25 '17 19:01 souperneon

screenshot 2017-01-25 14 49 30

louh avatar Jan 25 '17 19:01 louh

Can we try making the 'Share' more buttony feeling to both call it out as an action item in the menu and highlight it? otherwise, placement is good.

souperneon avatar Jan 25 '17 20:01 souperneon

thanks -- and noticed the non-dev http://mapzen.com/tangram/view URLs are working.

Am assuming tangram/view is the most recent version of tangram-frame -- adjacently related I've made an issue for a URL shortening suggestion https://github.com/tangrams/tangram-frame/issues/40 -- basically https://mapzen.com/tangram/view/22/148#15/37.7615/-122.4173

burritojustice avatar Jan 25 '17 20:01 burritojustice

Make share a menu and make the options-

  • Public link (requires user to have signed in and saved the style)
  • Embed code

souperneon avatar Jan 25 '17 21:01 souperneon

@burritojustice I'll add some more thoughts about URL shortening in the other issue, but I just wanted to clarify that for Tangram Play's goals, we will not be shortening URLs here.

louh avatar Jan 25 '17 22:01 louh

working with folks outside Mapzen on a project in Play, I realized we need a Share Code option (that open's Play) as well as Share Map (which opens the tangram view url)

burritojustice avatar Jan 27 '17 20:01 burritojustice

Is this something that save -> copy and paste the URL couldn't do?

louh avatar Jan 30 '17 23:01 louh

If I understand John correctly, he is talking about 2 different use cases of what Share could mean -

  • A user who wants to share the cool map they made as a visual. They don't want to see the Play editor but the tangram view url
  • A user who wants to share the code they used to create a cool map/shader, this opens the Play editor

@burritojustice is that right?

souperneon avatar Jan 30 '17 23:01 souperneon

Correct -- opening the map in tangram view, vs opening Play with the yaml for the map visible.

burritojustice avatar Jan 30 '17 23:01 burritojustice

Right - so my point is the link for Play, with the YAML content, is right in the URL line for the page:

screenshot 2017-02-02 17 52 05

You can copy-paste this and get a link:

https://mapzen.com/tangram/play/?scene=https%3A%2F%2Fmapzen.com%2Fapi%2Fscenes%2F7%2F26%2Fresources%2Fempty.yaml#9.9757/40.7667/-74.0994

Were you expecting a dropdown -> modal to display the same contents as the URL bar? I feel like I'm missing something, maybe we mean different things?

louh avatar Feb 02 '17 22:02 louh

You are right, but we should just do both. I understand it's a redundancy but in some cases it's not obvious if copy/pasting a link will successfully open it for a different user (especially if it is something that is saved in your account)

souperneon avatar Feb 02 '17 23:02 souperneon

Ok -- I see your point. The location bar URL is not guaranteed to open exactly the code you are seeing, especially if you do not save it first.

I'm going to punt this for later. This thread has been a series of moving goal posts, and keeping in mind the zero-one-infinity rule, there is not just two types of share links, there are potentially many kinds of shareable links. I will think on this so we know have a good plan for this and not just shoe-horned functionality.

louh avatar Feb 03 '17 15:02 louh

👍 thanks Lou

souperneon avatar Feb 03 '17 15:02 souperneon

+1 for moving / duplicating some of the "camera" button functionality into the Share menu.

nvkelso avatar Aug 12 '17 18:08 nvkelso