I have a PDF file containing geographic images. I want to show it on the map but haven't found a solution yet.
I tried this way:
const imgExtent = [0, 0, 1024, 968];
const projection = new ol.proj.Projection({
units: 'pixels',
extent: imgExtent
});
let imglayer = new ol.layer.Image({
source: new ol.source.ImageStatic({
url: 'img/geographic.pdf',
projection: projection,
imageExtent: imgExtent
}),
// minZoom: 15
});
map.addLayer(imglayer);
but the desired result is not achieved, only JPEG, PNG,... images are displayed.
How can I display PDF files on map?