|
@@ -39,7 +39,7 @@ export default function MapView() {
|
|
|
if (!containerRef.current || mapRef.current) return
|
|
if (!containerRef.current || mapRef.current) return
|
|
|
|
|
|
|
|
const provider = createYandexMapProvider()
|
|
const provider = createYandexMapProvider()
|
|
|
- provider.init(containerRef.current, [55.7558, 37.6173], 10)
|
|
|
|
|
|
|
+ provider.init(containerRef.current, [37.6173, 55.7558], 10)
|
|
|
mapRef.current = provider
|
|
mapRef.current = provider
|
|
|
|
|
|
|
|
if (navigator.geolocation) {
|
|
if (navigator.geolocation) {
|
|
@@ -65,7 +65,7 @@ export default function MapView() {
|
|
|
const provider = mapRef.current
|
|
const provider = mapRef.current
|
|
|
|
|
|
|
|
places.forEach((place) => {
|
|
places.forEach((place) => {
|
|
|
- provider.addMarker(place.id, place.lat, place.lng, {
|
|
|
|
|
|
|
+ provider.addMarker(place.id, place.coordinates.lat, place.coordinates.lng, {
|
|
|
type: place.type as 'place' | 'studio',
|
|
type: place.type as 'place' | 'studio',
|
|
|
title: place.title,
|
|
title: place.title,
|
|
|
onClick: () => setSelectedPlace(place),
|
|
onClick: () => setSelectedPlace(place),
|
|
@@ -142,8 +142,8 @@ function PlaceCardModal({ place, onClose }: { place: Place; onClose: () => void
|
|
|
</div>
|
|
</div>
|
|
|
<div className="flex items-center gap-4 text-sm text-white/60">
|
|
<div className="flex items-center gap-4 text-sm text-white/60">
|
|
|
<span>★ {place.rating?.toFixed(1) || 'Нет оценок'}</span>
|
|
<span>★ {place.rating?.toFixed(1) || 'Нет оценок'}</span>
|
|
|
- {place.type === 'studio' && place.hourly_rate && (
|
|
|
|
|
- <span>{place.hourly_rate} ₽/час</span>
|
|
|
|
|
|
|
+ {place.type === 'studio' && place.pricing?.hourly_rate && (
|
|
|
|
|
+ <span>{place.pricing.hourly_rate} ₽/час</span>
|
|
|
)}
|
|
)}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|