Colon in javascript callback -
i'm using data layer on google maps point geometries use same coordinates. access of features @ given coordinate i'm trying use port of overlappingmarkerspiderfier data layer instead of markers called overlappingfeaturespiderfier.
i'm have problems adding click handler data layer. in documentation calls for:
ofs.addlistener("click", function(event: google.maps.data.mouseevent) { var thefeaturethatwasclicked = event.feature; } besides missing parenthesis, can't figure out what's going on colon in callback. ideas?
the colon syntax there typescript type annotation.
to use vanilla js, put function(event).
Comments
Post a Comment