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 <[EMAIL PROTECTED]>: > > 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 > [email protected] > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
