# 百度地图JS API截图功能 **Repository Path**: CrimsonHu/js_screenshot_demo ## Basic Information - **Project Name**: 百度地图JS API截图功能 - **Description**: 百度地图JS API的截图功能实现 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 45 - **Forks**: 15 - **Created**: 2019-02-14 - **Last Updated**: 2024-10-16 ## Categories & Tags **Categories**: javascript-toolkits **Tags**: None ## README # js截图demo #### 介绍 1. js截取div并输出为图片,该项目以截取百度地图为示例,完美解决svg无法截取的问题 2. 目前缺陷为无法截取不允许跨域的图片,作者正在寻找解决办法 #### 使用说明 1. 需部署在nginx中,或用anywhere,让其在域名下访问,不然不能截取到本地引入的图片 2. 该项目使用ES6语法开发 #### 所用插件 1. html2canvas 2. canvg ![输入图片说明](https://images.gitee.com/uploads/images/2019/0214/173332_f20d1dd2_1403243.png "QQ图片20190214173134.png") ![输入图片说明](https://images.gitee.com/uploads/images/2019/0214/173420_d89f75f2_1403243.png "QQ图片20190214173148.png")