MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / _getInExtent

Function _getInExtent

src/leaflet/overlay/FGBLayer.js:158–169  ·  view source on GitHub ↗
(extent)

Source from the content-addressed store, hash-verified

156 return extent1[0] <= extent2[0] && extent2[2] <= extent1[2] && extent1[1] <= extent2[1] && extent2[3] <= extent1[3];
157 },
158 _getInExtent(extent) {
159 const bbox = {
160 minX: extent[0],
161 minY: extent[1],
162 maxX: extent[2],
163 maxY: extent[3]
164 };
165 const items = this.loadedExtentsRtree_.search(bbox);
166 return items.map(function (item) {
167 return item.value;
168 });
169 },
170 _forEachInExtent(extent, callback) {
171 return this._forEach(this._getInExtent(extent), callback);
172 },

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
searchMethod · 0.45

Tested by

no test coverage detected