logo
API Documentation
Tutorials
Getting Started Initialization Layers Third party Controls Geometries Vector styles Measures InfoBox Utils
Releases

Documentation

Modules

  • Constants

Events

  • FEATURE_CLICK
  • FEATURE_HOVER
  • CENTER_DATE_IMAGE
  • CHANGE_MEASURE
  • CLICK
  • COMPLETE_COLLECTIONS
  • FEATURES_CLICK
  • FIND_IMAGES_LOADED
  • FINISH_MEASURE
  • MAP_INITIALIZE
  • MAP_STATUS_EVENT
  • MOVE_END
  • NO_3D_IMAGES
  • POINTER_MOVE
  • START_MEASURE
  • TILES_END_LOAD
  • TILES_START_LOAD
  • FEATURE_CLICK
  • FEATURE_HOVER

General

Classes / Controls

  • Bar
  • Button
  • Swipe
  • Toggle

Classes / Managers

  • CollectionManager
  • OverlayManager

Classes

  • Map

Classes / View

  • MapStatusView

Geometry

Classes

  • Extent
  • Feature
  • Line
  • Location
  • MultiPolygon
  • Point
  • Polygon

Classes / Readers

  • GeoJSON
  • WKT

InfoBox

Classes

  • InfoBox

Layers

Classes

  • ArcGISLayer
  • BingLayer
  • GroupLayer
  • ImageryLayer
  • OSMLayer
  • VectorLayer
  • VectorTileLayer
  • WFSLayer
  • WMSLayer
  • WMTSLayer
  • XYZLayer

Classes / Base Layers

  • BaseLayer
  • BaseVectorLayer

Measurements

Classes / Tools

  • CircleTool
  • HeightTool
  • LineTool
  • PointTool
  • PolygonTool
  • RectangleTool
  • RelativeHeightTool

Classes

  • Measure

Objects

Classes

  • Collection
  • CollectionStatus
  • Image
  • LayerCollections
  • LayerCollectionsStatus
  • MapStatus

Services

Classes

  • UserService

Styles

Classes

  • Circle
  • Fill
  • Icon
  • RegularShape
  • Stroke
  • Style
  • Text

Utils

Classes

  • Transform

Class

Stroke

Stroke(opts)

Set stroke style for vector features. Note that the defaults given are the Canvas defaults, which will be used if option is not defined. The get functions return whatever was entered in the options; they will not return the default.

Learn more about implementing stroke styles in our Polygon styles, Point styles, Point shapes styles, Feature styles, and Text styles tutorials

Constructor

# new Stroke(opts)

Initialization object

Parameters:
Name Type Attributes Default Description
opts object

Stroke layer options.

color object <optional>
null

A color definition "rgba(red, green, blue, alpha)", "rgb(red, green, blue)" and "#FFFFFF" format supported.

width number <optional>

Width

Tutorials:
  • Polygon styles
  • Point styles
  • Point shapes styles
  • Feature styles
  • Text styles

Classes

Stroke

Methods

# getColor() → {string}

Get the stroke color.

A color definition "rgba(red, green, blue, alpha)", "rgb(red, green, blue)" and "#FFFFFF" format supported.

string

# getWidth() → {number}

Get the stroke width.

Width.

number

# setColor(color)

Set the color.

Parameters:
Name Type Description
color string

A color definition "rgba(red, green, blue, alpha)", "rgb(red, green, blue)" and "#FFFFFF" format supported.

# setWidth(width)

Set the width.

Parameters:
Name Type Description
width number

Width.

Documentation generated by Vexcel Imaging