Rename ol.format.ogc.filter namespace to ol.format.filter
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
goog.require('ol.Map');
|
||||
goog.require('ol.View');
|
||||
goog.require('ol.format.ogc.filter');
|
||||
goog.require('ol.format.filter');
|
||||
goog.require('ol.format.WFS');
|
||||
goog.require('ol.format.GeoJSON');
|
||||
goog.require('ol.layer.Tile');
|
||||
@@ -46,9 +46,9 @@ var featureRequest = new ol.format.WFS().writeGetFeature({
|
||||
featurePrefix: 'osm',
|
||||
featureTypes: ['water_areas'],
|
||||
outputFormat: 'application/json',
|
||||
filter: ol.format.ogc.filter.and(
|
||||
ol.format.ogc.filter.like('name', 'Mississippi*'),
|
||||
ol.format.ogc.filter.equalTo('waterway', 'riverbank')
|
||||
filter: ol.format.filter.and(
|
||||
ol.format.filter.like('name', 'Mississippi*'),
|
||||
ol.format.filter.equalTo('waterway', 'riverbank')
|
||||
)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user