Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
ArcGIS Experience Builder
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Dashboards
ArcGIS Field Maps
ArcGIS StoryMaps
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Imagery and Remote Sensing Insights (IRIS) COP
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcGIS Pro SDK
ArcObjects SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
Game Engine Maps SDKs
File Geodatabase API
All Developers Communities
Global
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Europe
Esri India
Americas
Asia Pacific
Comunidad GEOTEC
GeoDev Germany
ArcGIS Content - Esri Nederland
All Global Communities
All Communities
Developers
User Groups
Industries
Services
Community Resources
Global
Events
Learning
Networks
ArcGIS Topics
Products
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Developers
:
JavaScript Maps SDK
:
JavaScript Maps SDK Questions
:
Javascript API Print webmap Sample Question
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
Select to view content in your preferred language
Translate Now
Javascript API Print webmap Sample Question
Subscribe
2498
1
06-04-2014 05:53 AM
by
MichaelVolz
Esteemed Contributor
06-04-2014
05:53 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
To All Javascript API Developers:
https://developers.arcgis.com/javascript/jssamples/widget_print_webmap.html
The above link shows an ESRI sample of using the Print Dijit to print a webmap.
I am confused about the line of code below:
app.webmapId = "8315cf7d20f0484e869c4791f70f4f15";
Is this webmapId required here because the sample is printing a webmap from ArcGIS.com?
Can I remove this line of code if I want to use my own custom print service in this sample?
Tags
(2)
Tags:
javascript
web_developers
Reply
0
Kudos
All Posts
Previous Topic
Next Topic
1 Reply
by
ScottGunn
Regular Contributor
06-04-2014
01:56 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Yep, that is the "Print webmap" dijit and it is printing an AGO webmap.
To use your own services, you would need to use the Print widget:
Sample:
https://developers.arcgis.com/javascript/jssamples/widget_print.html
API reference:
https://developers.arcgis.com/javascript/jsapi/print-amd.html
You can also use the Print Task:
https://developers.arcgis.com/javascript/jsapi/printtask-amd.html
if you want more control over your printing.
If you use the Print widget or Print Task, there are parameters in each method that would need to be set to your print service URL.
Reply
0
Kudos
Post Reply