Skip to content
Snippets Groups Projects

feat: new lateral popup design

Merged Marta Fernandez requested to merge imp/slider-popup-design into release/lateral-presenter
@@ -19,9 +19,9 @@ import SliderPopup from 'slimComponents/SliderPopup'
import { MobileContext } from 'context/mobileContext'
import { SliderPopupContext } from 'context/sliderPopupContext'
const SLICE_LAT = 0.05
const SLICE_LANG = 0.55
const SLICE_LAT = 0.005
const SLICE_LANG = 0.035
const DEFAULT_ZOOM = 13
/**
* Set default Leaflet icon place
* Not used but is the way to let Leaflet know where
@@ -133,7 +133,13 @@ const MapWrapperData = ({
}
const onClickPlace = (place: PlaceType) => {
map.flyTo([Number(place.lat) + SLICE_LAT, Number(place.lng) + SLICE_LANG])
map.flyTo(
[
Number(place.lat) + (isMobile ? 0 : SLICE_LAT),
Number(place.lng) + (isMobile ? 0 : SLICE_LANG)
],
DEFAULT_ZOOM
)
onOpenPopup(place)
}
Loading