change feature obj literal property names to match GeoJSON

This commit is contained in:
Mike Adair
2012-06-21 03:31:57 -04:00
parent 22bffd9d8b
commit f3ab95b051
2 changed files with 10 additions and 10 deletions

View File

@@ -38,13 +38,13 @@ describe("ol.feature", function() {
it("should be easy to create a feature from object literals", function() {
var feat = ol.feature({
attrs: {
properties: {
foo: 'bar',
two: 'deux',
size: 3,
flag: true
},
geom: ol.geom.point([56, 22])
geometry: ol.geom.point([56, 22])
});
var geom = feat.geometry();