[OpenLayers-Dev] snapping mode with measure tools ?
Tim Schaub
tschaub at opengeo.org
Fri Dec 9 00:57:41 EST 2011
2011/11/21 AUBERT Sébastien <saubert at 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
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
--
Tim Schaub
OpenGeo http://opengeo.org/
Expert service straight from the developers.
More information about the Dev
mailing list