[mapserver-users] refactoring STYLEs ?
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Fri Aug 20 04:57:17 PDT 2010
Hi,
You can use INCLUDE everywhere in your mapfile for reading definitions from a text file.
-Jukka Rahkonen-
-----Alkuperäinen viesti-----
Lähettäjä: mapserver-users-bounces at lists.osgeo.org puolesta: Clément MONIER
Lähetetty: pe 20.8.2010 14:48
Vastaanottaja: 'mapserver-users at lists.osgeo.org'
Aihe: [mapserver-users] refactoring STYLEs ?
Hi,
Is it possible to add a style definition (inside a mapfile or elsewhere ) so that it wouldn't be necessary to repeat it for each layer ?
For instance :
2 layers with the same display style
LAYER
NAME layer1
CLASS
STYLE
COLOR 0 0 0
WIDTH 1
END
END
END
LAYER
NAME layer2
CLASS
STYLE
COLOR 0 0 0
WIDTH 1
END
END
END
==>
STYLE 'style1'
STYLE
COLOR 0 0 0
WIDTH 1
END
END
LAYER
NAME layer1
CLASS
STYLE
'Style 1'
END
END
END
LAYER
NAME layer2
CLASS
STYLE
'Style 1'
END
END
END
Thanks & Regards
Clement
More information about the MapServer-users
mailing list