1OpenLayers.Marker.Html=OpenLayers.Class(OpenLayers.Marker.Box,{ 2 3 initialize: function(lonlat, content, borderColor, borderWidth, backgroundColor) { 4 5 borderColor = borderColor?borderColor:"transparent"; 6 borderWidth = borderWidth?borderWidth:0; 7 8 OpenLayers.Marker.Box.prototype.initialize.apply(this, [ 9 new OpenLayers.Bounds(lonlat.lon, lonlat.lat, lonlat.lon, lonlat.lat), 10 borderColor, borderWidth]); 11 this.setContent(content); 12 this.div.style.width='auto'; 13 this.div.style.height='auto'; 14 this.div.style.backgroundColor=backgroundColor?backgroundColor:"transparent"; 15 }, 16 17 setContent: function (content) { 18 19 this.div.innerHTML=content+''; 20 this.display(!!content); 21 }, 22 23 draw: function(px,sz){ 24 25 var pxl = new OpenLayers.Pixel(px.x-(60/2),px.y-59); 26 OpenLayers.Util.modifyDOMElement (this.div,null,pxl); 27 return this.div; 28 }, 29 30 CLASS_NAME: "OpenLayers.Marker.Html" 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.