import type {LngLat, YMapLocationRequest} from '@yandex/ymaps3-types'; import type {YMapDefaultMarkerProps} from '@yandex/ymaps3-default-ui-theme'; const button = document.getElementById('app'); // 2. Считываем данные через свойство dataset const lat = button.dataset.lat; // '42' (всегда возвращается строка) const lon = button.dataset.lon; export const LOCATION: YMapLocationRequest = { center: [lon, lat ], // starting position [lng, lat] zoom: 14.5 // starting zoom }; export const FIRST_MARKER_PROPS: {iconName: YMapDefaultMarkerProps['iconName']; coordinates: LngLat} = { iconName: 'medical', coordinates: [ lon , lat] };