von James
Humphreys
Gesendet: Freitag, 1. Oktober 2010 18:30
An: P Kishor
Cc: openlayers-users@lists.osgeo.org
Betreff: Re: [OpenLayers-Users] Draggable and Selectable features on map
What I want is that you simply click the marker, hold the button down, drag
and drop.
Like this example:
http://
What I want is that you simply click the marker, hold the button down, drag
and drop.
Like this example:
http://code.google.com/apis/maps/documentation/javascript/v2/examples/marker-drag.html
(ignore the balloon in this example)
As I understand it, if I use the ModifyFeature control I'll have to c
On Oct 1, 2010, at 12:19 PM, ext P Kishor wrote:
> On Fri, Oct 1, 2010 at 11:10 AM, James Humphreys
> wrote:
>> Hi Alexandre,
>> Thanks for your suggestion. It's a good idea, but not quite the effect I'd
>> like to achieve. If I understand correctly, the user would have to actually
>> select the
On Fri, Oct 1, 2010 at 11:10 AM, James Humphreys
wrote:
> Hi Alexandre,
> Thanks for your suggestion. It's a good idea, but not quite the effect I'd
> like to achieve. If I understand correctly, the user would have to actually
> select the feature first then drag? I'd like the drag to "just work"
Hi Alexandre,
Thanks for your suggestion. It's a good idea, but not quite the effect I'd
like to achieve. If I understand correctly, the user would have to actually
select the feature first then drag? I'd like the drag to "just work" without
having to click it first.
Unfortunately, I don't have ti
Hi James,
You could try to replace both the SelectFeature and DragFeature
controls by a ModifyFeature control, which contains a SelectFeature
control itself so you could listen to its "featureselected" event to
display your popup. Dragging the marker while it's selected should work.
Regar
Hi,
I'd like to have markers on the map that have a baloon appear when I click
them, and are also draggable. I've created an OpenLayers map with markers
using a vector layer. When I click on the markers I'd like a baloon to pop
up (a FramedCloud). That's easy enough - I added a SelectFeature contr