OpenLayers.Format.CQL fails when parsing after/before

المشرف العام

Administrator
طاقم الإدارة
First, this is double post from Stack Exchange. Found this forum after and though it might be better to post here.

I am trying to add a filter to my OpenLayers WMS layer

var format = new OpenLayers.Format.CQL();var date = this.controls.UploadAfter.getValue();filterArray.push("upload_time after " + date.format("Y-m-d") + "T00:00:00"); Then i try to parse it

var filter;try { filter = format.read(filterArray.join(" and ")); } catch (err) { alert("Filter cannot be parsed");}Error message:


"ERROR: In parsing: [after 2015-05-21T00:00:00], expected one of:

أكثر...
 
أعلى