I have no idea what radar means as you describe it. At first thought I pictured a rotating line sweeping over the canvas, but you talk like you want some sort of locator grid, superimposed on the geotiff. This all sounds pretty complex, and at the very least you will need to show a basic code sample of what you want to do.
From your ideas, it sounds like you are making it too complicated with overlays. What you need to do is setup a coordinate-transformation system, between your
geotiff and the canvas. Then just put a blinking red-dot at that point, and move it as needed.
The difficult part is figuring out the formulas to match the geotiff to the canvas, and I have no idea what geotiff does. Does it define the latitude and longitude of it's corners with smooth gradations from corner to corner? That is the sort of thing you will need to figure out.
As far as pixel size goes, I bellieve you would just do your calculations as a 1-1 pixel size, then when done multiply the x y values by the current zoom level. I havn't tested that.... the zoom may work automagically.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.