Using PascalCase for geometry enum values
This adds a bit more inconsistency to the library, but we didn't have complete consistency before. Almost all existing string enum values are lowercase (a couple are camelCase and one is dash-separated). The closure library isn't consistent either (with case for enum properties or values). I imagine this could be justified in saying someone could blindly use GeoJSON type values in places, but in the end, you'll need to read the docs before guessing right.
This commit is contained in:
@@ -792,10 +792,10 @@ describe('ol.expr.lib', function() {
|
||||
]])
|
||||
});
|
||||
|
||||
var isPoint = parse('geometryType("point")');
|
||||
var isLine = parse('geometryType("linestring")');
|
||||
var isPoly = parse('geometryType("polygon")');
|
||||
var pointOrPoly = parse('geometryType("point") || geometryType("polygon")');
|
||||
var isPoint = parse('geometryType("Point")');
|
||||
var isLine = parse('geometryType("LineString")');
|
||||
var isPoly = parse('geometryType("Polygon")');
|
||||
var pointOrPoly = parse('geometryType("Point") || geometryType("Polygon")');
|
||||
|
||||
it('distinguishes point features', function() {
|
||||
expect(evaluate(isPoint, point)).to.be(true);
|
||||
|
||||
Reference in New Issue
Block a user