import{__decorate as e}from"tslib";import{serializable as r}from"../support/Serializable.js";import{isOpenStreetMapLayer as t}from"../utilities/_layers.js";import{LayerExtension as a,LayerExtensionSchema as s}from"./_LayerExtension.js";let i=class extends a{get layer(){return super.layer}_getSerializableProperties(){const e=super._getSerializableProperties();return{...e,layer:{...this._toPropertyDef(e.layer),default:{layerType:"OpenStreetMap"}}}}_isSupportedLayer(e){return t(e)}_createSchema(){return new l(this)}};i=e([r],i);export{i as OpenStreetMapLayerExtension};let l=class extends s{_getPropertyBindings(){return{spatialReference:{property:"spatialReference",readonly:!0}}}};l=e([r],l);