<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
On 07/21/2010 01:15 PM, Andrew Hughes wrote:
<blockquote
 cite="mid:AANLkTilh5E2rifH3uYQfran7exrD8G9KtGzn2gVmcRzt@mail.gmail.com"
 type="cite">Hi All,
  <div><br>
  </div>
  <div>I have a unique requirement that I need help with. Perhaps this
is something new...</div>
  <div><br>
  </div>
</blockquote>
Well, the fact that you need this does not mean that anyone here is
entiteled to make it for you..<br>
<br>
<blockquote
 cite="mid:AANLkTilh5E2rifH3uYQfran7exrD8G9KtGzn2gVmcRzt@mail.gmail.com"
 type="cite">
  <div>The best way to describe it is to look at this:&nbsp;&nbsp;<a
 moz-do-not-send="true"
 href="http://www.youtube.com/watch?v=sXotq-W5HmA&amp;feature=channel">http://www.youtube.com/watch?v=sXotq-W5HmA&amp;feature=channel</a>&nbsp;&nbsp;but
the gunsight is not always in the center, you can drag it around in the
map viewport.</div>
  <div><br>
  </div>
  <div>So,</div>
  <div>+ I need a Gunsight control (which uses Map.getLonLatFromPixel()
to work out the geographical focus of where the gun is pointing).</div>
  <div>+ The&nbsp;Gunsight&nbsp;does not move when the&nbsp;map is panned/moved (it's
tied to pixel position - not geographical)</div>
  <div>+ The&nbsp;Gunsight&nbsp;needs to be draggable within the map view port
&lt;div&gt; (can't drag outside the viewport) a non-draggable/fixed
pixel position solution (i.e. center of map viewport) would be an
unacceptable.</div>
  <div><br>
  </div>
</blockquote>
<br>
I think a good starting point could be looking at the OverviewMap
control, which uses a div placed on top of the map, and then make a
control yourself based on somewhat the same concept.<br>
<br>
Good luck!<br>
<blockquote
 cite="mid:AANLkTilh5E2rifH3uYQfran7exrD8G9KtGzn2gVmcRzt@mail.gmail.com"
 type="cite">
  <div><br>
  </div>
  <div>Thanks &amp;&amp;&nbsp;Cheers :)</div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Atle Frenvik Sveen
Utvikler
Geomatikk IKT AS
tlf: 45 27 86 89
<a class="moz-txt-link-abbreviated" href="mailto:atle.frenvik.sveen@geomatikk.no">atle.frenvik.sveen@geomatikk.no</a></pre>
</body>
</html>