config.xml文件的配置如下:

1         <widget label="地图打印" 
2             icon="assets/images/map_print.png" config="widgets/Print/PrintWidget.xml"
3             url="widgets/Print/PrintWidget.swf" />

源代码目录如下:

天津政府应急系统之GIS一张图(arcgis api for flex)讲解(七)地图打印模块

模块的源代码原理解析,详细的代码在下载的开源flexviewer自带的:

天津政府应急系统之GIS一张图(arcgis api for flex)讲解(七)地图打印模块

大概的思路如下:地图打印主要是调用了arcgis server默认的地图打印服务方式来实现的,地图导出图片格式主要是用

var imageSnap:ImageSnapshot = ImageSnapshot.captureImage(hostBaseWidget.map, 0, pngEnc , false);
fileReference.save(imageSnap.data, "mapSnapShot.jpg");

备注:

GIS技术交流QQ群:432512093

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2021-07-27
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案