Have a look at mapbuilder/demo/openlayers/ In particular: tasmania/TasmaniaContext.xml includes SLD (style layer descriptor) elements which describe how to render a layer, ie color. And the GML files contain the features (geometry+attributes) to render.
Note that the openlayers demo loads vectors and renders the vectors on the client. Its SLD parsing is limited and can select one layer and render all that layer one color. The full SLD spec supports filtering. So you could say Render all cities layer with attribute popultation>1000 red. Maybe you would be interested in writing the Filtering code? Or maybe sponsoring one of us developers to write it for you? The full SLD spec is supported by Geoserver (on the server). If you want to do your rendering on the server and load WMS layers (images) instead of vector then have a look at the SLD demo. Grégory Babusiaux wrote: > I would like to display some data like the number of citizens in a > country, represented by a circle, a color... > > what is possible with gml geometry within a gml layer? > > >> What sort of data do you want to display? >> The GML Viewer (which is based on the MapPaneOL) converts a GML file >> to SVG/VML for rendering. >> >> I suspect that you could create your extra data as another GML layer? >> >> Grégory Babusiaux wrote: >>> >>> HI, >>> >>> I'm am currently working with GML viewer 1.0. I was able to build a >>> map of belgium with different layers. What I would like to do know, >>> is to display data on this map. And to do this, I figured that the >>> best way to display the data in gml viewer was with an SVG layer. >>> Is it possible with the gml viewer to add an SVG layer who would >>> display the data? how would this be done? >>> >>> Thanks, >>> >>> Greg >>> >>> ------------------------------------------------------------------------ >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Mapbuilder-users mailing list >>> [email protected] >>> <mailto:[email protected]> >>> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users >>> >>> >>> > > Grégory Babusiaux > > /Tel: /02/675.14.68 > /Gsm: /0472/644.597 > /Mail: /[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > /MSN: /[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > /WEB: /www.gregorybabusiaux.be > > > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mapbuilder-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
