From 67522815eb3f88e2563489812969844d7a205e50 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Tue, 12 Nov 2013 17:50:03 +0100 Subject: [PATCH] Don't rely on ol.geom.Type in GeoJSON example --- examples/geojson.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/geojson.js b/examples/geojson.js index 6f1e440f27..69d074f6fc 100644 --- a/examples/geojson.js +++ b/examples/geojson.js @@ -15,11 +15,11 @@ goog.require('ol.style.DefaultStyleFunction'); var image = ol.shape.renderCircle(5, null, {color: 'red', width: 1}); var styleFunction = function(feature) { switch (feature.getGeometry().getType()) { - case ol.geom.Type.POINT: + case 'Point': return { image: image }; - case ol.geom.Type.POLYGON: + case 'Polygon': return { stroke: { color: 'blue', @@ -29,14 +29,14 @@ var styleFunction = function(feature) { color: 'rgba(0, 0, 255, 0.1)' } }; - case ol.geom.Type.MULTI_LINE_STRING: + case 'MultiLineString': return { stroke: { color: 'green', width: 1 } }; - case ol.geom.Type.MULTI_POLYGON: + case 'MultiPolygon': return { stroke: { color: 'yellow',