Defining Named Styles - Latest

Spectrum Spatial Guide

Product type
Software
Portfolio
Locate
Product family
Spectrumâ„¢ software
Product
Spectrumâ„¢ software > Spatial > Spectrum Spatial
Version
Latest
ft:locale
en-US
Product name
Spectrum Technology Platform
ft:title
Spectrum Spatial Guide
Copyright
2025
First publish date
2007
ft:lastEdition
2025-03-07
ft:lastPublication
2025-03-07T10:28:48.112000

To define a named style:

  1. Add the relevant named style elements, and the desired content for each element, into an XML file.
    Note: The root element of the XML file must be <NamedStyle version="MXP_WorkSpace_1_5" xmlns="http://www.mapinfo.com/mxp">.
  2. Add the file into a JCR repository that is accessible to the Repository Service.

An example of a typical named style file is shown here:

<?xml version="1.0" encoding="UTF-8"?>
<NamedStyle
    version="MXP_WorkSpace_1_5"
    xmlns="http://www.mapinfo.com/mxp">
    <LineStyle
        stroke="black"
        stroke-opacity="1"
        width="1"
        width-unit="mapinfo:imagesize pixel">
        <Pen>mapinfo:pen 9</Pen>
    </LineStyle>
</NamedStyle>

After you have added the named style file to the repository, you can reference the named style in your XML request by specifying the path and filename of the XML file.