diff --git a/packages/cypress/src/integration/map.spec.ts b/packages/cypress/src/integration/map.spec.ts index aabe3706eb..13ab8c76cc 100644 --- a/packages/cypress/src/integration/map.spec.ts +++ b/packages/cypress/src/integration/map.spec.ts @@ -127,14 +127,6 @@ describe('[Map]', () => { cy.intercept(urlLondon).as('londonSearch') cy.wait('@londonSearch') cy.contains('London, Greater London, England, United Kingdom').click() - - cy.step('WorldViewButton enabled when zoomed in') - cy.get('[data-cy=WorldViewButton').click() - cy.wait(1000) - cy.get('[data-cy=WorldViewButton-disabled') - - cy.step('LocationViewButton visable and clickable') - cy.get('[data-cy="LocationViewButton"]').click() }) it("Doesn't show member pins when config is set", () => { diff --git a/src/pages/Maps/Content/MapView/MapContainer.tsx b/src/pages/Maps/Content/MapView/MapContainer.tsx index d82d91ddd6..222de342eb 100644 --- a/src/pages/Maps/Content/MapView/MapContainer.tsx +++ b/src/pages/Maps/Content/MapView/MapContainer.tsx @@ -107,8 +107,6 @@ export const MapContainer = (props: IProps) => { > onBlur: () => void onPinClick: (IMapPin) => void @@ -28,14 +25,10 @@ interface IProps { zoom: number } -const ZOOM_OUT_TOOLTIP = 'Zoom out to world view' - export const MapView = (props: IProps) => { const { allPins, center, - initialCenter, - initialZoom, mapRef, onBlur, onPinClick, @@ -47,15 +40,6 @@ export const MapView = (props: IProps) => { zoom, } = props - const buttonStyle = { - backgroundColor: 'white', - borderRadius: 99, - padding: 4, - ':hover': { - backgroundColor: 'lightgray', - }, - } - const handleLocationChange = () => { if (mapRef.current) { const boundaries = mapRef.current.leafletElement.getBounds() @@ -73,8 +57,6 @@ export const MapView = (props: IProps) => { } }, [mapRef]) - const isWorldViewButtonDisabled = zoom === initialZoom - return ( { }} > - -