thanks to Michael and his examples i designed component.
google.maps.event.addListener( polylines[i], "click", function Clicked(event) {
for (var j = 0; j < map.polylines.length; j++) {
if (map.polylines[j].type == this.type) {
_filterParam = map.polylines[j].type;
that .firePropertiesChanged([ "filterParam" ]);
that .fireEvent("setFilters");
break;
}
}
});
....
this.filterParam = function(value) {
if (value === undefined) {
return _filterParam;
} else {
return this;
}
};
...
in .ztl
String getFilterParam() {* | ||
return this.filterParam; | ||
*} |