filter.region = function( x, region, index=T ) {
area = region.decompose(region)
i = which( as.character(x) %in% area )
if (index) return(i) else return(x[i,])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.