[OpenLayers-Users] my road styleMap not working

Eric Lemoine eric.lemoine at camptocamp.com
Sat Dec 12 08:34:09 EST 2009


On Saturday, December 12, 2009, Haftish 21  wrote:
>
>
> Lately,
>
> rType = {
>         'Functioning': { strokeColor:"#0aa989", strokeWidth: 7 },
>         'Schematic road': { strokeColor:"#ff0000", strokeWidth: 4 },
>         'Compiled road connector': { strokeColor:"#f4a427", strokeWidth: 3 }
>         };
>
> Is working even without first declaring the variable rType. I'm really interested in the abbreviated version of the road types as in the non-working code above.

the keys in your rType object must correspond to the values found in
the "rdlnstattx" attribute of the features
(feature.attributes.rdlnstattx).

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Users mailing list