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

Method getPrevious

src/map-tile.js:161–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159 return !this._parentEl._layerRegistry.has(this.position);
160 }
161 getPrevious() {
162 // Check if this is the first element of a sequence
163 if (this.isFirst()) {
164 return null; // No previous element available
165 }
166
167 // Since we know it's not the first, we can safely return the previous element sibling
168 return this.previousElementSibling;
169 }
170 zoomTo() {
171 let extent = this.extent;
172 let map = this.getMapEl()._map,

Callers

nothing calls this directly

Calls 1

isFirstMethod · 0.95

Tested by

no test coverage detected