Class: Photo

ol.style. Photo

Set Photo style for vector features.


new Photo(options)

Parameters:
Name Type Description
options
Properties
Name Type Description
kind default | square | round | anchored | folio
crop boolean

crop within square, default is false

radius Number

symbol size

shadow boolean

drop a shadow

stroke ol.style.Stroke
src String

image src

crossOrigin String

The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer.

offsetX Number

Horizontal offset in pixels. Default is 0.

offsetY Number

Vertical offset in pixels. Default is 0.

onload function

callback when image is loaded (to redraw the layer)

Implements:
  • ol.structs.IHasChecksum

Extends

  • ol.style.RegularShape

Methods


clone()

Clones the style.

Returns:
Type
ol.style.Photo

getChecksum()