我是LeafletJS中的新人。我正嘗試在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
誰能幫助我?