Select to view content in your preferred language

Print custom information along with your map

2158
11
Jump to solution
08-20-2013 05:54 AM
RaduMihai
Emerging Contributor
Hello Forum!

First I want to say that I am new to esri api so hold your horses 😄
Second I am not good at spelling either..
So i have followed some samples taken from the esri site for Javascript developers  in order to learn more about esri javascript api
For the current task,as an intern,I had to follow this sample :
[HTML]https://developers.arcgis.com/en/javascript//jssamples/fl_hover.html[/HTML]
For better understanding I have simplified the code of the given samples in order to get a better grip on the essentials.
(attached here)
Basically,I am trying to insert my own text (information) below(anywhere) my printed map.

Afterwards I will try to insert information taken from a JQuery self made pop-up(attached in my second file ) taken that from a sample too [HTML]https://developers.arcgis.com/en/javascript/jssamples/fl_hover.html[/HTML]
but first any text will do. 🙂

I have attached two files with my source code.

I am working with netbeans if it matters.

Any Ideas?
0 Kudos
11 Replies
MattLane
Frequent Contributor
I'm able to put line breaks in my customTextElements using "\n".
0 Kudos
DilanLivera
New Contributor
Hi Jeff,

Im new to this. If you could, could you please tell me how can I catch the image produce by print task or how can i redirect it to asp. Thanks. Highly appriciate it.





TO add on, you can use the print class, just not the print template.

The workflow can be

1. Use print class to render your map as a single image by specifying the IMAGE return type (as opposed to PDF)
2. Then take that image and build your own output page, either PDF using a client or serverside library, or as a html page with a print.css style
0 Kudos