`\n * element instead of an image. Inherits from `Icon` but ignores the `iconUrl` and shadow options.\n *\n * @example\n * ```js\n * var myIcon = L.divIcon({className: 'my-div-icon'});\n * // you can set .my-div-icon styles in CSS\n *\n * L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);\n * ```\n *\n * By default, it has a 'leaflet-div-icon' CSS class and is styled as a little white square with a shadow.\n */\n\n var DivIcon = Icon.extend({\n options: {\n // @section\n // @aka DivIcon options\n iconSize: [12, 12],\n // also can be set through CSS\n // iconAnchor: (Point),\n // popupAnchor: (Point),\n // @option html: String|HTMLElement = ''\n // Custom HTML code to put inside the div element, empty by default. Alternatively,\n // an instance of `HTMLElement`.\n html: false,\n // @option bgPos: Point = [0, 0]\n // Optional relative position of the background, in pixels\n bgPos: null,\n className: 'leaflet-div-icon'\n },\n createIcon: function (oldIcon) {\n var div = oldIcon && oldIcon.tagName === 'DIV' ? oldIcon : document.createElement('div'),\n options = this.options;\n\n if (options.html instanceof Element) {\n empty(div);\n div.appendChild(options.html);\n } else {\n div.innerHTML = options.html !== false ? options.html : '';\n }\n\n if (options.bgPos) {\n var bgPos = toPoint(options.bgPos);\n div.style.backgroundPosition = -bgPos.x + 'px ' + -bgPos.y + 'px';\n }\n\n this._setIconStyles(div, 'icon');\n\n return div;\n },\n createShadow: function () {\n return null;\n }\n }); // @factory L.divIcon(options: DivIcon options)\n // Creates a `DivIcon` instance with the given options.\n\n function divIcon(options) {\n return new DivIcon(options);\n }\n\n Icon.Default = IconDefault;\n /*\n * @class GridLayer\n * @inherits Layer\n * @aka L.GridLayer\n *\n * Generic class for handling a tiled grid of HTML elements. This is the base class for all tile layers and replaces `TileLayer.Canvas`.\n * GridLayer can be extended to create a tiled grid of HTML elements like `