1/** 2 * Plugin for adding arbitrary HTML markers to a Leaflet map 3 * https://github.com/dwnoble/LeafletHtmlIcon 4 * 5 * Public domain 6 * 7 */ 8 9L.HtmlIcon = L.Icon.extend({ 10 options: { 11 /* 12 html: (String) (required) 13 iconAnchor: (Point) 14 popupAnchor: (Point) 15 */ 16 }, 17 18 initialize: function (options) { 19 L.Util.setOptions(this, options); 20 }, 21 22 createIcon: function () { 23 var div = document.createElement('div'); 24 div.innerHTML = this.options.html; 25 return div; 26 }, 27 28 createShadow: function () { 29 return null; 30 } 31});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.