PageSourceSearch

https://parapijos.lt/src/map/mapManager.js?v028

js parapijos.lt collected 2026-10-02 00:22:02 UTC 640 bytes, 24 lines download raw bytes

1import { getMapOptions } from '../config/map.js?v028';
2import { MAP_DEFAULTS } from '../config/constants.js?v028';
3
4let map = null;
5
6export function getMap() {
7  return map;
8}
9
10export function initMap(position) {
11  const options = getMapOptions(position);
12  map = new google.maps.Map(document.getElementById('map'), options);
13  return map;
14}
15
16export function recenter(position) {
17  if (!position || !position.coords) {
18    map.setCenter(MAP_DEFAULTS.center);
19    map.setZoom(MAP_DEFAULTS.zoom);
20  } else {
21    map.setCenter({ lat: position.coords.latitude, lng: position.coords.longitude });
22    map.setZoom(MAP_DEFAULTS.locateZoom);
23  }
24}

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.