Correct typo in geometry type (thanks @jystic)
Previously read 'multilinstring' instead of 'multilinestring'. Letting the compiler check for typos instead now.
This commit is contained in:
@@ -5,6 +5,7 @@ goog.require('goog.asserts');
|
|||||||
goog.require('goog.events.EventType');
|
goog.require('goog.events.EventType');
|
||||||
goog.require('goog.object');
|
goog.require('goog.object');
|
||||||
goog.require('ol.Feature');
|
goog.require('ol.Feature');
|
||||||
|
goog.require('ol.geom.GeometryType');
|
||||||
goog.require('ol.geom.SharedVertices');
|
goog.require('ol.geom.SharedVertices');
|
||||||
goog.require('ol.layer.Layer');
|
goog.require('ol.layer.Layer');
|
||||||
goog.require('ol.proj');
|
goog.require('ol.proj');
|
||||||
@@ -335,14 +336,13 @@ ol.layer.Vector.prototype.groupFeaturesBySymbolizerLiteral =
|
|||||||
ol.layer.Vector.prototype.parseFeatures = function(data, parser, projection) {
|
ol.layer.Vector.prototype.parseFeatures = function(data, parser, projection) {
|
||||||
var features;
|
var features;
|
||||||
|
|
||||||
var lookup = {
|
var lookup = {};
|
||||||
'point': this.pointVertices_,
|
lookup[ol.geom.GeometryType.POINT] = this.pointVertices_;
|
||||||
'linestring': this.lineVertices_,
|
lookup[ol.geom.GeometryType.LINESTRING] = this.lineVertices_;
|
||||||
'polygon': this.polygonVertices_,
|
lookup[ol.geom.GeometryType.POLYGON] = this.polygonVertices_;
|
||||||
'multipoint': this.pointVertices_,
|
lookup[ol.geom.GeometryType.MULTIPOINT] = this.pointVertices_;
|
||||||
'multilinstring': this.lineVertices_,
|
lookup[ol.geom.GeometryType.MULTILINESTRING] = this.lineVertices_;
|
||||||
'multipolygon': this.polygonVertices_
|
lookup[ol.geom.GeometryType.MULTIPOLYGON] = this.polygonVertices_;
|
||||||
};
|
|
||||||
|
|
||||||
var callback = function(feature, type) {
|
var callback = function(feature, type) {
|
||||||
return lookup[type];
|
return lookup[type];
|
||||||
|
|||||||
Reference in New Issue
Block a user