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.
On Wed, Jul 21, 2010 at 9:01 PM, Sveen Atle Frenvik (Geomatikk IKT) < atle.frenvik.sv...@geomatikk.no> wrote: > On 07/21/2010 01:15 PM, Andrew Hughes wrote: > > Hi All, > > I have a unique requirement that I need help with. Perhaps this is > something new... > > Well, the fact that you need this does not mean that anyone here is > entiteled to make it for you.. > > > The best way to describe it is to look at this: > http://www.youtube.com/watch?v=sXotq-W5HmA&feature=channel but the > gunsight is not always in the center, you can drag it around in the map > viewport. > > So, > + I need a Gunsight control (which uses Map.getLonLatFromPixel() to work > out the geographical focus of where the gun is pointing). > + The Gunsight does not move when the map is panned/moved (it's tied to > pixel position - not geographical) > + The Gunsight needs to be draggable within the map view port <div> (can't > drag outside the viewport) a non-draggable/fixed pixel position solution > (i.e. center of map viewport) would be an unacceptable. > > > 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. > > Good luck! > > > Thanks && Cheers :) > > > _______________________________________________ > Users mailing > listus...@openlayers.orghttp://openlayers.org/mailman/listinfo/users > > > > -- > Atle Frenvik Sveen > Utvikler > Geomatikk IKT AS > tlf: 45 27 86 89atle.frenvik.sv...@geomatikk.no > > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > >
_______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users