PageSourceSearch

https://smetom-geeode.fr/wp-content/plugins/wp-google-maps/js/v8/text.js?ver=10.1.09%2Bpro-10.1.05

js smetom-geeode.fr collected 2026-10-02 22:58:06 UTC 2,767 bytes, 131 lines download raw bytes

1/**
2 * @namespace WPGMZA
3 * @module Text
4 * @requires WPGMZA
5 */
6jQuery(function($) {
7	
8	WPGMZA.Text = function(options)
9	{
10		if(options)
11			for(var name in options)
12				this[name] = options[name];
13	}
14	
15	WPGMZA.Text.createInstance = function(options)
16	{
17		switch(WPGMZA.settings.engine)
18		{
19			case "open-layers":
20			case "open-layers-latest":
21				return new WPGMZA.OLText(options);
22				break;
23			case "leaflet":
24			case "leaflet-azure":
25			case "leaflet-stadia":
26			case "leaflet-maptiler":
27			case "leaflet-locationiq":
28			case "leaflet-zerocost":
29				return new WPGMZA.LeafletText(options);
30				break;
31				
32			default:
33				return new WPGMZA.GoogleText(options);
34				break;
35		}
36	}
37
38	WPGMZA.Text.prototype.setPosition = function(position){
39		if(this.overlay){
40			this.overlay.setPosition(position);
41		}
42	}
43
44	WPGMZA.Text.prototype.setText = function(text){
45		if(this.overlay){
46			this.overlay.setText(text);
47		}
48	}
49
50	/**
51	 * Renders a "card" style label instead of plain text - title, optional subheading, optional
52	 * icon, styled entirely from the site's Styling (--wpgmza-component-*) CSS vars rather than
53	 * fillColor/lineColor, which don't apply to this style
54	 *
55	 * @param object content {title, subText, icon}
56	 *
57	 * @return void
58	 */
59	WPGMZA.Text.prototype.setCardContent = function(content){
60		if(this.overlay){
61			this.overlay.setCardContent(content);
62		}
63	}
64
65	WPGMZA.Text.prototype.setFontSize = function(size){
66		if(this.overlay){
67			this.overlay.setFontSize(size);
68		}
69	}
70
71	WPGMZA.Text.prototype.setFillColor = function(color){
72		if(this.overlay){
73			this.overlay.setFillColor(color);
74		}
75	}
76
77	WPGMZA.Text.prototype.setLineColor = function(color){
78		if(this.overlay){
79			this.overlay.setLineColor(color);
80		}
81	}
82
83	WPGMZA.Text.prototype.setOpacity = function(opacity){
84		if(this.overlay){
85			this.overlay.setOpacity(opacity);
86		}
87	}
88
89	WPGMZA.Text.prototype.setZIndex = function(zIndex){
90		if(this.overlay){
91			this.overlay.setZIndex(zIndex);
92		}
93	}
94
95	WPGMZA.Text.prototype.setOffset = function(x, y){
96		if(this.overlay){
97			this.overlay.setOffset(x, y);
98		}
99	}
100
101	/**
102	 * Passes the owning WPGMZA.Marker through to the overlay so it can dispatch a
103	 * "select" event on it when clicked (see marker_label_click_opens_infowindow) - only
104	 * ever set for a marker-owned label (WPGMZA.Marker.prototype.setLabel), never for a
105	 * genuine standalone Point Label.
106	 *
107	 * @param WPGMZA.Marker|undefined marker
108	 *
109	 * @return void
110	 */
111	WPGMZA.Text.prototype.setMarker = function(marker){
112		if(this.overlay){
113			this.overlay.setMarker(marker);
114		}
115	}
116
117	WPGMZA.Text.prototype.remove = function(){
118		if(this.overlay){
119			this.overlay.remove();
120		}
121	}
122
123	WPGMZA.Text.prototype.refresh = function(){
124		
125	}
126
127	WPGMZA.Text.prototype.setMap = function(map){
128		
129	}
130	
131});

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.