PageSourceSearch

https://www.bgcgh.ca/wp-content/plugins/wp-google-maps/js/v8/leafl…?ver=10.0.09+pro-10.0.07

js bgcgh.ca collected 2026-10-06 18:40:36 UTC 955 bytes, 39 lines download raw bytes

1/**
2 * @namespace WPGMZA
3 * @module LeafletThemeEditor
4 * @requires WPGMZA.EventDispatcher
5 */
6jQuery(function($) {
7	
8	WPGMZA.LeafletThemeEditor = function()
9	{
10		var self = this;
11		
12		WPGMZA.EventDispatcher.call(this);
13		
14		this.element = $("#wpgmza-leaflet-theme-editor");
15		
16		if(!this.element.length){
17			console.warn("No element to initialise theme editor on");
18			return;
19		}
20
21		this.mapElement = WPGMZA.maps[0].element;
22
23		$(this.element).find('input[name="wpgmza_leaflet_tile_filter"]').on('change', function(event){
24			self.onFilterChange(event.currentTarget);
25		});	
26	}
27	
28	WPGMZA.extend(WPGMZA.LeafletThemeEditor, WPGMZA.EventDispatcher);
29
30	WPGMZA.LeafletThemeEditor.prototype.onFilterChange = function(context){
31		if(context instanceof HTMLInputElement){
32			const value = $(context).val();
33
34			if(this.mapElement){
35            	$(this.mapElement).css('--wpgmza-leaflet-tile-filter', value);
36			}
37		}
38	}
39});

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.