WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcaliceaunties/public_html/wp-content/plugins/wp-google-maps/js/v8/tileset-panel.js
/**
 * @namespace WPGMZA
 * @module TilesetPanel
 * @requires WPGMZA
 */
jQuery(function($) {
	
	WPGMZA.TilesetPanel = function() {
		this.element = $("#wpgmza-tileset-panel");
		if(!this.element.length) {
			return;
		}
		
		this.element.on("click", ".tileset-option", (event) => {
			this.onTilesetChange(event);

			/* Skip the "Save map to apply tileset!" reminder when Atlas
			 * Major's live preview is mounted — the live preview JS
			 * applies the tileset to the map immediately on click, so
			 * the notification would be misleading. Atlas Novus / Legacy
			 * still need the reminder since their editors can't preview
			 * the swap until the map is saved + reloaded. */
			if(!document.querySelector('.wpgmza-atlas-major .am-preview-frame')){
				WPGMZA.notification("Save map to apply tileset!", false, '.grouping.open[data-group="map-settings-themes-tileset"]', 'top-right');
			}
		});

        this.onTilesetChange();
	}

	WPGMZA.TilesetPanel.prototype.onTilesetChange = function(event){
		this.element.find('.tileset-option').removeClass('selected');

        this.element.find('.tileset-option input:checked').parent().addClass('selected');
	}
});