Re: [OpenLayers-Users] split features

2010-08-06 Thread Chris Green
t; and another named "worm", then you could get the relevant parts as follows: var parts = knife.geometry.split(worm.geometry); Tim On 8/4/10 2:08 AM, Chris Green wrote: > Hi all > > I am wondering if there is a way to use the split control to split line > featu

[OpenLayers-Users] split features

2010-08-04 Thread Chris Green
Hi all I am wondering if there is a way to use the split control to split line features programmatically rather than by a user identifying on a sketch layer where a split should be made? I can determine in javascript where I want to split the feature and I don't want the user involved - do

Re: [OpenLayers-Users] loading panel question

2010-05-21 Thread Chris Green
Bart I changed the entry so it only adds "OpenLayers/Control/LoadingPanel.js", but still the same result. The Firefox script tab shows a list of controls but LoadingPanel.js is not there. Could it be a problem with the LoadingPanel.js file? Chris -Original Message- From: Bart van den Ei

Re: [OpenLayers-Users] loading panel question

2010-05-21 Thread Chris Green
Hi Bart Thanks for the help. I found " if(!singleFile) {var jsfiles = new Array(." in OpenLayers.js and added "OpenLayers/Control.js", "OpenLayers/Control/LoadingPanel.js", at the end of the (very long) list of controls. Unfortunately I still get the same result: "OpenLayers.Control.Loa

[OpenLayers-Users] loading panel question

2010-05-21 Thread Chris Green
Hi list I have been trying to make the loading panel work, as per http://trac.openlayers.org/wiki/Addins/LoadingPanel but can't seem to make it work. I am using OL 2.8 (also tried 2.9 - same problem) which is referenced in my code as: . I downloaded LoadingPanel.js and put it in the d

[OpenLayers-Users] logical.OR filter

2010-05-07 Thread Chris Green
Hi All I am using OL2.8 with a vector layer that uses WFS getfeature to obtain up to about 20 features from a MapServer WMS layer. Each feature is found via a comparison filter, all of which are then combined via a logical.OR filter. It sort of works but I get inconsistent results from the logi

Re: [OpenLayers-Users] GML feature attributes

2010-04-20 Thread Chris Green
butes Add METADATA "gml_include_items" "all" END to your LAYER definition. Bart On Apr 20, 2010, at 4:44 PM, Chris Green wrote: > Hi David > > I am using MapServer. Looking at the response in Firefox it is only sending > geometry, no attributes. Any idea

Re: [OpenLayers-Users] GML feature attributes

2010-04-20 Thread Chris Green
include the attribute info. What are you using as a WFS server? David. On Tue, Apr 20, 2010 at 5:30 AM, Chris Green wrote: > Hi all > > > > After much experimentation I have succeeded in creating a vector layer which > is populated by a WFS GetFeature call to a WMS layer using

[OpenLayers-Users] GML feature attributes

2010-04-20 Thread Chris Green
Hi all After much experimentation I have succeeded in creating a vector layer which is populated by a WFS GetFeature call to a WMS layer using a DWITHIN spatial filter. So I can now display on my vector layer all features within a given radius. Success!!! However, now I want to get a list o

Re: [OpenLayers-Users] drawFeature control needs two clicks...?

2010-04-15 Thread Chris Green
users@openlayers.org Subject: Re: [OpenLayers-Users] drawFeature control needs two clicks...? Chris, Chris Green wrote: > > I have a situation that I can’t get to the bottom of, and I’m hoping > that someone can help me understand it. > > circle1 = new OpenLayers.Control.Draw

[OpenLayers-Users] drawFeature control needs two clicks...?

2010-04-15 Thread Chris Green
Dear all I have a situation that I can't get to the bottom of, and I'm hoping that someone can help me understand it. The following code is intended to add a new circle each time the user clicks a map, which it does. My problem is that two clicks are needed for any circle to be drawn: it is

[OpenLayers-Users] feature attribute string length limit?

2010-04-13 Thread Chris Green
Hello list I have some features with very long attribute strings (>1000 characters) and when I select them using SelectFeature I see that the attribute is truncated after about 255 characters. Does anyone know if there is a way around this? Chris __

Re: [OpenLayers-Users] vector layer destroyed twice throws error

2010-04-12 Thread Chris Green
ailto:eric.lemo...@camptocamp.com] Sent: 12 April 2010 10:35 To: chris.gr...@ibstv.co.uk Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] vector layer destroyed twice throws error On Mon, Apr 12, 2010 at 10:16 AM, Chris Green wrote: > Hi Eric > > The code I am using (slightly simpli

Re: [OpenLayers-Users] vector layer destroyed twice throws error

2010-04-12 Thread Chris Green
: [OpenLayers-Users] vector layer destroyed twice throws error On Mon, Apr 12, 2010 at 8:13 AM, Chris Green wrote: > Hello List > > > > I am using OL 2.8 and have a vector layer that is populated with features > via WFS. In my application I  need to be able to remove and re-crea

[OpenLayers-Users] vector layer destroyed twice throws error

2010-04-12 Thread Chris Green
Hello List I am using OL 2.8 and have a vector layer that is populated with features via WFS. In my application I need to be able to remove and re-create the vector layer repeatedly, which I can perform once only but the second time I call layer.detroy() I get the error 'this div is null' thr

Re: [OpenLayers-Users] simultaneous parse and display of WFS data?

2010-03-22 Thread Chris Green
e and display of WFS data? Chris Green wrote: > Hi all > > > > Apologies for re-posting but I am hoping someone can guide me on my > problem over simultaneously parsing and displaying features obtained by > WFS on a vector layer: > > > > > > I have defin

[OpenLayers-Users] simultaneous parse and display of WFS data?

2010-03-22 Thread Chris Green
Hi all Apologies for re-posting but I am hoping someone can guide me on my problem over simultaneously parsing and displaying features obtained by WFS on a vector layer: I have defined a vector layer which successfully makes a WFS call and displays features captured by my filter, as belo

[OpenLayers-Users] wfs call that both displays features and parses them...?

2010-03-21 Thread Chris Green
Hi all I have defined a vector layer which successfully makes a WFS call and displays features captured by my filter, as below: var wfs = new OpenLayers.Layer.Vector("WFS", { styleMap: WFSstyle, strategies: [new OpenLayers.Strategy.Fixed()], protocol

[OpenLayers-Users] popup with additional button?

2010-03-02 Thread Chris Green
Hi list I'm wondering if there is an easy way to add an extra button to the standard popup. I am already using the closebox, what I really want is an extra 'OK' button if the information in the popup is what the user was looking for, if not then he will click the closebox and carry on looking.

Re: [OpenLayers-Users] Selectfeature not firing

2010-02-26 Thread Chris Green
could be done by defining a 'keymask' to the Handler.Feature object of your SF control. * make the "select" on "hover" instead of "click", see an example [1] Hope this helps, Alexandre [1] http://openlayers.org/dev/examples/highlight-feature.html Chris

Re: [OpenLayers-Users] Selectfeature not firing

2010-02-24 Thread Chris Green
15:47 To: chris.gr...@ibstv.co.uk Cc: Users@openlayers.org Subject: Re: [OpenLayers-Users] Selectfeature not firing Chris, Could you share a live example or more code demonstrating your problem ? The code you pasted below doesn't seem to have any issue. Kind regards, Alexandre Chris G

[OpenLayers-Users] Selectfeature not firing

2010-02-24 Thread Chris Green
Hello all Hope someone can help with what is probably a simple problem that I don't seem to be able to solve. I have created a vector layer which has features taken from a wms layer: var wfs = new OpenLayers.Layer.Vector("Countries WFS", { styleMap: styleMap2, stra

Re: [OpenLayers-Users] WMSGetFeatureInfo not firing

2010-02-22 Thread Chris Green
Hi Puneet Just want to thank you for posting the solution to your problem. I had exactly the same thing and like you spent many hours trying to fix it before finally stumbling across your second post. Furthermore my heartfelt support for your plea for better documentation. I have spent about 3 w