【发布时间】:2014-04-27 10:58:49
【问题描述】:
我是 LeafletJS 的新手。我正在尝试在 LeafletJS 中打印地图。我的打印代码是这样的:
printProvider = L.print.provider({
capabilities: printConfig,
method: 'GET',
dpi: 254,
autoLoad: true,
// outputFormat: 'pdf',
customParams: {
mapTitle: 'Print Test',
comment: 'Testing Leaflet printing'
}
});
// Create a print control with the configured provider and add to the map
printControl = L.control.print({
provider: printProvider
});
map.addControl(printControl);
但是当我点击打印按钮时,错误是这样的
Proxy Error.
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /mapfish-print/pdf/print.pdf.
Reason: Error reading from remote server
谁能帮帮我?
【问题讨论】:
标签: leaflet