Hello,
We need to know if is possible draw dinamically layers using template tag, for example:
public layers: object[] = [
{
layerType: 'OSM',
animationDuration: 0,
markerSettings: [
{
visible: true,
template: '<div (click)="test()" style="border: 2px solid gray; background-color: red; border-radius: 40px; height:10px;width:10px;"></div>'
dataSource: [{
name: 'Manhattan, New York, USA',
latitude: 40.7488758,
longitude: -73.9730091
}],
tooltipSettings: {
visible: true,
valuePath: 'name'
}
}
]
},
];
And execute a click event in this layer template to load details of this layer in other component, we only need to know if is possible apply event click in custom template or exists and other way to detects click on a layer.
Thanks!