PageSourceSearch

https://bialowieza.net.pl/wp-content/plugins/themeum-core/post-type/meta-box/js/map-frontend.js?ver=7.1.2

js bialowieza.net.pl collected 2026-10-02 16:58:20 UTC 1,673 bytes, 80 lines download raw bytes

1/* global google, jQuery */
2
3jQuery( function ( $ )
4{
5	'use strict';
6
7	/**
8	 * Callback function for Google Maps Lazy Load library to display map
9	 *
10	 * @return void
11	 */
12	function displayMap()
13	{
14		var $container = $( this ),
15			options = $container.data( 'map_options' );
16
17		var mapOptions = options.js_options,
18			center = new google.maps.LatLng( options.latitude, options.longitude ),
19			map;
20
21		switch ( mapOptions.mapTypeId )
22		{
23			case 'ROADMAP':
24				mapOptions.mapTypeId = google.maps.MapTypeId.ROADMAP;
25				break;
26			case 'SATELLITE':
27				mapOptions.mapTypeId = google.maps.MapTypeId.SATELLITE;
28				break;
29			case 'HYBRID':
30				mapOptions.mapTypeId = google.maps.MapTypeId.HYBRID;
31				break;
32			case 'TERRAIN':
33				mapOptions.mapTypeId = google.maps.MapTypeId.TERRAIN;
34				break;
35		}
36		mapOptions.center = center;
37
38		// Typcast zoom to a number
39		mapOptions.zoom *= 1;
40		map = new google.maps.Map( this, mapOptions );
41
42		// Set marker
43		if ( options.marker )
44		{
45			var marker = new google.maps.Marker( {
46				position: center,
47				map     : map
48			} );
49
50			// Set marker title
51			if ( options.marker_title )
52			{
53				marker.setTitle( options.marker_title );
54			}
55
56			// Set marker icon
57			if ( options.marker_icon )
58			{
59				marker.setIcon( options.marker_icon );
60			}
61		}
62
63		// Set info window
64		if ( options.info_window )
65		{
66			var infoWindow = new google.maps.InfoWindow( {
67				content : options.info_window,
68				minWidth: 200
69			} );
70
71			google.maps.event.addListener( marker, 'click', function ()
72			{
73				infoWindow.open( map, marker );
74			} );
75		}
76	}
77
78	// Loop through all map instances and display them
79	$( '.rwmb-map-canvas' ).each( displayMap );
80} );

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.