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
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({
})
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
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({
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
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 =
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
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
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
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,
10 matches
Mail list logo