Fill

A filled polygon with an optional stroked border.

Property of Paint

Property
Description
Remark

fill-antialias

Whether or not the fill should be antialiased. Default : true

boolean

fill-color

The color of the filled part of this layer. (Default : #000000)

Hex values, RGB, RGBA, HSL, HSLA, Colors Name

fill-opacity

The opacity of the entire fill layer. In contrast to the fill-color, this value will also affect the 1px stroke around the fill, if the stroke is used. between 0 and 1 inclusive. (Default : 1)

Numeric

fill-outline-color

The outline color of the fill. Matches the value of fill-color if unspecified.

Hex values, RGB, RGBA, HSL, HSLA, Colors Name

fill-translate

The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively. (Default : [0,0])

Array of numbers

fill-translate-anchor

Controls the frame of reference for fill-translate. "map":

The fill is translated relative to the map.

"viewport":

The fill is translated relative to the viewport. (Default : map)

String

(map or viewport)

Property of Layout

Property
Description
Remark

visibility

Whether this layer is displayed.

"visible":

The layer is shown.

"none":

The layer is not shown. (Default: visible)

String

(visible or none)

The MOGOS Maps API requires an API Key, which can be obtained from the MOGOS Console website or contact [email protected].

Last updated