From riccardog79 at gmail.com Mon Apr 13 08:30:33 2015 From: riccardog79 at gmail.com (ar_gaeta) Date: Mon, 13 Apr 2015 08:30:33 -0700 (PDT) Subject: [OpenLayers-Users] Safari: problem interact with WFS layers Message-ID: <1428939033066-5201119.post@n6.nabble.com> Hi all, I've made a webgis based on Openlayers 2.13 and data in WFS by both Mapserver 6 and Tinyows 1.0.0rc2. I don't have any problem on other browsers (Chrome, Firefox, even IE11), but on Safari I'm not able to interact with the elements of my layers, correctly displayed on map but on which I can't do "select" neither "hoover". Someone else have experienced this problem? Thanks for anyone that could help, if you need more details let me know. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Safari-problem-interact-with-WFS-layers-tp5201119.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From riccardog79 at gmail.com Tue Apr 21 02:17:04 2015 From: riccardog79 at gmail.com (ar_gaeta) Date: Tue, 21 Apr 2015 02:17:04 -0700 (PDT) Subject: [OpenLayers-Users] Safari: problem interact with WFS layers In-Reply-To: <1429514160917-5202032.post@n6.nabble.com> References: <1428939033066-5201119.post@n6.nabble.com> <1429514160917-5202032.post@n6.nabble.com> Message-ID: <1429607824301-5202236.post@n6.nabble.com> Hi, yes I'm testing Safari for Windows... That might be a problem testing on other platform 'cause I don't have any apple device, but I would like my WebGis working well on Safari platform too. I will try how I can do and I will let you know. Thanks very much for this tip. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Safari-problem-interact-with-WFS-layers-tp5201119p5202236.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From tom at cyber-fun.org Fri Apr 24 04:29:19 2015 From: tom at cyber-fun.org (Thomas Wagner) Date: Fri, 24 Apr 2015 13:29:19 +0200 (CEST) Subject: [OpenLayers-Users] Streched Map if Sidebar.display=none Message-ID: <2051512045.73598.1429874959442.JavaMail.open-xchange@app03.ox.hosteurope.de> Hi @all, i'm trying to build a webpage using ol V3.4. My side has two major Div-Tags: - map: This is where the map is build in. - sidebar: Sidebar with some HTML content. I created a sidebar switch (id=sidebarbtn). On click this Button does "close" the sidebar by setting sidebar-display = 'none' AND by setting map-style.left = '0px. And there is the problem: After this operation my map is streched. Here is the source: --------------------------------------------
X
-------------------------------------------- I certainly need to tell the "map" that it now has other dimensions. Any Idea, how I can do that? Cheers, Tom From joaorodr84 at gmail.com Mon Apr 27 03:59:43 2015 From: joaorodr84 at gmail.com (joaorodr84) Date: Mon, 27 Apr 2015 03:59:43 -0700 (PDT) Subject: [OpenLayers-Users] =?utf-8?q?Like_query_with_=E2=80=9CsingleChar?= =?utf-8?q?=E2=80=9D_does_not_work_correctly_in_OpenLayers=2EStyleMap?= Message-ID: <1430132383937-5203061.post@n6.nabble.com> I am working on a GIS API, based on OpenLayers 2.13. I want to represent my data using WMS and Vector layers. Recently, I have started developing the support for LIKE queries in filters and in style maps. *WMS (green stroke color)* For WMS layers, the filter is quite simle, as you may know. It must respect the CQL syntax, for example: `"STATE_NAME LIKE 'N%'"` would match all states which name starts with an "N". For the style map, I build a little structure with OpenLayers, Style/Rule/Filter, I convert it to an SLD BODY using this `var sld = new OpenLayers.Format.SLD().write(structure)`, and it works fine. *Vector (default orange fill color)* As for Vector layers, the filter is an instance of OpenLayers.Filter, which is easy to build and works fine. Here come the strange, and maybe tricky, part. for the style map, it does not work. I build an OpenLayers.StyleMap, using OpenLayers Style/Rule/Filter, and I get wrong results. What really bothers me is that I use a given OpenLayers.Filter as filter and it works fine. But when I use the same instance of OpenLayers.Filter inside a Rule, inside a Style, inside a StyleMap, I get wrong results. *...* The filter expression I am using is: var filter = new OpenLayers.Filter.Comparison({ property: 'STATE_NAME', type: OpenLayers.Filter.Comparison.LIKE, value: '.....' }); It should show states which name has 5 letters (it only does not work for the style map of the vector layer). Please check out this CodePen , where I have an example code that can easily be changed. Green contour is the three states that have 5-letter names. In yellow it shows all the states with 5 or more letters, which is incorrect) Thanks a lot -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Like-query-with-singleChar-does-not-work-correctly-in-OpenLayers-StyleMap-tp5203061.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From Thomas.Ruff at solers.com Mon Apr 27 09:52:06 2015 From: Thomas.Ruff at solers.com (Ruff, Thomas) Date: Mon, 27 Apr 2015 16:52:06 +0000 Subject: [OpenLayers-Users] Like query with "singleChar" does not work correctly in OpenLayers.StyleMap In-Reply-To: <1430132383937-5203061.post@n6.nabble.com> References: <1430132383937-5203061.post@n6.nabble.com> Message-ID: Are you sure that no other rule applies? I've found that when rules' comparison filters are not mutually exclusive the one that gets fired in a particular situation is not easily predictable. Best to always make sure that only one rule will ever be 'true'. ________________________________ From: openlayers-users-bounces at lists.osgeo.org [openlayers-users-bounces at lists.osgeo.org] on behalf of joaorodr84 [joaorodr84 at gmail.com] Sent: Monday, April 27, 2015 3:59 AM To: openlayers-users at lists.osgeo.org Subject: [OpenLayers-Users] Like query with ?singleChar? does not work correctly in OpenLayers.StyleMap I am working on a GIS API, based on OpenLayers 2.13. I want to represent my data using WMS and Vector layers. Recently, I have started developing the support for LIKE queries in filters and in style maps. *WMS (green stroke color)* For WMS layers, the filter is quite simle, as you may know. It must respect the CQL syntax, for example: `"STATE_NAME LIKE 'N%'"` would match all states which name starts with an "N". For the style map, I build a little structure with OpenLayers, Style/Rule/Filter, I convert it to an SLD BODY using this `var sld = new OpenLayers.Format.SLD().write(structure)`, and it works fine. *Vector (default orange fill color)* As for Vector layers, the filter is an instance of OpenLayers.Filter, which is easy to build and works fine. Here come the strange, and maybe tricky, part. for the style map, it does not work. I build an OpenLayers.StyleMap, using OpenLayers Style/Rule/Filter, and I get wrong results. What really bothers me is that I use a given OpenLayers.Filter as filter and it works fine. But when I use the same instance of OpenLayers.Filter inside a Rule, inside a Style, inside a StyleMap, I get wrong results. *...* The filter expression I am using is: var filter = new OpenLayers.Filter.Comparison({ property: 'STATE_NAME', type: OpenLayers.Filter.Comparison.LIKE, value: '.....' }); It should show states which name has 5 letters (it only does not work for the style map of the vector layer). Please check out this CodePen <https://urldefense.proofpoint.com/v2/url?u=http-3A__codepen.io_joaorodr84_pen_qdErdv&d=BQICAg&c=gpp0UHgwH8jd0f0gRc5QaF0zPfGT1csUQXD9eLov3hQ&r=iiS-4SY2BTp-9WmUwQb3-zEL2tnO_1j_07NMJG-MZ0s&m=yKztGleKJxXFpB9AGFMqsLmYfgmynaVng4ybWtjNkt4&s=bpfuZXMtYI1V9ACCTZmULvikiU8ncMEZB7pqBAa3-Oo&e= > , where I have an example code that can easily be changed. Green contour is the three states that have 5-letter names. In yellow it shows all the states with 5 or more letters, which is incorrect) Thanks a lot -- 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-2Dtp5203061.html&d=BQICAg&c=gpp0UHgwH8jd0f0gRc5QaF0zPfGT1csUQXD9eLov3hQ&r=iiS-4SY2BTp-9WmUwQb3-zEL2tnO_1j_07NMJG-MZ0s&m=yKztGleKJxXFpB9AGFMqsLmYfgmynaVng4ybWtjNkt4&s=iOov9phVHUY7Qbv5B-NJhajFidTZSxZP92076BJdfEw&e= Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users at lists.osgeo.org https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.osgeo.org_mailman_listinfo_openlayers-2Dusers&d=BQICAg&c=gpp0UHgwH8jd0f0gRc5QaF0zPfGT1csUQXD9eLov3hQ&r=iiS-4SY2BTp-9WmUwQb3-zEL2tnO_1j_07NMJG-MZ0s&m=yKztGleKJxXFpB9AGFMqsLmYfgmynaVng4ybWtjNkt4&s=TVLCFYvtYBgJsAqFs_scvLIVs--3Ktqw8QBRyhRY8II&e= -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorodr84 at gmail.com Mon Apr 27 11:23:43 2015 From: joaorodr84 at gmail.com (joaorodr84) Date: Mon, 27 Apr 2015 11:23:43 -0700 (PDT) Subject: [OpenLayers-Users] =?utf-8?q?Like_query_with_=E2=80=9CsingleChar?= =?utf-8?q?=E2=80=9D_does_not_work_correctly_in_OpenLayers=2EStyleMap?= In-Reply-To: <1430148366620-5203133.post@n6.nabble.com> References: <1430132383937-5203061.post@n6.nabble.com> <1430148366620-5203133.post@n6.nabble.com> Message-ID: <1430159023909-5203162.post@n6.nabble.com> Hello. Indeed, it works. Thanks for the tip. But, I am still wondering why it doesn't work directly with the rule. It should work. So, my question remans opened. Thanks anyway. ;) Jo?o -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Like-query-with-singleChar-does-not-work-correctly-in-OpenLayers-StyleMap-tp5203061p5203162.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From joaorodr84 at gmail.com Mon Apr 27 11:30:19 2015 From: joaorodr84 at gmail.com (joaorodr84) Date: Mon, 27 Apr 2015 11:30:19 -0700 (PDT) Subject: [OpenLayers-Users] Like query with "singleChar" does not work correctly in OpenLayers.StyleMap In-Reply-To: References: <1430132383937-5203061.post@n6.nabble.com> Message-ID: <1430159419303-5203165.post@n6.nabble.com> 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: http://osgeo-org.1560.x6.nabble.com/Like-query-with-singleChar-does-not-work-correctly-in-OpenLayers-StyleMap-tp5203061p5203165.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From Thomas.Ruff at solers.com Mon Apr 27 12:05:06 2015 From: Thomas.Ruff at solers.com (Ruff, Thomas) Date: Mon, 27 Apr 2015 19:05:06 +0000 Subject: [OpenLayers-Users] Like query with "singleChar" does not work correctly in OpenLayers.StyleMap In-Reply-To: <1430159419303-5203165.post@n6.nabble.com> References: <1430132383937-5203061.post@n6.nabble.com> , <1430159419303-5203165.post@n6.nabble.com> Message-ID: 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-bounces at lists.osgeo.org [openlayers-users-bounces at lists.osgeo.org] on behalf of joaorodr84 [joaorodr84 at gmail.com] Sent: Monday, April 27, 2015 11:30 AM To: openlayers-users at 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 Users at 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= -------------- next part -------------- An HTML attachment was scrubbed... URL: From Thomas.Ruff at solers.com Mon Apr 27 15:25:17 2015 From: Thomas.Ruff at solers.com (Ruff, Thomas) Date: Mon, 27 Apr 2015 22:25:17 +0000 Subject: [OpenLayers-Users] [Possible spoofed sender] Re: Like query with "singleChar" does not work correctly in OpenLayers.StyleMap In-Reply-To: References: <1430132383937-5203061.post@n6.nabble.com> , <1430159419303-5203165.post@n6.nabble.com>, Message-ID: 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-bounces at lists.osgeo.org [openlayers-users-bounces at lists.osgeo.org] on behalf of Ruff, Thomas [Thomas.Ruff at solers.com] Sent: Monday, April 27, 2015 12:05 PM To: joaorodr84; openlayers-users at 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-bounces at lists.osgeo.org [openlayers-users-bounces at lists.osgeo.org] on behalf of joaorodr84 [joaorodr84 at gmail.com] Sent: Monday, April 27, 2015 11:30 AM To: openlayers-users at 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 Users at 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= -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorodr84 at gmail.com Mon Apr 27 15:23:37 2015 From: joaorodr84 at gmail.com (joaorodr84) Date: Mon, 27 Apr 2015 15:23:37 -0700 (PDT) Subject: [OpenLayers-Users] Like query with "singleChar" does not work correctly in OpenLayers.StyleMap In-Reply-To: References: <1430132383937-5203061.post@n6.nabble.com> <1430159419303-5203165.post@n6.nabble.com> Message-ID: <1430173417604-5203180.post@n6.nabble.com> Thanks for the tip, Thomas. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Like-query-with-singleChar-does-not-work-correctly-in-OpenLayers-StyleMap-tp5203061p5203180.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From Thomas.Ruff at solers.com Mon Apr 27 15:25:55 2015 From: Thomas.Ruff at solers.com (Ruff, Thomas) Date: Mon, 27 Apr 2015 22:25:55 +0000 Subject: [OpenLayers-Users] [Possible spoofed sender] Re: [Possible spoofed sender] Re: Like query with "singleChar" does not work correctly in OpenLayers.StyleMap In-Reply-To: References: <1430132383937-5203061.post@n6.nabble.com> , <1430159419303-5203165.post@n6.nabble.com>, , Message-ID: filter.value = filter.value.replace(/\*/g, '!*'); ________________________________ From: openlayers-users-bounces at lists.osgeo.org [openlayers-users-bounces at lists.osgeo.org] on behalf of Ruff, Thomas [Thomas.Ruff at solers.com] Sent: Monday, April 27, 2015 3:25 PM To: joaorodr84; openlayers-users at lists.osgeo.org Subject: [Possible spoofed sender] Re: [OpenLayers-Users] [Possible spoofed sender] Re: Like query with "singleChar" does not work correctly in OpenLayers.StyleMap 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-bounces at lists.osgeo.org [openlayers-users-bounces at lists.osgeo.org] on behalf of Ruff, Thomas [Thomas.Ruff at solers.com] Sent: Monday, April 27, 2015 12:05 PM To: joaorodr84; openlayers-users at 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-bounces at lists.osgeo.org [openlayers-users-bounces at lists.osgeo.org] on behalf of joaorodr84 [joaorodr84 at gmail.com] Sent: Monday, April 27, 2015 11:30 AM To: openlayers-users at 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 Users at 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= -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorodr84 at gmail.com Mon Apr 27 15:50:06 2015 From: joaorodr84 at gmail.com (joaorodr84) Date: Mon, 27 Apr 2015 15:50:06 -0700 (PDT) Subject: [OpenLayers-Users] [Possible spoofed sender] Re: [Possible spoofed sender] Re: Like query with "singleChar" does not work correctly in OpenLayers.StyleMap In-Reply-To: References: <1430132383937-5203061.post@n6.nabble.com> <1430159419303-5203165.post@n6.nabble.com> Message-ID: <1430175006504-5203183.post@n6.nabble.com> Hi again, Thomas I used this line filter.value = filter.value.replace(/\*/g, '!*'); because I want a filter like this: var filter = new OpenLayers.Filter.Comparison({ property: 'STATE_NAME', type: '~', value: '*' }); to match ALL the state names. But, you are right, it is not necessary for the "singleChar" --> "." example that I want to make work. --- About what you said, that you messed around with RegExp and it worked. Did you try to use the singleChar "."? For example, I want all the states which name has 5 letters. So, I use 5 times the singleChar, which supposedly matches *any single character*. I may be wrong, but I don't know why. Do you think "." does not represent the singleChar? Look t the example, please. In green stroke you see the same layer but in WMS. The style (SLD Body) here works fine. It matches the states: Idaho, Texas and Maine. The y are the only ones with 5 letters. But, in the vector layer, which uses an OpenLayers.StyleMap, it shows all the states with 5 or more letters. But the filter used in the rule of the style is *exactly the same*. I don't understand this. Thanks for your help. Jo?o -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Like-query-with-singleChar-does-not-work-correctly-in-OpenLayers-StyleMap-tp5203061p5203183.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From Thomas.Ruff at solers.com Mon Apr 27 20:17:22 2015 From: Thomas.Ruff at solers.com (Ruff, Thomas) Date: Tue, 28 Apr 2015 03:17:22 +0000 Subject: [OpenLayers-Users] [Possible spoofed sender] Re: [Possible spoofed sender] Re: Like query with "singleChar" does not work correctly in OpenLayers.StyleMap In-Reply-To: <1430175006504-5203183.post@n6.nabble.com> References: <1430132383937-5203061.post@n6.nabble.com> <1430159419303-5203165.post@n6.nabble.com> , <1430175006504-5203183.post@n6.nabble.com> Message-ID: I'm not the best guy to answer regex questions. I merely noticed that the line filter.value = filter.value.replace(/\*/g, '!*'); in your example resulted in no change to the value of filter.value and that when I changed your regex value to something very simple I saw that the OL filter worked on the vector layer styling. Tom ________________________________________ From: openlayers-users-bounces at lists.osgeo.org [openlayers-users-bounces at lists.osgeo.org] on behalf of joaorodr84 [joaorodr84 at gmail.com] Sent: Monday, April 27, 2015 3:50 PM To: openlayers-users at lists.osgeo.org Subject: Re: [OpenLayers-Users] [Possible spoofed sender] Re: [Possible spoofed sender] Re: Like query with "singleChar" does not work correctly in OpenLayers.StyleMap Hi again, Thomas I used this line filter.value = filter.value.replace(/\*/g, '!*'); because I want a filter like this: var filter = new OpenLayers.Filter.Comparison({ property: 'STATE_NAME', type: '~', value: '*' }); to match ALL the state names. But, you are right, it is not necessary for the "singleChar" --> "." example that I want to make work. --- About what you said, that you messed around with RegExp and it worked. Did you try to use the singleChar "."? For example, I want all the states which name has 5 letters. So, I use 5 times the singleChar, which supposedly matches *any single character*. I may be wrong, but I don't know why. Do you think "." does not represent the singleChar? Look t the example, please. In green stroke you see the same layer but in WMS. The style (SLD Body) here works fine. It matches the states: Idaho, Texas and Maine. The y are the only ones with 5 letters. But, in the vector layer, which uses an OpenLayers.StyleMap, it shows all the states with 5 or more letters. But the filter used in the rule of the style is *exactly the same*. I don't understand this. Thanks for your help. 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-2Dtp5203061p5203183.html&d=BQIGaQ&c=gpp0UHgwH8jd0f0gRc5QaF0zPfGT1csUQXD9eLov3hQ&r=iiS-4SY2BTp-9WmUwQb3-zEL2tnO_1j_07NMJG-MZ0s&m=vSBwIgMhfpjrbaDD_KvBHCP_7pH-Dml6oDJF2n0vjMc&s=64lC_lCUZcqXK9bjkZzo0LPBF9LST3iVsV-0XHlGfdg&e= Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users at 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=vSBwIgMhfpjrbaDD_KvBHCP_7pH-Dml6oDJF2n0vjMc&s=S1rrZdmFyWzVQgz8mSeV1r3vaxFSNhwrN9DFhbFA4ek&e= From p.scadden at gns.cri.nz Mon Apr 27 20:42:41 2015 From: p.scadden at gns.cri.nz (Phil Scadden) Date: Tue, 28 Apr 2015 15:42:41 +1200 Subject: [OpenLayers-Users] Openlayers and ArcGIS Server REST query functions. In-Reply-To: <33525749.5987891330873884236.JavaMail.defaultUser@defaultHost> References: <33525749.5987891330873884236.JavaMail.defaultUser@defaultHost> Message-ID: <553F01B1.3010401@gns.cri.nz> I have an arcGIS server that I want to use that is not publishing WMS or WFS, just REST supporting Identify and Find. I can draw it with the ArcGISREST93 layer tool but I also want to query it. I found patches from 5 years ago with some work on this but no updates. Has anyone played with openlayers and arcGIS REST-only servers? Any code updates? Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents. From Robert.Sanson at asurequality.com Mon Apr 27 21:35:42 2015 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Tue, 28 Apr 2015 04:35:42 +0000 Subject: [OpenLayers-Users] Openlayers and ArcGIS Server REST query functions. In-Reply-To: <553F01B1.3010401@gns.cri.nz> References: <33525749.5987891330873884236.JavaMail.defaultUser@defaultHost>, <553F01B1.3010401@gns.cri.nz> Message-ID: <59e8632198d14ee3a48d6d0ca5203877@OPASAKLPMBX01.nz01a.opaas.net.nz> Hi Phil I have done this. What I do is prepare the ArcGIS REST query URL eg: var qryurl = "http://myserver/ArcGIS/rest/services/mapservice_cadastre_prod/MapServer/7/query?text=&geometry="+easting+","+northing+"&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelWithin&where=&returnGeometry=false&outSR=&outFields=par_id&f=pjson"; Then submitted this via OpenLayers.Request.Get call: OpenLayers.Request.GET({ url: qryurl, callback: setHTML1 }); These code fragments are inside a : map.events.register('click', map, function (e) { ... } function. Then I have written the setHTML1 callback to parse the returned JSON. Cheers, Robert Sanson ________________________________________ From: openlayers-users-bounces at lists.osgeo.org on behalf of Phil Scadden Sent: Tuesday, 28 April 2015 3:42 p.m. To: openlayers-users at lists.osgeo.org; ol3-dev at googlegroups.com Subject: [OpenLayers-Users] Openlayers and ArcGIS Server REST query functions. I have an arcGIS server that I want to use that is not publishing WMS or WFS, just REST supporting Identify and Find. I can draw it with the ArcGISREST93 layer tool but I also want to query it. I found patches from 5 years ago with some work on this but no updates. Has anyone played with openlayers and arcGIS REST-only servers? Any code updates? Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents. _______________________________________________ Users mailing list Users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users From joaorodr84 at gmail.com Tue Apr 28 02:09:07 2015 From: joaorodr84 at gmail.com (joaorodr84) Date: Tue, 28 Apr 2015 02:09:07 -0700 (PDT) Subject: [OpenLayers-Users] [Possible spoofed sender] Re: [Possible spoofed sender] Re: Like query with "singleChar" does not work correctly in OpenLayers.StyleMap In-Reply-To: References: <1430132383937-5203061.post@n6.nabble.com> <1430159419303-5203165.post@n6.nabble.com> <1430175006504-5203183.post@n6.nabble.com> Message-ID: <1430212147274-5203250.post@n6.nabble.com> Hi Tom You're right. Let's forget about: / filter.value = filter.value.replace(/\*/g, '!*');/ ----- Please, define /I changed your regex value to something very simple/. What filter did you use? Thanks. Jo?o -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Like-query-with-singleChar-does-not-work-correctly-in-OpenLayers-StyleMap-tp5203061p5203250.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From r.k.alshammari at gmail.com Tue Apr 28 05:30:52 2015 From: r.k.alshammari at gmail.com (Reem) Date: Tue, 28 Apr 2015 05:30:52 -0700 (PDT) Subject: [OpenLayers-Users] refresh vector layer Message-ID: <1430224252007-5203286.post@n6.nabble.com> I use openlayers with geoservers layers . currently, my problem is with refreshing vector layer that used WFS protocl and cql_filter, as below: Layer2 = new OpenLayers.Layer.Vector("layer2", { protocol:new OpenLayers.Protocol.WFS.v1_1_0({ url: GeoServerURL, featureType: "layer2", featureNS: "http://mapmap.org", srsName: "EPSG:3857", version: "1.1.0", extractAttributes: true, isBaseLayer: false, visibility: true }), maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90).transform(geographic,mercator), displayOutsideMaxExtent: true, displayInLayerSwitcher: false }); Layer2.addOptions({id:'Layer2'}); Layer2.protocol.read({ filter: c_filter, callback: processTheQuery , scope: [new OpenLayers.Strategy.Fixed({preload: true})] }); when I add new feature to geoserver layer I want to refresh this layer to get the new feature, I triyed many ways but nothing happen with no errors! like: 1: map.getLayer('Layer2').protocol.setFeatureType("layer2"); map.getLayer('Layer2').refresh({featureType: "layer2",force: true}); 2 : map.getLayer('Layer2').protocol.update(); 3: map.getLayer('Layer2').refresh({ force: true, params: { 'key': Math.random()} }); 4: map.removeLayer(Layer2); map.addLayer(Layer2); any help ? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/refresh-vector-layer-tp5203286.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From zachc1980 at gmail.com Tue Apr 28 13:09:10 2015 From: zachc1980 at gmail.com (zach cruise) Date: Tue, 28 Apr 2015 16:09:10 -0400 Subject: [OpenLayers-Users] how to select and show a feature on page load? Message-ID: i want to trigger a display function that is bound to a page load event in an activated control. basically this in 2.13 - http://gis.stackexchange.com/questions/44776/openlayers-autoselect-feature-for-modifying-on-page-load or http://stackoverflow.com/questions/8832029/how-to-select-a-feature-programmatically-on-a-vector-layer-in-openlayers but looks like it won't work with 2.13 - bug? https://github.com/openlayers/openlayers/issues/972 or http://gis.stackexchange.com/questions/29817/openlayers-feature-edit-handles-not-appearing-when-adduniquevaluerules-applied/30460#30460 or http://osgeo-org.1560.x6.nabble.com/Modify-Control-and-Select-Control-with-highlight-strange-behaviour-td4950234.html related - http://dev.openlayers.org/examples/modify-feature.html http://jsfiddle.net/XfEmn/ From rodolfoamoreno at gmail.com Tue Apr 28 13:07:55 2015 From: rodolfoamoreno at gmail.com (Rodolfo Moreno) Date: Tue, 28 Apr 2015 13:07:55 -0700 (PDT) Subject: [OpenLayers-Users] google maps engine transition to ESRI Message-ID: <1430251675304-5203359.post@n6.nabble.com> Hi All, I have read that google leaves google maps engine which is why google and ESRI is working in the transition. http://www.esri.com/landing-pages/products/google-lp In that sense my concern is about the base maps and street view of google inside of the open layers. How this fact will impact to the integration of openlayers with google maps? Thanks in advance, -- View this message in context: http://osgeo-org.1560.x6.nabble.com/google-maps-engine-transition-to-ESRI-tp5203359.html Sent from the OpenLayers Users mailing list archive at Nabble.com. From bartvde at boundlessgeo.com Tue Apr 28 23:49:29 2015 From: bartvde at boundlessgeo.com (Bart van den Eijnden) Date: Wed, 29 Apr 2015 08:49:29 +0200 Subject: [OpenLayers-Users] google maps engine transition to ESRI In-Reply-To: <1430251675304-5203359.post@n6.nabble.com> References: <1430251675304-5203359.post@n6.nabble.com> Message-ID: <61DB9DB1-BD1A-4E18-BCEC-DF49CEDE2890@boundlessgeo.com> Google Maps Engine is not the same as the Google Maps API. Google Maps API will remain. None of this should impact OpenLayers. Best regards, Bart Bart van den Eijnden Front End Software Engineer | Boundless bartvde at boundlessgeo.com 1-877-673-6436 @boundlessgeo > On 28 Apr 2015, at 22:07, Rodolfo Moreno wrote: > > Hi All, > I have read that google leaves google maps engine which is why google and > ESRI is working in the transition. > http://www.esri.com/landing-pages/products/google-lp > In that sense my concern is about the base maps and street view of google > inside of the open layers. > How this fact will impact to the integration of openlayers with google maps? > Thanks in advance, > > > > -- > View this message in context: http://osgeo-org.1560.x6.nabble.com/google-maps-engine-transition-to-ESRI-tp5203359.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mc.prins at gmail.com Wed Apr 29 01:35:36 2015 From: mc.prins at gmail.com (Mark Prins) Date: Wed, 29 Apr 2015 10:35:36 +0200 Subject: [OpenLayers-Users] Streched Map if Sidebar.display=none In-Reply-To: <2051512045.73598.1429874959442.JavaMail.open-xchange@app03.ox.hosteurope.de> References: <2051512045.73598.1429874959442.JavaMail.open-xchange@app03.ox.hosteurope.de> Message-ID: openlayers 2 (to which this list is dedicated) has Map.updateSize() to take care of this. http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.updateSize -- Disclaimer; This message is just a reflection of what I thought at the time of sending. The message may contain information that is not intended for you or that you don't understand. From talsibo at gmail.com Wed Apr 29 06:16:01 2015 From: talsibo at gmail.com (tal sibony) Date: Wed, 29 Apr 2015 16:16:01 +0300 Subject: [OpenLayers-Users] layers z index Message-ID: Hi, I am migrating old code of openlayers2 to openlayers 3 and I am not able to find how can I change the zindex of a layer? -- Best Regards Tal Sibony -------------- next part -------------- An HTML attachment was scrubbed... URL: From zachc1980 at gmail.com Wed Apr 29 07:18:41 2015 From: zachc1980 at gmail.com (zach cruise) Date: Wed, 29 Apr 2015 10:18:41 -0400 Subject: [OpenLayers-Users] how to select and show a feature on page load? In-Reply-To: References: Message-ID: basically auto select (by attribute) on page load (so that the popup is already open): i could fire a select event on load like here - http://gis.stackexchange.com/questions/119641/openlayers-programmatically-fire-modifyfeature-event but can i even register that event? http://dev.openlayers.org/docs/files/OpenLayers/Events-js.html http://gis.stackexchange.com/questions/42682/how-to-trigger-registered-events-in-openlayers steve, if you are reading this, could you share how you did this - http://osgeo-org.1560.x6.nabble.com/How-to-programmatically-open-close-Popup-td3931182.html mapbox/leaflet makes this simpler but i want to keep my code in openlayers - https://www.mapbox.com/mapbox.js/example/v1.0.0/open-popup-externally/ http://stackoverflow.com/questions/18323105/programmatically-opening-a-popup-in-a-mapbox-map From osgeo.mailinglist at gmail.com Thu Apr 30 05:07:39 2015 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Thu, 30 Apr 2015 14:07:39 +0200 Subject: [OpenLayers-Users] Openlayers and ArcGIS Server REST query functions. In-Reply-To: <59e8632198d14ee3a48d6d0ca5203877@OPASAKLPMBX01.nz01a.opaas.net.nz> References: <33525749.5987891330873884236.JavaMail.defaultUser@defaultHost> <553F01B1.3010401@gns.cri.nz> <59e8632198d14ee3a48d6d0ca5203877@OPASAKLPMBX01.nz01a.opaas.net.nz> Message-ID: Hi, With the layer class "ArcGISREST93" mentioned, it seems you are at the wrong place for asking. It seems you are using OpenLayers 2 whereas this list is for OpenLayers 3 dev questions. You should ask on the OpenLayers 2 users list at https://lists.osgeo.org/mailman/listinfo/openlayers-users/ instead. Cheers Thomas Gratier 2015-04-28 6:35 GMT+02:00 Robert Sanson : > Hi Phil > > I have done this. What I do is prepare the ArcGIS REST query URL eg: > > var qryurl = " > http://myserver/ArcGIS/rest/services/mapservice_cadastre_prod/MapServer/7/query?text=&geometry= > "+easting+","+northing+"&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelWithin&where=&returnGeometry=false&outSR=&outFields=par_id&f=pjson"; > > Then submitted this via OpenLayers.Request.Get call: > > OpenLayers.Request.GET({ > url: qryurl, > callback: setHTML1 > }); > > These code fragments are inside a : > > map.events.register('click', map, function (e) { > ... > } > > function. Then I have written the setHTML1 callback to parse the returned > JSON. > > Cheers, > > Robert Sanson > ________________________________________ > From: openlayers-users-bounces at lists.osgeo.org < > openlayers-users-bounces at lists.osgeo.org> on behalf of Phil Scadden < > p.scadden at gns.cri.nz> > Sent: Tuesday, 28 April 2015 3:42 p.m. > To: openlayers-users at lists.osgeo.org; ol3-dev at googlegroups.com > Subject: [OpenLayers-Users] Openlayers and ArcGIS Server REST query > functions. > > I have an arcGIS server that I want to use that is not publishing WMS or > WFS, just REST supporting Identify and Find. I can draw it with the > ArcGISREST93 layer tool but I also want to query it. I found patches > from 5 years ago with some work on this but no updates. Has anyone > played with openlayers and arcGIS REST-only servers? Any code updates? > > Notice: This email and any attachments are confidential. > If received in error please destroy and immediately notify us. > Do not copy or disclose the contents. > > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > _______________________________________________ > Users mailing list > Users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: