PageSourceSearch

https://www.sokube.io/wp-content/themes/localhost/pilopress/layout…/map-info-card-nemo.js?ver=1775120135

js sokube.io collected 2026-09-28 06:43:57 UTC 1,760 bytes, 66 lines download raw bytes

1jQuery(document).ready(
2    function ($) {
3
4        const $google_map = $('.map-nemo');
5        if (!$google_map.length) {
6            return;
7        }
8
9        initMap($google_map);
10
11        /**
12         * InitMap
13         *
14         * @return  object The map instance.
15         * @param $el
16         */
17        function initMap($el) {
18
19            const lat = $el.data('lat');
20            const lng = $el.data('lng');
21            const zoom = $el.data('zoom');
22            const styles = $el.data('styles');
23            const marker_img = $el.data('marker');
24            const controls = $el.data('google-map-options');
25
26            // Map arguments
27            const map_args = {
28                center: {
29                    lat: lat,
30                    lng: lng,
31                },
32                zoom: zoom,
33                styles: styles,
34                zoomControl: controls.zoom,
35                scaleControl: controls.scale,
36                mapTypeControl: controls.map_type,
37                streetViewControl: controls.street_view,
38                fullscreenControl: controls.fullscreen,
39            };
40
41            // Init map
42            const map = new google.maps.Map(
43                $el[0],
44                map_args,
45            );
46
47            // Add marker
48            new google.maps.Marker(
49                {
50                    position: {
51                        lat: lat,
52                        lng: lng,
53                    },
54                    map: map,
55                    icon: {
56                        url: marker_img,
57                    },
58                },
59            );
60
61            // Return map instance
62            return map;
63
64        }
65    },
66);

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.