Source: mapbox/MapLayerElement.js

  1. import { LitElement } from 'lit';
  2. /**
  3. * @class MapLayerElement
  4. *
  5. * This class provides a map layer
  6. *
  7. * @example
  8. * <js-map>
  9. * <js-maplayer type="circle" source="#source"></js-maplayer>
  10. * </js-map>
  11. */
  12. export class MapLayerElement extends LitElement {
  13. static get localName() {
  14. return 'js-maplayer';
  15. }
  16. static get properties() {
  17. return {
  18. source: { type: String, reflect: true },
  19. type: { type: String, reflect: true },
  20. paint: { type: Object, reflect: true },
  21. };
  22. }
  23. }