#
# This is the start of GPolyline encodin.
#
binaryRep =
function(x, y = round(x * 100000))
{
ans = integer()
while(TRUE) {
ans = c(ans, y%%2)
y = as.integer(y/2)
if(y < 2) {
ans = c(ans, y)
break
}
}
paste(rev(ans), collapse = "")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.