diff --git a/js/viz/vector_map/map_layer.js b/js/viz/vector_map/map_layer.js index 20e76ea8f035..9566f8debd5c 100644 --- a/js/viz/vector_map/map_layer.js +++ b/js/viz/vector_map/map_layer.js @@ -581,7 +581,10 @@ strategiesByElementType[TYPE_MARKER] = { image: { _draw: function(ctx, figure, data) { - figure.image = ctx.renderer.image().attr({ location: "center" }).data(ctx.dataKey, data).append(figure.root); + figure.image = ctx.renderer.image(null, null, null, null, null, "center") + .attr({ "pointer-events": "visible" })//T567545 + .data(ctx.dataKey, data) + .append(figure.root); }, refresh: function(ctx, figure, data, proxy) { diff --git a/testing/tests/DevExpress.viz.vectorMap/mapLayer.strategies.tests.js b/testing/tests/DevExpress.viz.vectorMap/mapLayer.strategies.tests.js index ba1dfd977f49..6e98e3ecef7f 100644 --- a/testing/tests/DevExpress.viz.vectorMap/mapLayer.strategies.tests.js +++ b/testing/tests/DevExpress.viz.vectorMap/mapLayer.strategies.tests.js @@ -1080,14 +1080,11 @@ QUnit.test("Draw", function(assert) { pointImageStrategy.draw(this.context, figure, "test-data"); assert.deepEqual(this.renderer.g.lastCall.args, [], "root is created"); - assert.deepEqual(this.renderer.image.lastCall.args, [], "image is created"); - + assert.deepEqual(this.renderer.image.lastCall.args, [null, null, null, null, null, "center"], "image is created"); assert.strictEqual(figure.root, this.renderer.g.lastCall.returnValue, "root"); assert.strictEqual(figure.image, this.renderer.image.lastCall.returnValue, "image"); - - assert.deepEqual(figure.image.attr.lastCall.args, [{ location: "center" }], "image settings"); + assert.deepEqual(figure.image.attr.lastCall.args, [{ "pointer-events": "visible" }], "image settings");//T567545 assert.deepEqual(figure.image.data.lastCall.args, ["data-key", "test-data"], "image data"); - assert.deepEqual(figure.image.append.lastCall.args, [figure.root], "image is appended"); });