How to share a map snapshot in social media (fb, tw, g+ and email)

1048
5
Jump to solution
10-22-2016 05:20 AM
KasraMajbouri
New Contributor II

Hi guys, I am new in using ArcGIS APIs. I created a map and need to let people to share a snapshot (image) of the map (with all graphics in it) in social media like fb,tw, g+, and email. I tried to use Print and PrintTask classes, but it didn't work. I found this example: http://esri.github.io/public-information-map-template-js/  but I don't want to embed the map in the popup window. I just need to have a snapshot of the map instead of that <iframe> in there. I highly appreciate if anyone can help me with that.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Kasra,


  I have helped several others with this. Here is one such thread:


https://community.esri.com/thread/170185

View solution in original post

5 Replies
RobertScheitlin__GISP
MVP Emeritus

Kasra,

   Can you give details on why PrintTask did not work for you. I use the PrintTask for exactly what you are wanting to do and it works great.

KasraMajbouri
New Contributor II

Hi Robert Scheitlin, GISP‌ and thanks for your reply.  I couldn't find any good sample for PrintTask. As I just saw your share widget. I need to take a snapshot of the map and then share it in the social media. I don't want to embed the map in there. I am using Javascript 3.18 and appreciate if you could help me with that

Cheers

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Kasra,


  I have helped several others with this. Here is one such thread:


https://community.esri.com/thread/170185

KasraMajbouri
New Contributor II

Thank you very much Robert,

It's working now! I just need to customize the popup window with share buttons.

Best Regards

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Glad to help,

Don't forget to mark this question as answered by clicking on the "Correct Answer" link on the reply that answered your question.