Re: [OpenLayers-Users] Selecting polygon error.

2008-01-18 Thread samd
Oops sorry, I mean removing the callbacks onSelect and onUnselect still results in the same error. S.D. samd wrote: > > Using the callbacks encounter the same problem. > > There is a difference between yours and mine though in terms of the > polygons are created as a result of an AJAX callbac

Re: [OpenLayers-Users] Selecting polygon error.

2008-01-18 Thread samd
Using the callbacks encounter the same problem. There is a difference between yours and mine though in terms of the polygons are created as a result of an AJAX callback. S.D. Eric Lemoine-3 wrote: > > On Jan 18, 2008 9:50 AM, Pierre GIRAUD <[EMAIL PROTECTED]> wrote: >> Sorry, I have no clue.

Re: [OpenLayers-Users] Selecting polygon error.

2008-01-18 Thread Eric Lemoine
On Jan 18, 2008 9:50 AM, Pierre GIRAUD <[EMAIL PROTECTED]> wrote: > Sorry, I have no clue. > > I tested the following code (adapted from yours) in the > select-feature.html example [1] and it worked great : That it exactly why I suggested to try with the onSelect and onUnselect callbacks removed.

Re: [OpenLayers-Users] Selecting polygon error.

2008-01-18 Thread Pierre GIRAUD
Sorry, I have no clue. I tested the following code (adapted from yours) in the select-feature.html example [1] and it worked great : var polygonAreaPoints = [ new OpenLayers.Geometry.Point(0, 0), new OpenLayers.Geometry.Point(10, 0), new OpenLayers.Geometry.Point(10, 10), new Open

Re: [OpenLayers-Users] Selecting polygon error.

2008-01-18 Thread Eric Lemoine
Do you have the problem if you remove the onSelect and onUnselect callbaks from the select feature control options? 2008/1/18, samd <[EMAIL PROTECTED]>: > > Hi I was discussing this in a previous message but created a new one since > it > is a different topic. > > When I am using a select control

[OpenLayers-Users] Selecting polygon error.

2008-01-17 Thread samd
Hi I was discussing this in a previous message but created a new one since it is a different topic. When I am using a select control on a polygonLayer such as the following: selectControl = new OpenLayers.Control.SelectFeature(polygonLayer,