No missing requires in examples

This commit is contained in:
Tim Schaub
2016-08-08 23:46:08 -06:00
parent 279e10abe8
commit c40e1bc29b
2 changed files with 4 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
goog.require('ol');
goog.require('ol.Feature'); goog.require('ol.Feature');
goog.require('ol.Map'); goog.require('ol.Map');
goog.require('ol.View'); goog.require('ol.View');

View File

@@ -40,16 +40,15 @@ var map = new ol.Map({
}); });
// generate a GetFeature request // generate a GetFeature request
var f = ol.format.ogc.filter;
var featureRequest = new ol.format.WFS().writeGetFeature({ var featureRequest = new ol.format.WFS().writeGetFeature({
srsName: 'EPSG:3857', srsName: 'EPSG:3857',
featureNS: 'http://openstreemap.org', featureNS: 'http://openstreemap.org',
featurePrefix: 'osm', featurePrefix: 'osm',
featureTypes: ['water_areas'], featureTypes: ['water_areas'],
outputFormat: 'application/json', outputFormat: 'application/json',
filter: f.and( filter: ol.format.ogc.filter.and(
f.like('name', 'Mississippi*'), ol.format.ogc.filter.like('name', 'Mississippi*'),
f.equalTo('waterway', 'riverbank') ol.format.ogc.filter.equalTo('waterway', 'riverbank')
) )
}); });