MAP Web Author CSS Reference

Visual aspects of the widgets that appear in the MAPublisher Web Author viewer can be configured using CSS.

The CSS implementation is based on the Adobe Flex 3 CSS system. Only class selectors are supported. The following is a list of classes available for styling and their supported properties.



Selectors

PanRightButton, PanLeftButton, PanUpButton, PanDownButton, ZoomInButton, ZoomOutButton

Use these classes to style the various buttons that appear in the viewer.

Supported properties: alpha, borderColor, bottom, color, cornerRadius, fillAlphas, fillColors, height, image, left, right, themeColor, top, visible, width


ZoomSlider

Use this class to style the zoom slider widget.

Supported properties: alpha, borderColor, bottom, fillAlphas, fillColors, height, left, right, themeColor, top, trackColors, visible, width


ClickHighlight, HoverHighlight, SearchHighlight, UserHighlight

Use these classes to style the highlights that appear on features when they are hovered over or clicked.

Supported properties: alpha, fillAlpha, fillColor, lineColor, lineThickness, visible


SearchBox

Use this class to style the search box.

Supported properties: alpha, backgroundAlpha, backgroundColor, borderColor, borderSides, borderStyle, borderThickness, bottom, color, cornerRadius, dropShadowColor, dropShadowEnabled, focusThickness, fontFamily, fontSize, fontStyle, fontWeight, height, left, paddingBottom, paddingLeft, paddingRight, paddingTop, prompt, right, shadowDirection, shadowDistance, textDecoration, themeColor, top, visible, width

LayerList

Use this class to style the layer list.

Supported properties: alpha, backgroundAlpha, backgroundColor, borderColor, borderSides, borderStyle, borderThickness, bottom, color, cornerRadius, dropShadowColor, dropShadowEnabled, fontFamily, fontSize, fontStyle, fontWeight, height, left, paddingBottom, paddingLeft, paddingRight, paddingTop, right, shadowDirection, shadowDistance, textDecoration, themeColor, top, visible, width


StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble

Use these classes to style callout bubbles that appear when a user hovers over or clicks a feature with web tag.

Supported properties: alpha, arrowBaseDistFromEdge, arrowBaseWidth, arrowTipX, arrowTipY, borderColor, borderThickness, bottom, color, cornerRadius, drawBorder, drawBubble, drawSeparator, dropShadowColor, dropShadowEnabled, fillAlphas, fillColors, fontFamily, fontSize, fontStyle, fontWeight, height, left, maxHeight, maxWidth, right, separatorColor, separatorThickness, shadowDirection, shadowDistance, showArrow, textDecoration, themeColor, top, visible, width


OverviewMap

Use this class to style the overview.

Supported properties: alpha, backgroundAlpha, backgroundColor, borderColor, borderSides, borderStyle, borderThickness, bottom, cornerRadius, dropShadowColor, dropShadowEnabled, height, image, left, maskAlpha, maskColor, paddingBottom, paddingLeft, paddingRight, paddingTop, proportion, right, shadowDirection, shadowDistance, themeColor, top, visible, width



Properties

These properties apply to the selectors.

alpha

Controls the transparency of a widget. Set to numeric values from 0 through 1.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton, ZoomSlider, ClickHighlight, HoverHighlight, SearchHighlight, UserHighlight, SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble, OverviewMap


arrowBaseDistFromEdge

The horizontal distance, in pixels, of the start of the base of the arrow from the edge of the bubble on callouts.

Applies to: ClickCalloutBubble, HoverCalloutBubble


arrowBaseWidth

The width, in pixels, of the base of the arrow on callouts.

Applies to: ClickCalloutBubble, HoverCalloutBubble


arrowTipX

The horizontal distance, in pixels, of the tip of the arrow from the edge of the bubble on callouts.

Applies to: ClickCalloutBubble, HoverCalloutBubble


arrowTipY

The vertical distance, in pixels, of the tip of the arrow from the edge of the bubble on callouts.

Applies to: ClickCalloutBubble, HoverCalloutBubble


backgroundAlpha

Controls the transparency of the background of a widget. Set to numeric values from 0 through 1.

Applies to: SearchBox, LayerList, OverviewMap


backgroundColor

Controls the color of the background of a widget.

Applies to: SearchBox, LayerList, OverviewMap


borderColor

Controls the color of the border of a widget.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton, SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble, OverviewMap


borderSides

Determines which edges of a widget that a border will be drawn for. Set to a string consisting of any combination of "top", "left", "bottom" or "right".

Applies to: SearchBox, LayerList, OverviewMap


borderStyle

Determines the style of border to be drawn for a widget. Set to one of none, solid, inset, or outset.

Applies to: SearchBox, LayerList, OverviewMap


borderThickness

Determines the width, in pixels, of a widget's border.

Applies to: SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble, OverviewMap


bottom

The vertical distance, in pixels, of the bottom of a widget from the bottom edge of the viewer window.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton, ZoomSlider, SearchBox, LayerList, StaticCalloutBubble, OverviewMap


color

Controls the color of the foreground elements in a widget. For example, this property will set the color of the text in the search box widget.

Applies to: ZoomSlider, SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


cornerRadius

Determines the rounding, in pixels, of the corners of a widget.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton, SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble, OverviewMap


drawBorder

Determines whether a border is drawn around a widget.

Applies to: StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


drawBubble

Determines whether the border, background and arrow will be drawn for a callout bubble.

Applies to: StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


drawSeparator

Determines whether the separator between the title and content area in a callout bubble will be drawn.

Applies to: StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


dropShadowColor

Controls the color of a widgets drop shadow.

Applies to: SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble, OverviewMap


dropShadowEnabled

Controls whether a drop shadow will be drawn for a widget.

Applies to: SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble, OverviewMap


fillAlpha

Controls the transparency of the fill of a highlight widget. Set to numeric values from 0 through 1.

Applies to: ClickHighlight, HoverHighlight, SearchHighlight, UserHighlight


fillAlphas

Controls the transparency of the colors in a gradient fill of a widget. Set to two numeric values from 0 through 1.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton, ZoomSlider, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


fillColor

Controls the color of the fill of a highlight widget.

Applies to: ClickHighlight, HoverHighlight, SearchHighlight, UserHighlight


fillColors

Controls the colors in a gradient fill of a widget. Set to two color values with a comma in between.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton, ZoomSlider, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


focusThickness

Sets the width, in pixels, of the highlight outline that appears around the search box when it has focus.

Applies to: SearchBox


fontFamily

Sets the font to be used for text in a widget. Setting this property will cause the viewer to load more slowly.

Applies to: SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


Sets the size, in pixels, of the font to be used for text in a widget.

Applies to: SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


fontStyle

Sets the style of the font to be used for text in a widget. Set to one of "normal" or "italic".

Applies to: SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


fontWeight

Sets the weight of the font to be used for text in a widget. Set to one of "normal" or "bold".

Applies to: SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


height

The height, in pixels, of a widget.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton, ZoomSlider, SearchBox, LayerList, StaticCalloutBubble, OverviewMap


image

The URL of an image to display on a button widget. Set to null to display no image in the button. In the case of the OverviewMap the image defines a customized background to display in place of the scaled live map view.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton OverviewMap


left

The horizontal distance, in pixels, of the left side of a widget from the left side of the viewer.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton, ZoomSlider, SearchBox, LayerList, StaticCalloutBubble, OverviewMap


lineColor

Controls the color of the outline of a highlight widget.

Applies to: ClickHighlight, HoverHighlight, SearchHighlight, UserHighlight


lineThickness

Controls the width, in pixels, of the outline of a highlight widget.

Applies to: ClickHighlight, HoverHighlight, SearchHighlight, UserHighlight


maskAlpha

Sets the transparency of the shading displayed over the non-visible area in the Overview widget. Set to numeric values from 0 through 1.

Applies to: OverviewMap


maskColor

Sets the color of the shading displayed over the non-visible area in the Overview widget.

Applies to: OverviewMap


maxHeight

Sets the maximum height that a callout widget can expand to if it is set to autosize.

Applies to: StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


maxWidth

Sets the maximum width that a callout widget can expand to if it is set to autosize.

Applies to: StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


modalTransparency

Sets the transparency of the background shading that appears behind the ClickCalloutBubble when it's opened in light box mode.

Applies to: ClickCalloutBubble,


modalTransparencyBlur

Sets the amount of blurring of the background that appears behind the ClickCalloutBubble when it's opened in light box mode.

Applies to: ClickCalloutBubble,


modalTransparencyColor

Sets the color of the background that appears behind the ClickCalloutBubble when it's opened in light box mode.

Applies to: ClickCalloutBubble,


modalTransparencyDuration

Controls the time it takes for the animation that displays the ClickCalloutBubble to run when it's opened in light box mode.

Applies to: ClickCalloutBubble,


paddingBottom

Controls the space, in pixels, between the bottom edge of a widget and it's content.

Applies to: SearchBox, LayerList, OverviewMap


paddingLeft

Controls the space, in pixels, between the left edge of a widget and it's content.

Applies to: SearchBox, LayerList, OverviewMap


paddingRight

Controls the space, in pixels, between the right edge of a widget and it's content.

Applies to: SearchBox, LayerList, OverviewMap


paddingTop

Controls the space, in pixels, between the top edge of a widget and it's content.

Applies to: SearchBox, LayerList, OverviewMap


prompt

Set the text displayed in the search box when no search terms are entered.

Applies to: SearchBox


proportion

Sets the size of the overview widget as a proportion of the viewer's size. Set to numeric values from 0 through 1.

Applies to: OverviewMap


right

The horizontal distance, in pixels, of the right side of a widget from the right side of the viewer.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton, ZoomSlider, SearchBox, LayerList, StaticCalloutBubble, OverviewMap


separatorColor

Determines the color of the separator between the title and content area in a callout bubble.

Applies to: StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


separatorThickness

The width, in pixels, of the separator line between the title and content area in a callout bubble.

Applies to: StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


shadowDirection

Controls direction that a widget's drop shadow will be cast. Set to one of "left", "center" or "right".

Applies to: SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble, OverviewMap


shadowDistance

Controls the distance, in pixels, that a widget's drop shadow will be cast.

Applies to: SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble, OverviewMap


showArrow

Controls whether the arrow will be drawn for a callout bubble.

Applies to: ClickCalloutBubble, HoverCalloutBubble


textDecoration

Sets the decoration to use for the text in a widget. Set to one of "normal" or "underline".

Applies to: SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble


themeColor

Sets the color used to highlight a widget when it is clicked or has focus.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton, ZoomSlider, SearchBox, LayerList, OverviewMap


top

The vertical distance, in pixels, of the top of a widget from the top of the viewer.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton, ZoomSlider, SearchBox, LayerList, StaticCalloutBubble, OverviewMap


trackColors

Sets the colors used to draw the track for the zoom slider widget.

Applies to: ZoomSlider


visible

Controls the visibility of a widget.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton, ZoomSlider, ClickHighlight, HoverHighlight, SearchHighlight, UserHighlight, SearchBox, LayerList, StaticCalloutBubble, ClickCalloutBubble, HoverCalloutBubble, OverviewMap


width

The width, in pixels, of a widget.

Applies to: PanRightButton, PanLeftButton, PanUpButton, PanDownButton, PanHomeButton, ZoomInButton, ZoomOutButton, ZoomSlider, SearchBox, LayerList, StaticCalloutBubble, OverviewMap


 
Products Download Purchase Resources Support About Us

 

 

Follow us on Twitter

MAPublisher
MAP LabelPro
MAP FME Auto
Geographic Imager
MAPdata
MAPdataCanada
MAPdataUSA
MAPdataWorld
MajorCitiesUSA
PDF Maps
MAPublisher
Geographic Imager
MAPdataCanada
MAPdataUSA
MAPdataWorld
MajorCitiesUSA
Order by Phone
Order by Fax
Order by Email
Order Online
Direct Download
Resellers
Resources Blog
Map Gallery
Styles & Symbols
YouTube Channel
Web Author API
User Guides and Tutorials
User Forums & FAQ
Training Courses
Contact Support
Product Activation
Retrieve License File
Renew Maintenance
Maintenance Login
History
Careers
Contact
News
Events