<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  
</head>
<body text="#000000" bgcolor="#ffffff">
On 07/21/2010 01:55 PM, Andrew Hughes wrote:
<blockquote
 cite="mid:AANLkTinftUlYzHjxIYeiIRP_G7MC4W7KA_J5JGyjvBKA@mail.gmail.com"
 type="cite">
  <div>I would have thought that draggable markers would be a better
place to start than the overview. This is very similar identical to a
draggable marker except it doesn't pan/follow the map.</div>
  <div><br>
  </div>
</blockquote>
Well, I guess both approaches could work, but markers (or vector
features) is rather closely tided to moving with the map, and you then
would have to override a lot of that behaviour..<br>
<br>
-a<br>
<br>
<blockquote
 cite="mid:AANLkTinftUlYzHjxIYeiIRP_G7MC4W7KA_J5JGyjvBKA@mail.gmail.com"
 type="cite">
  <div>
  <div class="gmail_quote">On Wed, Jul 21, 2010 at 9:01 PM, Sveen Atle
Frenvik (Geomatikk IKT) <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:Atle.Frenvik.Sveen@geomatikk.no">Atle.Frenvik.Sveen@geomatikk.no</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div text="#000000" bgcolor="#ffffff">
    <div class="im">On 07/21/2010 01:15 PM, Andrew Hughes wrote:
    <blockquote 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>
    </div>
Well, the fact that you need this does not mean that anyone here is
entiteled to make it for you..
    <div class="im"><br>
    <br>
    <blockquote 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"
 target="_blank">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>
    </div>
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 type="cite">
      <div><br>
      </div>
      <div>Thanks &amp;&amp;&nbsp;Cheers :)</div>
      <div class="im">
      <pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@openlayers.org"
 target="_blank">Users@openlayers.org</a>
<a moz-do-not-send="true"
 href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a>
  </pre>
      </div>
    </blockquote>
    <font color="#888888"><br>
    <br>
    <pre cols="72">-- 
Atle Frenvik Sveen
Utvikler
Geomatikk IKT AS
tlf: 45 27 86 89
<a moz-do-not-send="true" href="mailto:atle.frenvik.sveen@geomatikk.no"
 target="_blank">atle.frenvik.sveen@geomatikk.no</a></pre>
    </font></div>
    <br>
_______________________________________________<br>
Users mailing list<br>
    <a moz-do-not-send="true" href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
    <a moz-do-not-send="true"
 href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
    <br>
  </blockquote>
  </div>
  <br>
  </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>