如何将esri地图另存为图像文件

发布于 2024-09-04 17:48:26 字数 268 浏览 3 评论 0原文

我正在使用 Silverlight 3,我正在尝试截取 esri 地图的屏幕截图。

我能够截取屏幕截图并保存为 silverlight 控件的文件,但当我尝试访问 Esri 地图图像时,出现“不允许像素访问”错误。我听说这是因为不同的域(我试图在客户端获取地图图像,并且在我的 silverlight 应用程序中的服务器端无法访问地图图像)。

所以我试图从esri中找到一个函数,以便我可以将地图图像保存为文件。 有人知道该怎么做吗?或者有其他办法吗?

I am using Silverlight 3 and I am trying to take a screenshot of esri map.

I was able to take a screenshot and save as a file for silverlight controls, but when I try to access Esri map image, I get "Pixel access not allowed" error. I heard this is because of different domain (I am trying to get map image on the client side, and map image is not accessible at server side in my silverlight application).

So I am trying to find a function from esri so that I can save the map image as a file.
does anybody know how to do this? or any other way around?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

捎一片雪花 2024-09-11 17:48:26

我使用的是 脚本用于打印和导出地图图像的代码库。

该脚本需要进行一些调整才能使其正常工作(此外,您还需要深入研究 WCF 和自托管服务),但几个月来它一直运行良好。您可以在我们的网站上查看它的实际情况。

I am using a script from the Code Gallery for both printing and exporting map images.

The script requires a little bit of tweaking to get it to work (plus you need to dig a little bit into WCF and self-hosted services), but it has been working great for several months now. You can see it in action at our web site.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文