mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 11:41:30 +03:00
af3715821b
* Update dependency maplibre-gl to v2 * update types and mocks for maplibre 2.0 * prettier + strict fix Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Kerry Archibald <kerrya@element.io>
188 lines
4.7 KiB
Text
188 lines
4.7 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<LocationViewDialog /> renders map correctly 1`] = `
|
|
<Map
|
|
centerGeoUri="geo:51.5076,-0.1276"
|
|
className="mx_LocationViewDialog_map"
|
|
id="mx_LocationViewDialog_$2"
|
|
interactive={true}
|
|
onError={[Function]}
|
|
>
|
|
<div
|
|
className="mx_Map mx_LocationViewDialog_map"
|
|
id="mx_Map_mx_LocationViewDialog_$2"
|
|
onClick={[Function]}
|
|
>
|
|
<SmartMarker
|
|
geoUri="geo:51.5076,-0.1276"
|
|
id="mx_LocationViewDialog_$2-marker"
|
|
map={
|
|
MockMap {
|
|
"_events": {
|
|
"error": [Function],
|
|
},
|
|
"_eventsCount": 1,
|
|
"_maxListeners": undefined,
|
|
"addControl": [MockFunction] {
|
|
"calls": [
|
|
[
|
|
MockAttributionControl {},
|
|
"top-right",
|
|
],
|
|
],
|
|
"results": [
|
|
{
|
|
"type": "return",
|
|
"value": undefined,
|
|
},
|
|
],
|
|
},
|
|
"fitBounds": [MockFunction],
|
|
"removeControl": [MockFunction],
|
|
"setCenter": [MockFunction] {
|
|
"calls": [
|
|
[
|
|
{
|
|
"lat": 51.5076,
|
|
"lon": -0.1276,
|
|
},
|
|
],
|
|
],
|
|
"results": [
|
|
{
|
|
"type": "return",
|
|
"value": undefined,
|
|
},
|
|
],
|
|
},
|
|
"setStyle": [MockFunction],
|
|
"zoomIn": [MockFunction],
|
|
"zoomOut": [MockFunction],
|
|
Symbol(kCapture): false,
|
|
}
|
|
}
|
|
>
|
|
<span>
|
|
<ForwardRef
|
|
id="mx_LocationViewDialog_$2-marker"
|
|
>
|
|
<div
|
|
className="mx_Marker mx_Marker_defaultColor"
|
|
id="mx_LocationViewDialog_$2-marker"
|
|
>
|
|
<OptionalTooltip>
|
|
<div
|
|
className="mx_Marker_border"
|
|
>
|
|
<div
|
|
className="mx_Marker_icon"
|
|
/>
|
|
</div>
|
|
</OptionalTooltip>
|
|
</div>
|
|
</ForwardRef>
|
|
</span>
|
|
</SmartMarker>
|
|
<ZoomButtons
|
|
map={
|
|
MockMap {
|
|
"_events": {
|
|
"error": [Function],
|
|
},
|
|
"_eventsCount": 1,
|
|
"_maxListeners": undefined,
|
|
"addControl": [MockFunction] {
|
|
"calls": [
|
|
[
|
|
MockAttributionControl {},
|
|
"top-right",
|
|
],
|
|
],
|
|
"results": [
|
|
{
|
|
"type": "return",
|
|
"value": undefined,
|
|
},
|
|
],
|
|
},
|
|
"fitBounds": [MockFunction],
|
|
"removeControl": [MockFunction],
|
|
"setCenter": [MockFunction] {
|
|
"calls": [
|
|
[
|
|
{
|
|
"lat": 51.5076,
|
|
"lon": -0.1276,
|
|
},
|
|
],
|
|
],
|
|
"results": [
|
|
{
|
|
"type": "return",
|
|
"value": undefined,
|
|
},
|
|
],
|
|
},
|
|
"setStyle": [MockFunction],
|
|
"zoomIn": [MockFunction],
|
|
"zoomOut": [MockFunction],
|
|
Symbol(kCapture): false,
|
|
}
|
|
}
|
|
>
|
|
<div
|
|
className="mx_ZoomButtons"
|
|
>
|
|
<AccessibleButton
|
|
className="mx_ZoomButtons_button"
|
|
data-test-id="map-zoom-in-button"
|
|
element="div"
|
|
onClick={[Function]}
|
|
role="button"
|
|
tabIndex={0}
|
|
title="Zoom in"
|
|
>
|
|
<div
|
|
className="mx_AccessibleButton mx_ZoomButtons_button"
|
|
data-test-id="map-zoom-in-button"
|
|
onClick={[Function]}
|
|
onKeyDown={[Function]}
|
|
onKeyUp={[Function]}
|
|
role="button"
|
|
tabIndex={0}
|
|
title="Zoom in"
|
|
>
|
|
<div
|
|
className="mx_ZoomButtons_icon"
|
|
/>
|
|
</div>
|
|
</AccessibleButton>
|
|
<AccessibleButton
|
|
className="mx_ZoomButtons_button"
|
|
data-test-id="map-zoom-out-button"
|
|
element="div"
|
|
onClick={[Function]}
|
|
role="button"
|
|
tabIndex={0}
|
|
title="Zoom out"
|
|
>
|
|
<div
|
|
className="mx_AccessibleButton mx_ZoomButtons_button"
|
|
data-test-id="map-zoom-out-button"
|
|
onClick={[Function]}
|
|
onKeyDown={[Function]}
|
|
onKeyUp={[Function]}
|
|
role="button"
|
|
tabIndex={0}
|
|
title="Zoom out"
|
|
>
|
|
<div
|
|
className="mx_ZoomButtons_icon"
|
|
/>
|
|
</div>
|
|
</AccessibleButton>
|
|
</div>
|
|
</ZoomButtons>
|
|
</div>
|
|
</Map>
|
|
`;
|