FATOS Developer
Developer SiteConsole
  • FATOS Developer Introduction
  • FATOS API
    • Map
      • Map control
        • Sources
        • Layers
          • Style Specification
            • Fill
            • Line
            • Symbol
            • Circle
        • Building
        • Bounds
        • Center
        • Heading
        • Flyto
        • Tilt
        • Zoom
        • Marker
          • Instance Members
        • Polyline
        • Polygon
        • Circle
        • On/Off
        • Once
        • Language
        • Theme
        • Cluster
          • Instance Members
      • Button control
      • Utilities
        • Rectangle
        • Distance
        • Area
    • Search
      • Address
      • Geocoding
      • Geofencing
      • Detail
      • Public Transport
        • Bus Route
        • Bus Route Information
        • Bus Stop Information
        • Subway Station Information
        • Subway Station Timetable
        • Public Transit POI within Radius
        • Public Transit POI on Map
        • Subway Station Transfer Information
        • Real-time Bus Location Information
        • Real-time Bus Arrival Information
    • Routing
      • Route
      • Route for truck
      • Route_v2
      • Public Transit Route Search
      • Route Graphic Data
      • Bicycle
      • Pedestrian
    • Analyze
    • Tracking
  • FATOS SDK
    • Authentication
    • Platform
      • Android
        • Start
        • Component
      • iOS
        • Start
        • Component
      • React Native
        • Start
        • Component
  • Get your API Key
  • Release Note
    • FATOS Map API
    • API Server
    • RP Server
  • Troubleshooting
    • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. FATOS API
  2. Map
  3. Map control
  4. Layers
  5. Style Specification

Fill

A filled polygon with an optional stroked border.

Paint Property

Property Name
Description
Type
Defaults

fill-antialias

Whether or not the fill should be antialiased.

boolean

true

fill-color

The color of the filled part of this layer.

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

#000000

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.

number

1

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

X

fill-translate

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

array of numbers

[0,0]

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.

String (map or viewport)

map

Layout Property

Property Name
Description
Type
Defaults

visibility

Whether this layer is displayed.

"visible":

The layer is shown.

"none":

The layer is not shown.

String( visible or none)

visible

PreviousStyle SpecificationNextLine

Last updated 3 years ago

Was this helpful?