Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var selection = new ol.interaction.Select({
- condition: ol.events.condition.click,
- style: selectedStyle
- });
- map.addInteraction(selection);
- var originalStyle = function(feature, resolution){
- ...
- feature.set('originalColor', 'red');
- ...
- }
- ...
- feature.get('originalColor');
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement