Example of Map Fill Setup

Executing this example requires an XML file named MapXmlExample_RU.xml, topobase Russia.svg, and an HTML page, that contains a map. Map settings must be converted to JSON.

NOTE. When XML is automatically converted to JSON, the "@" character, which does not need to be removed, appears before attributes.

The XML file must contain the following items:

To set up map fill factor, add the MapAreaVisual item to the Visuals item.

NOTE. In case object properties are described as items and not as attributes, the following syntax is used: ObjectName.PropertyName (such as, MapLayer.Visuals).

"MapLayer.Visuals":

{

   "MapAreaVisual" :

     {

        "Name" : "Harvesting",

        "Visibility" : "Visible",

        "Index" : "0",

        "Id" : "AreaVisual",

        "MapAreaVisual.Background" :

            {

              "DataDependency" :

                {

                   "IsDependent" : "True",

                   "MapScale" : "{AreaVisualScale}",

                   "TypeArguments" : "Brush",

                   "DataSource" : "{source}"

                }

             }

       }

}

After executing the example, fill factor is set for the four regions:

See also:

Visuals Item