Skip to content

Commit

Permalink
remove obsolete MapApp component
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesscottbrown committed Dec 20, 2024
1 parent a3726bf commit f24b4a5
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 91 deletions.
5 changes: 5 additions & 0 deletions .changeset/delete-mapapp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ldn-viz/maps': major
---

REMOVED: removed `MappApp` component, which was replaced by `AppShell`
1 change: 0 additions & 1 deletion packages/maps/src/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Map
export * from './map/Map.svelte';
export { default as Map } from './map/Map.svelte';
export { default as MapApp } from './map/MapApp.svelte';

// Controls
export { default as MapControlFullscreen } from './mapControlFullscreen/MapControlFullscreen.svelte';
Expand Down
61 changes: 0 additions & 61 deletions packages/maps/src/lib/map/MapApp.svelte

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import { Template, Story } from '@storybook/addon-svelte-csf';
import * as os_light_vts from '../themes/os_light_vts.json';
import MapApp from '../map/MapApp.svelte';
import Map, { appendOSKeyToUrl } from '../map/Map.svelte';
import MapControlGroup from '../mapControlGroup/MapControlGroup.svelte';
Expand All @@ -32,7 +31,7 @@
</Template>

<Story name="Zooming to borough">
<MapApp>
<div class="w-[100dvw] h-[100dvh]">
<Map
options={{
style: os_light_vts,
Expand All @@ -46,5 +45,5 @@

<BoroughsContextLayer />
</Map>
</MapApp>
</div>
</Story>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { Meta, Story, Template } from '@storybook/addon-svelte-csf';
import Map, { appendOSKeyToUrl } from '../map/Map.svelte';
import MapApp from '../map/MapApp.svelte';
import * as os_light_vts from '../themes/os_light_vts.json';
import MapControlFullscreen from '../mapControlFullscreen/MapControlFullscreen.svelte';
Expand All @@ -24,7 +23,7 @@
</Template>

<Story name="Fullscreen Button">
<MapApp>
<div class="w-[100dvw] h-[100dvh]">
<div class="text-color-text-primary space-y-4 m-2">
<p>
The fullscreen button is usually positioned in the bottom left corner above the refresh page
Expand All @@ -49,5 +48,5 @@
<MapControlFullscreen />
</MapControlGroup>
</Map>
</MapApp>
</div>
</Story>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { Meta, Story, Template } from '@storybook/addon-svelte-csf';
import Map, { appendOSKeyToUrl } from '../map/Map.svelte';
import MapApp from '../map/MapApp.svelte';
import * as os_light_vts from '../themes/os_light_vts.json';
import MapControlFullscreen from '../mapControlFullscreen/MapControlFullscreen.svelte';
Expand All @@ -29,7 +28,7 @@
</Template>

<Story name="Positioning labels">
<MapApp>
<div class="w-[100dvw] h-[100dvh]">
<Map
options={{
style: os_light_vts,
Expand Down Expand Up @@ -58,11 +57,11 @@
</p>
</div>
</Map>
</MapApp>
</div>
</Story>

<Story name="Positioning controls">
<MapApp>
<div class="w-[100dvw] h-[100dvh]">
<Map
options={{
style: os_light_vts,
Expand Down Expand Up @@ -90,11 +89,11 @@
</p>
</div>
</Map>
</MapApp>
</div>
</Story>

<Story name="Standard Layout">
<MapApp>
<div class="w-[100dvw] h-[100dvh]">
<Map
options={{
style: os_light_vts,
Expand Down Expand Up @@ -135,5 +134,5 @@
<MapControlPan />
</MapControlGroup>
</Map>
</MapApp>
</div>
</Story>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import { Template, Story } from '@storybook/addon-svelte-csf';
import * as os_light_vts from '../themes/os_light_vts.json';
import MapApp from '../map/MapApp.svelte';
import Map, { appendOSKeyToUrl } from '../map/Map.svelte';
import MapControlGroup from '../mapControlGroup/MapControlGroup.svelte';
Expand All @@ -37,7 +36,7 @@
</Template>

<Story name="Location Search">
<MapApp>
<div class="w-[100dvw] h-[100dvh]">
<Map
options={{
style: os_light_vts,
Expand All @@ -48,11 +47,11 @@
<MapControlLocationSearch {adapter} {onSearchError} />
</MapControlGroup>
</Map>
</MapApp>
</div>
</Story>

<Story name="Location Search - custom placeholder">
<MapApp>
<div class="w-[100dvw] h-[100dvh]">
<Map
options={{
style: os_light_vts,
Expand All @@ -67,11 +66,11 @@
/>
</MapControlGroup>
</Map>
</MapApp>
</div>
</Story>

<Story name="Hidden Geolocator">
<MapApp>
<div class="w-[100dvw] h-[100dvh]">
<Map
options={{
style: os_light_vts,
Expand All @@ -82,5 +81,5 @@
<MapControlLocationSearch {adapter} {onSearchError} hideGeolocator />
</MapControlGroup>
</Map>
</MapApp>
</div>
</Story>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { Meta, Story, Template } from '@storybook/addon-svelte-csf';
import Map, { appendOSKeyToUrl } from '../map/Map.svelte';
import MapApp from '../map/MapApp.svelte';
import * as os_light_vts from '../themes/os_light_vts.json';
import MapControlGroup from '../mapControlGroup/MapControlGroup.svelte';
Expand All @@ -24,7 +23,7 @@
</Template>

<Story name="Pan Buttons">
<MapApp>
<div class="w-[100dvw] h-[100dvh]">
<div class="text-color-text-primary space-y-4 m-2">
<p>
The zoom buttons are usually positioned in the top left corner under the location search.
Expand Down Expand Up @@ -54,5 +53,5 @@
<MapControlPan />
</MapControlGroup>
</Map>
</MapApp>
</div>
</Story>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { Meta, Story, Template } from '@storybook/addon-svelte-csf';
import Map, { appendOSKeyToUrl } from '../map/Map.svelte';
import MapApp from '../map/MapApp.svelte';
import * as os_light_vts from '../themes/os_light_vts.json';
import MapControlGroup from '../mapControlGroup/MapControlGroup.svelte';
Expand All @@ -24,7 +23,7 @@
</Template>

<Story name="Refresh Button">
<MapApp>
<div class="w-[100dvw] h-[100dvh]">
<div class="text-color-text-primary space-y-4 m-2">
<p>
The refresh page button is usually positioned in the bottom left corner under the fullscreen
Expand All @@ -42,5 +41,5 @@
<MapControlRefresh />
</MapControlGroup>
</Map>
</MapApp>
</div>
</Story>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { Meta, Story, Template } from '@storybook/addon-svelte-csf';
import Map, { appendOSKeyToUrl } from '../map/Map.svelte';
import MapApp from '../map/MapApp.svelte';
import * as os_light_vts from '../themes/os_light_vts.json';
import MapControlGroup from '../mapControlGroup/MapControlGroup.svelte';
Expand All @@ -24,7 +23,7 @@
</Template>

<Story name="Zoom Buttons">
<MapApp>
<div class="w-[100dvw] h-[100dvh]">
<div class="text-color-text-primary space-y-4 m-2">
<p>
The zoom buttons are usually positioned in the top left corner under the location search.
Expand Down Expand Up @@ -54,5 +53,5 @@
<MapControlZoom />
</MapControlGroup>
</Map>
</MapApp>
</div>
</Story>

0 comments on commit f24b4a5

Please sign in to comment.