Treating geometry as just another attribute

The first set geometry is considered the default.  As an added bonus, we're back to a single argument constructor.  Later, we could allow a schema to be set.  This would be done before setting values (calling constructor with no args).
This commit is contained in:
Tim Schaub
2013-02-20 00:02:50 -07:00
parent 0015e466dc
commit 735f490f56
9 changed files with 233 additions and 28 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ describe('ol.style.Polygon', function() {
fillStyle: new ol.Expression('fillAttr')
});
var feature = new ol.Feature(undefined, {
var feature = new ol.Feature({
value: 42,
fillAttr: '#ff0000'
});