MCPcopy Create free account
hub / github.com/Maps4HTML/MapML.js / extent

Method extent

src/map-link.js:139–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 }
138 }
139 get extent() {
140 // calculate the bounds of content, return it.
141 // _templateVars existence happens for both templated layers and query links
142 return this._templateVars
143 ? Object.assign(
144 Util._convertAndFormatPCRS(
145 this.getBounds(),
146 M[this.parentExtent.units],
147 this.parentExtent.units
148 ),
149 { zoom: this.getZoomBounds() }
150 )
151 : null;
152 }
153 zoomTo() {
154 let extent = this.extent;
155 if (!extent) return;

Callers

nothing calls this directly

Calls 2

getBoundsMethod · 0.95
getZoomBoundsMethod · 0.95

Tested by

no test coverage detected