Completed
Last Updated: 29 Jul 2019 11:29 by ADMIN
Mark
Created on: 17 Jan 2019 08:25
Category: Map
Type: Bug Report
0
Map location is not correct in OnClick event arguments
When the Map position is not on the top of the page, creating a new marker via the OnClick event argument location, the marker is not correctly positioned.
2 comments
ADMIN
Peter Milchev
Posted on: 29 Jul 2019 11:29

Hello,

The fix is available in the Latest Internal Build with version 2019.2.717: 

The official release that will include this fix is R3 2019 due in mid-September.

Regards, Peter Milchev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
ADMIN
Peter Milchev
Posted on: 17 Jan 2019 08:32
Hi,

Thank you for reporting this issue. We will try to include the fix for the next official release and meanwhile, the following workaround can be used: 

kendo.dataviz.ui.Map.fn.eventOffset= function (e) {
    var point;
    var x;
    var y;
    var offset = this.element.offset();
 
    if (e.x || e.y) {
        var field = "location";
        x = e.x[field] - offset.left;
        y = e.y[field] - offset.top;
        point = new kendo.geometry.Point(x, y);
    } else {
        var event = e.originalEvent || e;
        x = kendo.drawing.util.valueOrDefault(event.pageX, event.clientX) - offset.left;
        y = kendo.drawing.util.valueOrDefault(event.pageY, event.clientY) - offset.top;
        point = new kendo.geometry.Point(x, y);
    }
 
    return point;
}
 
As a small token of gratitude, we have updated your Telerik points.

Regards,
Peter Milchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.