English 中文(简体)
现址:pdf/UIImage案
原标题:Current location on a pdf/UIImage file

我正试图把pdf或UIImage作为地图。 是否有办法将纬度和长度纳入pdf,这样一来,即可在该档案中显示目前的位置?

我知道如何在洞.图中显示目前的位置。 但是,我完全不知道如何用pdf或UIImage取代它。

很多 增 编

最佳回答

你们需要了解你们形象的界限,以及它与全球定位系统的关系。 例如,如果你的形象显示纬33度至34度,长度——112度至113度,那么你就能够在此范围内绘制地图。 你们也需要知道,你们的形象是多么大,让你们假设1000x1000。

因此,如果你在3,325、112.25之间进行协调,那么你在图像中的地位将是250,750。

地图的实际变化

destX = (destMaxX - destMinX) * (sourceX / (sourceMaxX - sourceMinX));

例如,

destMaxX = 1000;
destMinX = 0;
sourceX = 33.25;
sourceMaxX = 34;
sourceMinX = 33;

Same接着是Y,在你见到的Y处就座。

希望能让你们走上正轨。

问题回答

Tim说,你是如何集中和认识到像地图一样的形象的,但记住要打上<代码>。 显示UserLocation=YES





相关问题
How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Extract everything from PDF [closed]

Looking for solution to extract content from a PDF file (using console tool or a library). It will be used on server to produce on-line e-books from uploaded PDF files. Need to extract following ...

PDF compression How does Adobe do it?

This is a bit more of a fun question than a serious one, but how does the Adobe PDF format make documents so... portable? I just created a small Word document, 235kb in size, containing multiple ...

Exporting HTML Tables

How can I export an HTML table in my page as PDF and/or XLS? (preferably using JS (+jquery))

Using Java PDFBox library to write Russian PDF

I am using a Java library called PDFBox trying to write text to a PDF. It works perfect for English text, but when i tried to write Russian text inside the PDF the letters appeared so strange. It ...

HTML --> PDF with PHP [duplicate]

Possible Duplicate: Convert HTML + CSS to PDF with PHP? How can I convert an HTML page (via $cURL or something) to a PDF file?

Free way to convert PDF to XPS with C#

Are there any free tools that I can use to convert a PDF document into an XPS document? Although a nice programmatic API would be nice, I m not opposed to shelling out to a command line tool to do ...

PDF conversion service

I need to develop a service able to convert MS Office and Open Office documents to PDF. And the PDF`s also need to be commentable when opened in ADOBE Reader. I have used a piece of software from www....

热门标签