Thanks for very quick answer.
On Nov 14, 2007 5:51 PM, Andreas Hocevar <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On Nov 14, 2007 5:26 PM, Radim Blazek <[EMAIL PROTECTED]> wrote:
> > Hi all.
> > Am I right, that EditButtonBase should load the data from
> > EditButtonBase.targetContext.doc to the EditButtonBase.fatureLayer
> > once the document is loaded to the EditButtonBase.targetContext.doc
> > (by the EditButtonBase.loadDefaultModel)?
>
> No. targetContext.doc is the MapContext. targetModel.doc is the
> template model for feature editing.
Yes, you are right, I meant to load targetModel.doc
GmlRendererOL has to be connected
> to the targetModel to work correctly.
But that does only rendering?
> > Otherwise some OL handlers, for example OpenLayers.Handler.Drag,
> > cannot work properly, I think.
>
> What exactly do you mean? Do you have a specific problem? IMO this has
> nothing to do with the drag handler.
I am trying to write DragFeature widget in MB but it does not work.
DragFeature in OL works. I did not inspect OL deeply so far, but
I found that OL DragFeature does not work if
OpenLayers.Control.DragFeature.layer is empty
(seems obvious that it cannot work if there is nothing in the layer?)
I set the layer in my DragFeature:
this.createControl = function(objRef) {
return OpenLayers.Control.DragFeature;
}
this.instantiateControl = function(objRef, Control) {
return new Control(objRef.featureLayer);
}
but the DragFeature.featureLayer (inherited from EditButtonBase) is
created empty and never filled with data
(except by new features created by OL).
Should I do that in DragFeature or am I completely wrong?
Can you point me in the right direction?
Thanks.
Radim
> Regards,
> Andras.
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel