A function evaluator always has a user-defined number of spread arguments.
Generates a LuciadRIA painter from a Symbology Encoding in a JavaScript String. This method can be used if the Symbology Encoding definition is already downloaded from the server, for example by means of an Ajax call.
Currently the Factory only supports FeatureTypeStyle
symbology encodings.
CoverageStyle
encodings are not supported.
For more information on supported features, please refer to the developer guide.
The symbology encoding XML definition in a JavaScript String.
an object containing configuration parameters for the factory
A promise for a LuciadRIA feature painter that realizes the given Symbology Encoding file.
Generates a LuciadRIA painter from a Symbology Encoding in a file located on a web server. The symbology encoding file is retrieved by means of passing its URL to the factory method.
//Use the factory method from the SEPainterFactory module to create the painter
//As input we use the url of the SLD file
const seURL = "http://foo.com/se/CitiesSymbolizer.xml";
createPainterFromURL(seURL)
.then(function(sePainter) {
//Create a new layer which uses the created painter
const layer = new FeatureLayer(citiesModel, {
label: "Cities Layer",
painter: sePainter
});
//Add the layer to the map
map.layerTree.addChild(layer);
},
function(error) {
console.log("could not create a painter from symbology encoding at " + seURL);
}
);
The location of the symbology encoding XML file.
an object literal containing painter creation configuration parameters the factory method.
A promise for a LuciadRIA feature painter that realizes the given Symbology Encoding file.
This module provides factory methods to create a LuciadRIA feature painter based on a Symbology Encoding file.
For documentation of supported features and limitations, see SLD styling - supported versions and limitations.