UNPKG

rlayers

Version:

React Components for OpenLayers

23 lines 619 B
import { default as RBaseStyle } from './RBaseStyle'; /** * An abstract class serving as base for all styles that render an image */ export default class RImage extends RBaseStyle { /* istanbul ignore next */ create(props) { throw new Error('RImage is an abstract class'); } set(ol) { if (!this.context.style.setImage) throw new Error('Parent element does not support an image'); this.context.style.setImage(ol); } } RImage.classProps = [ 'opacity', 'rotateWithView', 'rotation', 'scale', 'displacement' ]; //# sourceMappingURL=RImage.js.map