Creating a custom map type Creating a map type with custom DOM elements The following example code creates a map type with custom DOM elements. This example contains jQuery code.