MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / evZooms

Method evZooms

src/common/style/CartoCSS.js:4364–4372  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

4362 // Zooms can use variables. This replaces CartoCSS.Tree.Zoom objects on selectors
4363 // with simple bit-arrays that we can compare easily.
4364 evZooms(env) {
4365 for (var i = 0; i < this.selectors.length; i++) {
4366 var zval = CartoCSS.Tree.Zoom.all;
4367 for (var z = 0; z < this.selectors[i].zoom.length; z++) {
4368 zval = this.selectors[i].zoom[z].ev(env).zoom;
4369 }
4370 this.selectors[i].zoom = zval;
4371 }
4372 }
4373
4374 flatten(result, parents, env) {
4375 var selectors = [], i, j;

Callers 1

flattenMethod · 0.95

Calls 1

evMethod · 0.45

Tested by

no test coverage detected