Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Experience Builder
ArcGIS Dashboards
ArcGIS Spatial Analyst
ArcGIS CityEngine
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Public Safety
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcObjects SDK
ArcGIS Pro SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
File Geodatabase API
Game Engine Maps SDKs
All Developers Communities
Worldwide
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Esri India
GeoDev Germany
ArcGIS Content - Esri Nederland
Esri Italia Community
Comunidad GEOTEC
Esri Ireland
Používatelia ArcGIS
All Worldwide Communities
All Communities
Developers
User Groups
Industries
Services
Community Resources
Worldwide
Events
Learning
Networks
ArcGIS Topics
GIS Life
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
Community Ideas
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
2399
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
Report Inappropriate Content
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
New Contributor III
06-04-2014
01:56 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
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