SHARE
TWEET

Untitled

a guest Jun 18th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const array_of_features = source.getFeatures();
  2. const single_feature = source.getFeatureById('id');
  3. const feature_props = single_feature.getProperties();
  4.  
  5. // update style of feature
  6. single_feature.setStyle(new_style);
  7.  
  8. // remove feature
  9. source.removeFeature(single_feature);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top