Closed anandthakker closed 7 years ago
- Currently I have
declass
leaving thepaint.foo
properties on layers, even after applying thefoo
class, but I'm not sure whether that's a good idea.
It should remove them -- the output should include only plain paint
properties.
- Based on my admittedly brief skim of GL JS paint class code, I believe there's no provision for a paint class to unset a property, and so that's the case here as well.
Correct, they are additive only.
It should remove them -- the output should include only plain paint properties
@jfirebaugh removed.
Prepares for removal of paint classes from GL JS by providing
declass
as a migration path for projects relying on them.map.setClasses(classes)
will becomemap.setStyle(declass(myBaseStyleJSON, classes))
.Couple notes:
declass
leaving thepaint.foo
properties on layers, even after applying thefoo
class, but I'm not sure whether that's a good idea.paint
definition the value for any property that's defined in apaint.blah
definition