[OpenLayers-Users] Snap
Frédéric Junod
frederic.junod at camptocamp.com
Thu Oct 30 09:26:48 EDT 2008
The most up to date version lives here:
http://trac.openlayers.org/browser/sandbox/camptocamp/snapping
Regards,
fredj
Le Thu, 30 Oct 2008 05:43:41 -0700 (PDT),
Iacovlev Pavel <iacovlev.pavel at gmail.com> a écrit :
>
> Sorry for the delay in response, about the snapping.patch"where do I find the
> "lib/OpenLayers/Snapping.js" file that is required by
> http://trac.openlayers.org/attachment/ticket/954/snapping.patch
>
>
> Eric Lemoine-3 wrote:
> >
> > Hello. I have an updated version of the snapping patch that should
> > cleanly apply to trunk. I don't have it handy right now but I'll
> > create a ticket with the patch attached to it as soon as I can. I
> > recently wrote an email to the dev list giving a status on the
> > snapping patch, search the list archive if you want to get it. Cheers.
> > Eric
> >
> > 2008/10/28, Iacovlev Pavel <iacovlev.pavel at gmail.com>:
> >>
> >> Good day all
> >> I want to implement snap to WFS layer then drawing a geometry. I got
> >> the
> >> drawing part and added my WFS layer, but I don't know how to make the
> >> geometry snap to my WFS layer.
> >> I found
> >> http://dev.openlayers.org/sandbox/camptocamp/feature/examples/modify-feature.html,
> >> and the example is exactly what I need but it does not work with latest
> >> OpenLayers.js, I assume the snap code in not included and is only present
> >> in
> >> camptocamp sandbox.
> >>
> >> My code at the moment is:
> >> YAHOO.map.snapVertex = {methods: ['vertex', 'edge'], layers:
> >> [snapLayer]};
> >>
> >> this.control = new OpenLayers.Control.DrawFeature(YAHOO.map.vectorLayer
> >> ,OpenLayers.Handler.Path
> >> ,{drawFeature: this.drawFeature, handlerOptions:
> >> YAHOO.map.snapVertex}
> >> );
> >>
> >> I get no errors using the current OpenLayers.js but the snap does not
> >> work
> >> also.
> >> Can I get a little help, assist or directions about how to make snapping
> >> work with current OpenLayers?
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Snap-tp20187491p20187491.html
> >> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> >>
> >> _______________________________________________
> >> Users mailing list
> >> Users at openlayers.org
> >> http://openlayers.org/mailman/listinfo/users
> >>
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
> >
>
--
Frédéric Junod
Camptocamp SA
More information about the Users
mailing list