地图打印分为两种,按需使用:
1.使用arcgis server服务进行地图打印
2.使用浏览器进行当前屏幕截图
以下内容为server服务地图打印,浏览器打印详情查看 https://mp.csdn.net/console/editor/html/108817017
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>地图打印</title>
<link rel="stylesheet" href="http://location/arcgis_js_api/library/3.15/3.15/dijit/themes/claro/claro.css" />
<link rel="stylesheet" href="http://location/arcgis_js_api/library/3.15/3.15compact/esri/css/esri.css">
<script sr