1/** 2 * Map Extras â HomeRunner Toolkit 3 * 4 * Map-provider-agnostic enhancements that work with both Google Maps and Leaflet. 5 * Wraps $.fn.homelocalExplorerMap to patch behaviors that core disables 6 * or doesn't provide. 7 * 8 * Load order: homerunner-explorer-map -> hrtk-map-extras -> homerunner-explorer 9 */ 10(function ($) { 11 "use strict"; 12 13 var originalPlugin = $.fn.homelocalExplorerMap; 14 if (!originalPlugin) return; 15 16 $.fn.homelocalExplorerMap = function (options, explorerSettings) { 17 var app = originalPlugin.call(this, options, explorerSettings); 18 var $container = this; 19 20 // Re-enable hover-highlight when map search is active. 21 // Core's mouseenter/mouseleave handlers in explorer.js bail when 22 // mapSearchActive is true, so focusMarker/blurMarker never get called. 23 // We add our own delegated handlers that always fire. 24 if (app.focusMarker && app.blurMarker) { 25 $container.on("mouseenter.hrtk", ".hfse-property-container", function () { 26 app.focusMarker($(this).data("id")); 27 }); 28 $container.on("mouseleave.hrtk", ".hfse-property-container", function () { 29 app.blurMarker($(this).data("id")); 30 }); 31 } 32 33 return app; 34 }; 35})(jQuery);
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.