Guest User

Untitled

a guest
Jan 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. var radiusSelectInteraction = new ol.interaction.Draw({
  2. source: circleLayer.getSource(),
  3. type: 'Circle',
  4. features: circleFeatures
  5. });
  6.  
  7. radiusSelectInteraction.on('drawend', function () {
  8. circleFeatures.forEach(function(feature) {
  9. ....
  10. });
  11. });
  12.  
  13. radiusSelectInteraction.on('drawstart', function () {
  14. circleLayer.getSource().once('addFeature', handleAddFeature);
  15. });
  16.  
  17. function handleAddFeature(evt) {
  18. var feature = evt.feature;
  19. ....
  20. }
Add Comment
Please, Sign In to add comment