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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -