Creating a custom layer Creating a custom layer The following code example creates a custom layer. This example contains jQuery code.