MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / extent

Method extent

src/layer.js:75–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 }
74
75 get extent() {
76 // calculate the bounds of all content, return it.
77 if (this._layer) {
78 this._layer._calculateBounds();
79 }
80 return this._layer
81 ? Object.assign(
82 Util._convertAndFormatPCRS(
83 this._layer.bounds,
84 M[this.getProjection()],
85 this.getProjection()
86 ),
87 { zoom: this._layer.zoomBounds }
88 )
89 : null;
90 }
91 attributeChangedCallback(name, oldValue, newValue) {
92 if (this.#hasConnected /* jshint ignore:line */) {
93 switch (name) {

Callers

nothing calls this directly

Calls 2

getProjectionMethod · 0.95
_calculateBoundsMethod · 0.80

Tested by

no test coverage detected