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

Function callback

test/openlayers/overlay/GraphicSpec.js:621–624  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

619 //1、当鼠标点击在三叶草叶子内时,得到要素,调用高亮函数
620 var innerCoors = [25.576171875, -27.158203125];
621 var callback = function (a, b) {
622 expect(b).toNotBe(null);
623 expect(a.coordinate).toBe([25.576171875, -27.158203125]);
624 };
625 graphicLayer.getSource()._forEachFeatureAtCoordinate(innerCoors, resolution, callback, evtPixel);
626 spyOn(graphicLayer, '_highLight');
627 expect(graphicLayer.getSource()._highLight).toHaveBeenCalled();

Callers 1

addFeaturesExpectFunction · 0.70

Calls 1

expectFunction · 0.85

Tested by

no test coverage detected