I messed around with different regex expressions and it seems to work. I'm no regex expert but maybe the problem is that your query doesn't do what you think it does. E.g., I changed it to '[v]' and it correctly colored NV, PA, VT, WV and VA, which are all the 'v' states I can think of. One thing I noticed is that this line does nothing:
________________________________ From: openlayers-users-boun...@lists.osgeo.org [openlayers-users-boun...@lists.osgeo.org] on behalf of Ruff, Thomas [thomas.r...@solers.com] Sent: Monday, April 27, 2015 12:05 PM To: joaorodr84; openlayers-users@lists.osgeo.org Subject: [Possible spoofed sender] Re: [OpenLayers-Users] Like query with "singleChar" does not work correctly in OpenLayers.StyleMap If you only have one rule then this isn't your problem. I was just saying don't rely on the order of rules in your sld. The comparison filters need to be mutually exclusive in my experience. ________________________________ From: openlayers-users-boun...@lists.osgeo.org [openlayers-users-boun...@lists.osgeo.org] on behalf of joaorodr84 [joaorod...@gmail.com] Sent: Monday, April 27, 2015 11:30 AM To: openlayers-users@lists.osgeo.org Subject: Re: [OpenLayers-Users] Like query with "singleChar" does not work correctly in OpenLayers.StyleMap Hello Ruff Thomas. As you can see in the example, I use only one rule: /* Filter */ var filter = new OpenLayers.Filter.Comparison({ property: 'STATE_NAME', type: OpenLayers.Filter.Comparison.LIKE, value: '.....' }); var wmsFilter = filter.clone(); filter.value = filter.value.replace(/\*/g, '!*'); /* Rule */ var rule = new OpenLayers.Rule({ filter: filter, symbolizer: {} }); I don't think this would be the problem, but please explain your point a little better. Thanks a lot João -- View this message in context: https://urldefense.proofpoint.com/v2/url?u=http-3A__osgeo-2Dorg.1560.x6.nabble.com_Like-2Dquery-2Dwith-2DsingleChar-2Ddoes-2Dnot-2Dwork-2Dcorrectly-2Din-2DOpenLayers-2DStyleMap-2Dtp5203061p5203165.html&d=BQIGaQ&c=gpp0UHgwH8jd0f0gRc5QaF0zPfGT1csUQXD9eLov3hQ&r=iiS-4SY2BTp-9WmUwQb3-zEL2tnO_1j_07NMJG-MZ0s&m=oRl6FpNq9nbSCIP50IlpD2TPcY_JAO6w0_z3YgN6LZU&s=rXYpKgX9NgppwlNrQ1Yes6g3KFu-PqnoHwqqGOW6Dbw&e= Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list us...@lists.osgeo.org https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.osgeo.org_mailman_listinfo_openlayers-2Dusers&d=BQIGaQ&c=gpp0UHgwH8jd0f0gRc5QaF0zPfGT1csUQXD9eLov3hQ&r=iiS-4SY2BTp-9WmUwQb3-zEL2tnO_1j_07NMJG-MZ0s&m=oRl6FpNq9nbSCIP50IlpD2TPcY_JAO6w0_z3YgN6LZU&s=83bPUO6ESB8FdW9WJyO719eBaSki0l4mh9cXWjeCE9w&e=
_______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users