From 45e47eff9d9d5342d3db8700b8e8a778f50de2a8 Mon Sep 17 00:00:00 2001 From: tschaub Date: Sat, 23 Mar 2013 13:06:32 -0700 Subject: [PATCH] Updated Use Cases (markdown) --- Use-Cases.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Use-Cases.md b/Use-Cases.md index a595e4f..837b21d 100644 --- a/Use-Cases.md +++ b/Use-Cases.md @@ -32,7 +32,7 @@ var map = new ol.Map({ }); ``` -This alternative can be implemented if the layer knows the map projection. The vector layer is responsible for calling `source.protocol.read({success: callback})` where the callback calls `source.parser.parseFeatures(data, {projection: projection})` (`data` is supplied to the callback and `projection` comes from the map's view). The layer maintains a cache of features in the map view's projection, and these are on demand to layer's the renderer. +This alternative can be implemented if the layer knows the map projection. The vector layer is responsible for calling `source.protocol.read({success: callback})` where the callback calls `source.parser.parseFeatures(data, {projection: projection})` (`data` is supplied to the callback and `projection` comes from the map's view). The layer maintains a cache of features in the map view's projection, and these are supplied on demand to layer's the renderer. ### Generate features in app and add to a layer @@ -82,8 +82,8 @@ User has a service that provides vector features for requests with an arbitrary ```js var vector = new ol.layer.WFS({ - featureNS: 'http://opengeo.org/#osm' - featureType: 'roads' + namespace: 'http://example.org/#osm' + type: 'roads' }); var map = new ol.Map({