Re: [OpenLayers-Users] Edit circles not showing when styleMap is specified

2008-12-15 Thread Alexandre Dube
Hi Jan, I also had this problem and resolved it by adding theses lines : rules = [new OpenLayers.Rule({ symbolizer: {strokeColor:red,strokeWidth: 2}, elseFilter: true })]; styles.styles[default].addRules(rules); Hope this helps, Alexandre Jan van der Ven wrote: Dear list, I have a map

Re: [OpenLayers-Users] Edit circles not showing when styleMap is specified

2008-12-15 Thread Jan van der Ven
Dear Alexandre, Thanks for the quick reply. I tried it out right away, and modified the code as shown below: function addGeoJSONLayers() { for(i=0; inLayers; i++) { mystyles = new OpenLayers.StyleMap( { default: new OpenLayers.Style({ })

Re: [OpenLayers-Users] howto regist. featuremodified instead onModification ?

2008-12-15 Thread Eric Lemoine
On Fri, Dec 12, 2008 at 8:19 PM, Alexandre Dube ad...@mapgears.com wrote: Well, I don't 100% understand. An example is worth a lengthy explanation: var foobar = {foo: bar}; layer.events.on({ featuremodified: function(o) { // this references the foobar object // created above

Re: [OpenLayers-Users] howto regist. featuremodified instead onModification ?

2008-12-15 Thread Alexandre Dube
Thanks Eric and Pierre, I'll try that. Alexandre Eric Lemoine wrote: On Fri, Dec 12, 2008 at 8:19 PM, Alexandre Dube ad...@mapgears.com wrote: Well, I don't 100% understand. An example is worth a lengthy explanation: var foobar = {foo: bar}; layer.events.on({

[OpenLayers-Users] Edit circles not showing when styleMap is specified

2008-12-15 Thread Jan van der Ven
Dear list, I have a map to which I add nine vector layers (all polygons). The layers all should have their own color for rendering the features. I have too many features to put them all in one layer, and use an attribute to style them. The code I have for this is as follows: /** * Add the

Re: [OpenLayers-Users] Edit circles not showing when styleMap isspecified

2008-12-15 Thread Arnd Wippermann
There is a property virtualStyle for the ModifyFeature Control. Perhaps this has to set. I do this before I add the controls: OpenLayers.Feature.Vector.style['select']['fillColor']= 'yellow'; OpenLayers.Feature.Vector.style['select']['strokeColor'] = 'yellow'; var selectStyle =

[OpenLayers-Users] Drag performance tweaker...

2008-12-15 Thread Chris Adams
In Handler/Drag.js line 70-78: /** * Property: interval * {Integer} In order to increase performance, an interval (in * milliseconds) can be set to reduce the number of drag events * called. If set, a new drag event will not be set until the * interval

[OpenLayers-Users] Default HTTP Header

2008-12-15 Thread Terry Austin
All, This seems like something simple that I'm just not seeing, but is there a way to include a default HTTP header in every request made by OpenLayers (including tile requests)? Terry Austin Progressive Partnering ___ Users mailing list

Re: [OpenLayers-Users] Default HTTP Header

2008-12-15 Thread Christopher Schmidt
On Mon, Dec 15, 2008 at 01:33:59PM -0600, Terry Austin wrote: All, This seems like something simple that I'm just not seeing, but is there a way to include a default HTTP header in every request made by OpenLayers (including tile requests)? No. Tiles are requested via img tags, which do not

Re: [OpenLayers-Users] Default HTTP Header

2008-12-15 Thread Terry Austin
That makes sense. Thanks for the help! Terry Austin Progressive Partnering On Mon, Dec 15, 2008 at 2:27 PM, Christopher Schmidt crschm...@metacarta.com wrote: On Mon, Dec 15, 2008 at 01:33:59PM -0600, Terry Austin wrote: All, This seems like something simple that I'm just not seeing,