To decorate your text, you can use any of the above
parameters as under:
<style name='MyFirstFontStyle' type='font' font='Verdana' size='12' color='FF0000' bold='1' italic='1' underline='1' /> |
|
Bold |
bold='Logicalvalue'
|
bold='1'
or bold='0' |
Italic |
italic='Logicalvalue'
|
italic='1'
italic='0' |
Underline |
underline='Logicalvalue'
|
underline='1' or underline='0' |
|
The above code will make sure that your font appears as
bold, italicized and underlined. |
If you intend to put a border color or a background color for your text boxes on the map, you can use the above two parameter to define hex color code (without #) as under: |
<style name='MyFirstFontStyle' type='font' font='Verdana' size='12' color='FF0000' bgColor='FFFFDD' borderColor='666666' /> |
|
bgColor |
bgColor='value'
|
bgColor='FFFFDD'
|
borderColor |
borderColor='value
' |
borderColor='666666'
|
|
This style when applied to a text field on map (e.g.,
caption), will give an output as under:
|
This attribute is particularly useful, when you have HTML characters as a part of your text e.g., "< 5" or "> 5" etc. By default, FusionMaps XT renders all text as HTML and as such "< 5" will be treated as a non-closing HTML tag and will not be displayed at all.
For example, if you've to display "< 5" for a color range value, you will use:
|
<color displayValue='< 5' ... /> |
(Note that < is the encoded form of <, which is used in XML data documents).
The style is to be defined as under: |
<style name='LegendFont' type='font' font='Arial' size='10' isHTML='0' /> |
And, applied as under: |
<apply toObject='Legend' styles='LegendFont' /> |
|
isHTML |
isHTML
='Logicalvalue' |
isHTML
='1' or isHTML ='0' |
|
|
leftMargin lets you set the left margin of the text (in points) and letterSpacing allows you to control the space that is uniformly distributed between characters - the value specifies the number of pixels that are added to the space after each character. A negative value condenses the space between characters.
Example |
<style name='MyFirstFontStyle' type='font' font='Verdana' size='12' color='FF0000' bgColor='FFFFDD' borderColor='666666' leftMargin='10' letterSpacing='3'/> |
|
leftMargin |
leftMargin='value
in pixels' |
leftMargin='10'
|
letterSpacing |
letterSpacing='value
in pixels' |
letterSpacing='3'
|
|
|