2011/11/21 AUBERT Sébastien <saub...@mairie-metz.fr>: > Hello, > Is it possible to use the snap mode with a OpenLayers.Control.Measure > control instead of a OpenLayers.Control.DrawFeature ?
The measure control doesn't currently fire the events (sketchstarted and sketchmodified) that the snapping control listens for. So there isn't a clean way to connect the two right now. It would be a fairly straightforward change to add these events. Then to configure snapping while measuring, you'd have to set the (non-API) measure.handler.layer as the snapping control's layer. Tim > Thanks > > > > > _______________________________________________ > Dev mailing list > d...@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-dev > -- Tim Schaub OpenGeo http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Dev mailing list d...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-dev