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

Method getPrevious

src/map-feature.js:303–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301 return !this._parentEl._layerRegistry.has(this.position);
302 }
303 getPrevious() {
304 // Check if this is the first element of a sequence
305 if (this.isFirst()) {
306 return null; // No previous element available
307 }
308
309 // Since we know it's not the first, we can safely return the previous element sibling
310 return this.previousElementSibling;
311 }
312 _createOrGetFeatureLayer() {
313 // Wait for parent layer to be ready before proceeding
314 this._parentEl

Callers

nothing calls this directly

Calls 1

isFirstMethod · 0.95

Tested by

no test coverage detected