From: Edwin C. <com...@gm...> - 2011-01-05 15:51:22
|
Hi John, Have a look at the ModifyFeature control. >From ModifyFeatureImpl: public static native JSObject createOnModificationStartCallback(OnModificationStartListener listener)/*-{ var callback = function(obj){ var vectorFeatureObj = @org.gwtopenmaps.openlayers.client.feature.VectorFeature::narrowToVectorFeature(Lorg/gwtopenmaps/openlayers/client/util/JSObject;)(obj); listener.@org.gwtopenmaps.openlayers.client.control.ModifyFeature.OnModificationStartListener::onModificationStart(Lorg/gwtopenmaps/openlayers/client/feature/VectorFeature;)(vectorFeatureObj); } return callback; }-*/; >From ModifyFeatureOptions: public void onModificationStart(OnModificationStartListener listener) { JSObject callback = ModifyFeatureImpl.createOnModificationStartCallback(listener); getJSObject().setProperty("onModificationStart", callback); } >From ModifyFeature: public interface OnModificationStartListener { void onModificationStart(VectorFeature vectorFeature); } Greetings, Edwin On 2 January 2011 23:48, John Preston <byh...@gm...> wrote: > Hi, I'm new to gwt-openlayers but I I have been using straight > openlayers javscript for a few years and I think that port is quit > good and useful. > > I'm looking for a little help to get started to add a few of the > missing functionality that I use in my code. I need the > Openlayers.loadURL function to access some xml code on the same server > as the maps that I'm viewing. > > I can add the main function quiet easily but can anyone give me a few > lines that shows me how to add the callbacks that I need to pass to > the Openlayers.loadURL function. > > John > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > |