I've created a map that adds shapes with a label in the middle similar to this example
http://dojo.telerik.com/eXUL/4
Around the label I've put a colored rectangle
//Create the Label Rectangle Area
var draw = kendo.drawing;
var Rect = kendo.geometry.Rect;
path = draw.Path.fromRect(new Rect([labelX - 5, labelY - 2], [label.bbox().width() + 10, label.bbox().height() + 4]), {
fill: {
color: "#307496",
opacity: .8
}
});
//Render the rectangle for the label to sit on
e.layer.surface.draw(path);
// Render the label on the layer surface
e.layer.surface.draw(label);
Is there a way to add a click function to this rectangle so I can open a window when it is clicked? Similar to how this example works with the click of the triangle
http://dojo.telerik.com/