@local-logic/maps 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/index-B43MtiHH.js +30 -0
- package/dist/index-BAAE2pMq.js +64 -0
- package/dist/index-BHjgd5HB.js +29 -0
- package/dist/index-BZ2605rA.js +39 -0
- package/dist/index-B_LO5X9C.js +46 -0
- package/dist/index-BbrOUWDy.js +29 -0
- package/dist/index-Bd-X-1Gd.js +42 -0
- package/dist/index-CPq7k7F4.js +63 -0
- package/dist/index-CTk5bvm9.js +155 -0
- package/dist/index-CXLLvdx4.js +670 -0
- package/dist/index-CXjxZmYt.js +144 -0
- package/dist/index-DHw9gU4K.js +29 -0
- package/dist/index-DVitM43i.js +137 -0
- package/dist/index-J1MKzGEM.js +31 -0
- package/dist/index-qqbvBkdn.js +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +4 -0
- package/dist/index.modern-EsUgbhzI.js +908 -0
- package/dist/index.umd.js +3181 -0
- package/dist/logo-control-NE-LlsRy.js +607 -0
- package/dist/mapbox-gl-D58OubwB.js +32266 -0
- package/dist/maplibre-gl-CfOZKUDd.js +20722 -0
- package/dist/scale-control-CyJd4u6j.js +716 -0
- package/dist/src/components/Map/Root/BaseMap/Empty/index.d.ts +3 -0
- package/dist/src/components/Map/Root/BaseMap/Empty/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/BaseMap/Google/index.d.ts +11 -0
- package/dist/src/components/Map/Root/BaseMap/Google/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/BaseMap/Mapbox/index.d.ts +4 -0
- package/dist/src/components/Map/Root/BaseMap/Mapbox/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/BaseMap/Maptiler/index.d.ts +4 -0
- package/dist/src/components/Map/Root/BaseMap/Maptiler/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/BaseMap/index.d.ts +4 -0
- package/dist/src/components/Map/Root/BaseMap/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/BaseMap/styles.d.ts +2 -0
- package/dist/src/components/Map/Root/BaseMap/styles.d.ts.map +1 -0
- package/dist/src/components/Map/Root/BaseMap/types.d.ts +3 -0
- package/dist/src/components/Map/Root/BaseMap/types.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Layers/Google/index.d.ts +4 -0
- package/dist/src/components/Map/Root/Layers/Google/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Layers/Mapbox/index.d.ts +4 -0
- package/dist/src/components/Map/Root/Layers/Mapbox/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Layers/Maptiler/index.d.ts +4 -0
- package/dist/src/components/Map/Root/Layers/Maptiler/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Layers/index.d.ts +4 -0
- package/dist/src/components/Map/Root/Layers/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Layers/types.d.ts +13 -0
- package/dist/src/components/Map/Root/Layers/types.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Layers/utils.d.ts +6 -0
- package/dist/src/components/Map/Root/Layers/utils.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Markers/Cluster/index.d.ts +6 -0
- package/dist/src/components/Map/Root/Markers/Cluster/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Markers/Cluster/styles.d.ts +2 -0
- package/dist/src/components/Map/Root/Markers/Cluster/styles.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Markers/Google/index.d.ts +4 -0
- package/dist/src/components/Map/Root/Markers/Google/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Markers/Mapbox/index.d.ts +4 -0
- package/dist/src/components/Map/Root/Markers/Mapbox/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Markers/Maptiler/index.d.ts +4 -0
- package/dist/src/components/Map/Root/Markers/Maptiler/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Markers/index.d.ts +4 -0
- package/dist/src/components/Map/Root/Markers/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Markers/styles.d.ts +5 -0
- package/dist/src/components/Map/Root/Markers/styles.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Markers/types.d.ts +28 -0
- package/dist/src/components/Map/Root/Markers/types.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Popup/Google/index.d.ts +4 -0
- package/dist/src/components/Map/Root/Popup/Google/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Popup/Mapbox/index.d.ts +4 -0
- package/dist/src/components/Map/Root/Popup/Mapbox/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Popup/Maptiler/index.d.ts +4 -0
- package/dist/src/components/Map/Root/Popup/Maptiler/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Popup/index.d.ts +4 -0
- package/dist/src/components/Map/Root/Popup/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Popup/styles.d.ts +2 -0
- package/dist/src/components/Map/Root/Popup/styles.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Popup/types.d.ts +10 -0
- package/dist/src/components/Map/Root/Popup/types.d.ts.map +1 -0
- package/dist/src/components/Map/Root/constants.d.ts +7 -0
- package/dist/src/components/Map/Root/constants.d.ts.map +1 -0
- package/dist/src/components/Map/Root/context.d.ts +11 -0
- package/dist/src/components/Map/Root/context.d.ts.map +1 -0
- package/dist/src/components/Map/Root/index.d.ts +11 -0
- package/dist/src/components/Map/Root/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/types.d.ts +26 -0
- package/dist/src/components/Map/Root/types.d.ts.map +1 -0
- package/dist/src/components/Map/index.d.ts +2 -0
- package/dist/src/components/Map/index.d.ts.map +1 -0
- package/dist/src/components/Map/index.stories.d.ts +8 -0
- package/dist/src/components/Map/index.stories.d.ts.map +1 -0
- package/dist/src/components/Map/index.test.d.ts +2 -0
- package/dist/src/components/Map/index.test.d.ts.map +1 -0
- package/dist/src/components/Map/storybook-data.d.ts +18 -0
- package/dist/src/components/Map/storybook-data.d.ts.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/{src/components/Map/Root/Popup/styles.ts → dist/styles-uPzJnzVS.js} +4 -1
- package/dist/utils-YqJg0vBb.js +25 -0
- package/package.json +14 -2
- package/.env.example +0 -3
- package/.storybook/defaults.ts +0 -40
- package/.storybook/globals.css +0 -40
- package/.storybook/main.ts +0 -19
- package/.storybook/preview.tsx +0 -27
- package/CHANGELOG.md +0 -33
- package/eslint.config.mjs +0 -46
- package/lint-staged.config.cjs +0 -4
- package/postcss.config.cjs +0 -6
- package/prettier.config.cjs +0 -1
- package/src/components/Map/Root/BaseMap/Empty/index.tsx +0 -7
- package/src/components/Map/Root/BaseMap/Google/index.tsx +0 -96
- package/src/components/Map/Root/BaseMap/Mapbox/index.tsx +0 -66
- package/src/components/Map/Root/BaseMap/Maptiler/index.tsx +0 -59
- package/src/components/Map/Root/BaseMap/index.tsx +0 -34
- package/src/components/Map/Root/BaseMap/styles.ts +0 -1
- package/src/components/Map/Root/BaseMap/types.ts +0 -3
- package/src/components/Map/Root/Layers/Google/index.tsx +0 -97
- package/src/components/Map/Root/Layers/Mapbox/index.tsx +0 -74
- package/src/components/Map/Root/Layers/Maptiler/index.tsx +0 -74
- package/src/components/Map/Root/Layers/index.tsx +0 -32
- package/src/components/Map/Root/Layers/types.ts +0 -15
- package/src/components/Map/Root/Layers/utils.ts +0 -64
- package/src/components/Map/Root/Markers/Cluster/index.tsx +0 -27
- package/src/components/Map/Root/Markers/Cluster/styles.ts +0 -11
- package/src/components/Map/Root/Markers/Google/index.tsx +0 -49
- package/src/components/Map/Root/Markers/Mapbox/index.tsx +0 -52
- package/src/components/Map/Root/Markers/Maptiler/index.tsx +0 -52
- package/src/components/Map/Root/Markers/index.tsx +0 -81
- package/src/components/Map/Root/Markers/styles.ts +0 -39
- package/src/components/Map/Root/Markers/types.ts +0 -32
- package/src/components/Map/Root/Popup/Google/index.tsx +0 -57
- package/src/components/Map/Root/Popup/Google/popup.css +0 -15
- package/src/components/Map/Root/Popup/Mapbox/index.tsx +0 -36
- package/src/components/Map/Root/Popup/Mapbox/popup.css +0 -15
- package/src/components/Map/Root/Popup/Maptiler/index.tsx +0 -37
- package/src/components/Map/Root/Popup/Maptiler/popup.css +0 -15
- package/src/components/Map/Root/Popup/index.tsx +0 -32
- package/src/components/Map/Root/Popup/types.ts +0 -20
- package/src/components/Map/Root/constants.ts +0 -6
- package/src/components/Map/Root/context.tsx +0 -15
- package/src/components/Map/Root/index.tsx +0 -30
- package/src/components/Map/Root/types.ts +0 -30
- package/src/components/Map/index.stories.tsx +0 -134
- package/src/components/Map/index.test.tsx +0 -16
- package/src/components/Map/index.tsx +0 -1
- package/src/components/Map/storybook-data.ts +0 -255
- package/src/index.ts +0 -1
- package/tailwind.config.cjs +0 -1
- package/tsconfig.json +0 -14
- package/tsconfig.node.json +0 -8
- package/vite-env.d.ts +0 -13
- package/vite.config.ts +0 -46
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import React, { useState, useMemo } from "react";
|
|
2
|
-
import { StoryFn, Meta } from "@storybook/react";
|
|
3
|
-
import { mapDefaults as storybookMapDefaults } from "~/../.storybook/defaults";
|
|
4
|
-
import { defaultMapValues } from "./Root/constants";
|
|
5
|
-
import {
|
|
6
|
-
Root as MapRoot,
|
|
7
|
-
BaseMap,
|
|
8
|
-
Markers,
|
|
9
|
-
Popup,
|
|
10
|
-
Layers,
|
|
11
|
-
type RootProps,
|
|
12
|
-
type MarkerPoint,
|
|
13
|
-
} from "./Root";
|
|
14
|
-
import { themes, markerList, layerSources } from "./storybook-data";
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
title: "Map",
|
|
18
|
-
component: MapRoot,
|
|
19
|
-
argTypes: storybookMapDefaults,
|
|
20
|
-
} as Meta<RootProps>;
|
|
21
|
-
|
|
22
|
-
const defaultValues = {
|
|
23
|
-
...defaultMapValues,
|
|
24
|
-
center: {
|
|
25
|
-
latitude: 45.5282164,
|
|
26
|
-
longitude: -73.5978527,
|
|
27
|
-
},
|
|
28
|
-
zoomPosition: "bottom-right" as RootProps["zoomPosition"],
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const Template: StoryFn<RootProps> = (args) => {
|
|
32
|
-
const [activeMarker, setActiveMarker] = useState<MarkerPoint | undefined>(undefined);
|
|
33
|
-
|
|
34
|
-
const handleMarkerClick = (markers: MarkerPoint) => {
|
|
35
|
-
if (
|
|
36
|
-
activeMarker?.latitude === markers.latitude &&
|
|
37
|
-
activeMarker?.longitude === markers.longitude
|
|
38
|
-
) {
|
|
39
|
-
setActiveMarker(undefined);
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
setActiveMarker(markers);
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const popupContent = useMemo(() => {
|
|
47
|
-
if (typeof activeMarker?.markers === "undefined") {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
if (activeMarker.markers.length === 1) {
|
|
52
|
-
return (
|
|
53
|
-
<>
|
|
54
|
-
{activeMarker.markers[0].icon &&
|
|
55
|
-
React.createElement(activeMarker.markers[0].icon, { className: "block" })}
|
|
56
|
-
<strong>{activeMarker.markers[0]?.name}</strong>
|
|
57
|
-
<p>
|
|
58
|
-
{activeMarker?.latitude}, {activeMarker?.longitude}
|
|
59
|
-
</p>
|
|
60
|
-
</>
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if (activeMarker.markers.length > 1) {
|
|
65
|
-
return activeMarker.markers.map((marker) => (
|
|
66
|
-
<div key={marker.id} className="flex flex-row gap-y-3">
|
|
67
|
-
<button
|
|
68
|
-
className="rounded px-3 py-2 border border-primary-100"
|
|
69
|
-
onClick={() =>
|
|
70
|
-
handleMarkerClick({
|
|
71
|
-
id: marker.id,
|
|
72
|
-
latitude: marker.latitude,
|
|
73
|
-
longitude: marker.longitude,
|
|
74
|
-
markers: [marker],
|
|
75
|
-
})
|
|
76
|
-
}
|
|
77
|
-
>
|
|
78
|
-
{marker.icon && React.createElement(marker.icon, { className: "inline mr-1" })}
|
|
79
|
-
<strong>{marker.name}</strong>
|
|
80
|
-
</button>
|
|
81
|
-
</div>
|
|
82
|
-
));
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return null;
|
|
86
|
-
}, [activeMarker]);
|
|
87
|
-
|
|
88
|
-
return (
|
|
89
|
-
<div className="w-full h-[calc(100vh-30px)]">
|
|
90
|
-
<MapRoot {...args}>
|
|
91
|
-
<BaseMap>
|
|
92
|
-
<Layers sources={layerSources} />
|
|
93
|
-
<Markers markers={markerList} onClick={handleMarkerClick} />
|
|
94
|
-
|
|
95
|
-
<Popup
|
|
96
|
-
latitude={activeMarker?.latitude}
|
|
97
|
-
longitude={activeMarker?.longitude}
|
|
98
|
-
onClose={() => setActiveMarker(undefined)}
|
|
99
|
-
>
|
|
100
|
-
{popupContent}
|
|
101
|
-
</Popup>
|
|
102
|
-
</BaseMap>
|
|
103
|
-
</MapRoot>
|
|
104
|
-
</div>
|
|
105
|
-
);
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export const Maptiler = Template.bind({});
|
|
109
|
-
Maptiler.args = {
|
|
110
|
-
mapProvider: {
|
|
111
|
-
name: "maptiler",
|
|
112
|
-
apiKey: import.meta.env.VITE_MAPTILER_KEY,
|
|
113
|
-
maptilerTheme: themes.maptiler.day,
|
|
114
|
-
},
|
|
115
|
-
...defaultValues,
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export const Mapbox = Template.bind({});
|
|
119
|
-
Mapbox.args = {
|
|
120
|
-
mapProvider: {
|
|
121
|
-
name: "mapbox",
|
|
122
|
-
apiKey: import.meta.env.VITE_MAPBOX_KEY,
|
|
123
|
-
},
|
|
124
|
-
...defaultValues,
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
export const Google = Template.bind({});
|
|
128
|
-
Google.args = {
|
|
129
|
-
mapProvider: {
|
|
130
|
-
name: "google",
|
|
131
|
-
apiKey: import.meta.env.VITE_GOOGLE_KEY,
|
|
132
|
-
},
|
|
133
|
-
...defaultValues,
|
|
134
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect, vi } from "vitest";
|
|
2
|
-
|
|
3
|
-
// filepath: /Users/corado/dev/client-packages/packages/maps/src/components/Map/index.test.tsx
|
|
4
|
-
|
|
5
|
-
// Mock the "./Root" module
|
|
6
|
-
vi.mock("./Root", () => ({
|
|
7
|
-
__esModule: true,
|
|
8
|
-
default: "MockedRoot",
|
|
9
|
-
}));
|
|
10
|
-
|
|
11
|
-
describe("Map Component Exports", () => {
|
|
12
|
-
it("should export Root from './Root'", async () => {
|
|
13
|
-
const { Root } = await import("./index");
|
|
14
|
-
expect(Root).toBeDefined();
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as Root from "./Root";
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Storefront,
|
|
3
|
-
ShoppingCartSimple,
|
|
4
|
-
Brandy,
|
|
5
|
-
ForkKnife,
|
|
6
|
-
Coffee,
|
|
7
|
-
Baby,
|
|
8
|
-
Train,
|
|
9
|
-
Barbell,
|
|
10
|
-
GasPump,
|
|
11
|
-
Heartbeat,
|
|
12
|
-
} from "@phosphor-icons/react";
|
|
13
|
-
|
|
14
|
-
import type { Marker, Source } from "./Root";
|
|
15
|
-
|
|
16
|
-
export const themes = {
|
|
17
|
-
maptiler: {
|
|
18
|
-
day: "600d69cb-288d-445e-9839-3dfe4d76b31a",
|
|
19
|
-
night: "dd191599-2a92-49fc-9a33-e12391753ad5",
|
|
20
|
-
},
|
|
21
|
-
mapbox: {
|
|
22
|
-
day: "",
|
|
23
|
-
night: "",
|
|
24
|
-
},
|
|
25
|
-
google: {
|
|
26
|
-
day: "",
|
|
27
|
-
night: "",
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export const markerList = [
|
|
32
|
-
{
|
|
33
|
-
id: "marker-1",
|
|
34
|
-
name: "Marker 1",
|
|
35
|
-
latitude: 45.527399,
|
|
36
|
-
longitude: -73.598126,
|
|
37
|
-
icon: Storefront,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
id: "marker-2",
|
|
41
|
-
name: "Marker 2",
|
|
42
|
-
latitude: 45.527302,
|
|
43
|
-
longitude: -73.597405,
|
|
44
|
-
icon: ShoppingCartSimple,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
id: "marker-3",
|
|
48
|
-
name: "Marker 3",
|
|
49
|
-
latitude: 45.527302,
|
|
50
|
-
longitude: -73.597405,
|
|
51
|
-
icon: Brandy,
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
id: "marker-4",
|
|
55
|
-
name: "Marker 4",
|
|
56
|
-
latitude: 45.527302,
|
|
57
|
-
longitude: -73.597405,
|
|
58
|
-
icon: ForkKnife,
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
id: "marker-5",
|
|
62
|
-
name: "Marker 5",
|
|
63
|
-
latitude: 45.527302,
|
|
64
|
-
longitude: -73.597405,
|
|
65
|
-
icon: Coffee,
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: "marker-6",
|
|
69
|
-
name: "Marker 6",
|
|
70
|
-
latitude: 45.527302,
|
|
71
|
-
longitude: -73.597405,
|
|
72
|
-
icon: Baby,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
id: "marker-7",
|
|
76
|
-
name: "Marker 7",
|
|
77
|
-
latitude: 45.527256,
|
|
78
|
-
longitude: -73.600229,
|
|
79
|
-
icon: Train,
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
id: "marker-8",
|
|
83
|
-
name: "Marker 8",
|
|
84
|
-
latitude: 45.527256,
|
|
85
|
-
longitude: -73.600229,
|
|
86
|
-
icon: Barbell,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
id: "marker-9",
|
|
90
|
-
name: "Marker 9",
|
|
91
|
-
latitude: 45.526643,
|
|
92
|
-
longitude: -73.600293,
|
|
93
|
-
icon: GasPump,
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
id: "marker-10",
|
|
97
|
-
name: "Marker 10",
|
|
98
|
-
latitude: 45.527025,
|
|
99
|
-
longitude: -73.600897,
|
|
100
|
-
icon: Heartbeat,
|
|
101
|
-
},
|
|
102
|
-
] as Marker[];
|
|
103
|
-
|
|
104
|
-
export const layerSources: Source[] = [
|
|
105
|
-
{
|
|
106
|
-
key: "neighborhood",
|
|
107
|
-
layer: [
|
|
108
|
-
{
|
|
109
|
-
type: "fill",
|
|
110
|
-
color: "#008491",
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
type: "line",
|
|
114
|
-
color: "#008491",
|
|
115
|
-
},
|
|
116
|
-
],
|
|
117
|
-
geometry: [
|
|
118
|
-
[
|
|
119
|
-
[
|
|
120
|
-
[45.53006, -73.59634],
|
|
121
|
-
[45.52986, -73.59589],
|
|
122
|
-
[45.52982, -73.59582],
|
|
123
|
-
[45.52894, -73.59389],
|
|
124
|
-
[45.52864, -73.59321],
|
|
125
|
-
[45.52799, -73.59174],
|
|
126
|
-
[45.52626, -73.58795],
|
|
127
|
-
[45.52478, -73.58473],
|
|
128
|
-
[45.52396, -73.58292],
|
|
129
|
-
[45.52337, -73.58342],
|
|
130
|
-
[45.52332, -73.58347],
|
|
131
|
-
[45.52289, -73.58385],
|
|
132
|
-
[45.52242, -73.58426],
|
|
133
|
-
[45.52216, -73.58451],
|
|
134
|
-
[45.52164, -73.58499],
|
|
135
|
-
[45.5201, -73.58638],
|
|
136
|
-
[45.51835, -73.58796],
|
|
137
|
-
[45.51765, -73.58854],
|
|
138
|
-
[45.51753, -73.58864],
|
|
139
|
-
[45.51711, -73.58901],
|
|
140
|
-
[45.51695, -73.58915],
|
|
141
|
-
[45.51677, -73.58932],
|
|
142
|
-
[45.51679, -73.58938],
|
|
143
|
-
[45.51649, -73.58965],
|
|
144
|
-
[45.51639, -73.58973],
|
|
145
|
-
[45.51633, -73.58978],
|
|
146
|
-
[45.5163, -73.58981],
|
|
147
|
-
[45.51602, -73.59007],
|
|
148
|
-
[45.5158, -73.59027],
|
|
149
|
-
[45.51585, -73.59038],
|
|
150
|
-
[45.5159, -73.59049],
|
|
151
|
-
[45.51625, -73.59125],
|
|
152
|
-
[45.5163, -73.59136],
|
|
153
|
-
[45.51632, -73.5914],
|
|
154
|
-
[45.51652, -73.59185],
|
|
155
|
-
[45.51667, -73.5922],
|
|
156
|
-
[45.51682, -73.59253],
|
|
157
|
-
[45.51695, -73.59282],
|
|
158
|
-
[45.51704, -73.59302],
|
|
159
|
-
[45.51712, -73.5932],
|
|
160
|
-
[45.51721, -73.59339],
|
|
161
|
-
[45.51738, -73.59379],
|
|
162
|
-
[45.51742, -73.59387],
|
|
163
|
-
[45.51757, -73.59422],
|
|
164
|
-
[45.51797, -73.59513],
|
|
165
|
-
[45.5181, -73.59542],
|
|
166
|
-
[45.51861, -73.59655],
|
|
167
|
-
[45.51902, -73.59748],
|
|
168
|
-
[45.51917, -73.59781],
|
|
169
|
-
[45.51939, -73.59832],
|
|
170
|
-
[45.51944, -73.59843],
|
|
171
|
-
[45.51948, -73.59853],
|
|
172
|
-
[45.51963, -73.59887],
|
|
173
|
-
[45.52018, -73.6001],
|
|
174
|
-
[45.52076, -73.60143],
|
|
175
|
-
[45.52127, -73.60258],
|
|
176
|
-
[45.52138, -73.60283],
|
|
177
|
-
[45.52147, -73.60303],
|
|
178
|
-
[45.52206, -73.60435],
|
|
179
|
-
[45.52213, -73.60452],
|
|
180
|
-
[45.52228, -73.60485],
|
|
181
|
-
[45.52241, -73.60515],
|
|
182
|
-
[45.52245, -73.60523],
|
|
183
|
-
[45.52249, -73.60531],
|
|
184
|
-
[45.52252, -73.6054],
|
|
185
|
-
[45.52256, -73.60548],
|
|
186
|
-
[45.5226, -73.60556],
|
|
187
|
-
[45.52278, -73.60597],
|
|
188
|
-
[45.52285, -73.60614],
|
|
189
|
-
[45.52294, -73.60634],
|
|
190
|
-
[45.52309, -73.60667],
|
|
191
|
-
[45.52324, -73.607],
|
|
192
|
-
[45.52335, -73.60725],
|
|
193
|
-
[45.52349, -73.60758],
|
|
194
|
-
[45.52366, -73.60796],
|
|
195
|
-
[45.52376, -73.60819],
|
|
196
|
-
[45.52387, -73.60843],
|
|
197
|
-
[45.52463, -73.61015],
|
|
198
|
-
[45.52468, -73.61026],
|
|
199
|
-
[45.52468, -73.61026],
|
|
200
|
-
[45.525, -73.61098],
|
|
201
|
-
[45.52537, -73.61179],
|
|
202
|
-
[45.5256, -73.61233],
|
|
203
|
-
[45.52565, -73.61242],
|
|
204
|
-
[45.52566, -73.6124],
|
|
205
|
-
[45.5263, -73.61124],
|
|
206
|
-
[45.52644, -73.611],
|
|
207
|
-
[45.5277, -73.60871],
|
|
208
|
-
[45.52783, -73.60839],
|
|
209
|
-
[45.52804, -73.60786],
|
|
210
|
-
[45.52817, -73.60739],
|
|
211
|
-
[45.52822, -73.6072],
|
|
212
|
-
[45.52823, -73.60716],
|
|
213
|
-
[45.52825, -73.60704],
|
|
214
|
-
[45.52828, -73.60689],
|
|
215
|
-
[45.52829, -73.60685],
|
|
216
|
-
[45.52831, -73.60672],
|
|
217
|
-
[45.52831, -73.6067],
|
|
218
|
-
[45.52837, -73.60626],
|
|
219
|
-
[45.52838, -73.60619],
|
|
220
|
-
[45.52838, -73.60614],
|
|
221
|
-
[45.52839, -73.60576],
|
|
222
|
-
[45.52837, -73.60459],
|
|
223
|
-
[45.52837, -73.60457],
|
|
224
|
-
[45.52839, -73.6035],
|
|
225
|
-
[45.52842, -73.60238],
|
|
226
|
-
[45.52849, -73.60167],
|
|
227
|
-
[45.52849, -73.60167],
|
|
228
|
-
[45.5285, -73.60159],
|
|
229
|
-
[45.5285, -73.60159],
|
|
230
|
-
[45.52854, -73.60122],
|
|
231
|
-
[45.52857, -73.60103],
|
|
232
|
-
[45.52871, -73.60014],
|
|
233
|
-
[45.52873, -73.6],
|
|
234
|
-
[45.52873, -73.6],
|
|
235
|
-
[45.52878, -73.59978],
|
|
236
|
-
[45.52878, -73.59977],
|
|
237
|
-
[45.5289, -73.59929],
|
|
238
|
-
[45.52905, -73.5988],
|
|
239
|
-
[45.5291, -73.59861],
|
|
240
|
-
[45.52916, -73.59844],
|
|
241
|
-
[45.52916, -73.59844],
|
|
242
|
-
[45.5293, -73.59807],
|
|
243
|
-
[45.52931, -73.59803],
|
|
244
|
-
[45.52934, -73.59796],
|
|
245
|
-
[45.52956, -73.5974],
|
|
246
|
-
[45.52966, -73.59715],
|
|
247
|
-
[45.52985, -73.59678],
|
|
248
|
-
[45.53004, -73.5964],
|
|
249
|
-
[45.53007, -73.59635],
|
|
250
|
-
[45.53006, -73.59634],
|
|
251
|
-
],
|
|
252
|
-
],
|
|
253
|
-
],
|
|
254
|
-
},
|
|
255
|
-
];
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as Map from "~/components/Map";
|
package/tailwind.config.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("@local-logic/design-system/tailwind.config.cjs");
|
package/tsconfig.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "tsconfig/react-library.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "dist",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"declarationMap": true,
|
|
7
|
-
"experimentalDecorators": true,
|
|
8
|
-
"paths": {
|
|
9
|
-
"~/*": ["./src/*"]
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"include": ["./src/**/*", "./vite-env.d.ts"],
|
|
13
|
-
"exclude": ["dist", "build", "node_modules"]
|
|
14
|
-
}
|
package/tsconfig.node.json
DELETED
package/vite-env.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite-plugin-svgr/client" />
|
|
2
|
-
/// <reference types="vite/client" />
|
|
3
|
-
|
|
4
|
-
interface ImportMetaEnv {
|
|
5
|
-
readonly VITE_MAPTILER_KEY: string;
|
|
6
|
-
readonly VITE_MAPBOX_KEY: string;
|
|
7
|
-
readonly VITE_GOOGLE_KEY: string;
|
|
8
|
-
// more env variables...
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
interface ImportMeta {
|
|
12
|
-
readonly env: ImportMetaEnv;
|
|
13
|
-
}
|
package/vite.config.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import react from "@vitejs/plugin-react";
|
|
2
|
-
import { resolve } from "path";
|
|
3
|
-
import { visualizer } from "rollup-plugin-visualizer";
|
|
4
|
-
import { defineConfig, PluginOption } from "vite";
|
|
5
|
-
import svgr from "vite-plugin-svgr";
|
|
6
|
-
import dts from "vite-plugin-dts";
|
|
7
|
-
|
|
8
|
-
// https://vitejs.dev/config/
|
|
9
|
-
export default defineConfig({
|
|
10
|
-
build: {
|
|
11
|
-
lib: {
|
|
12
|
-
entry: resolve(__dirname, "src/index.ts"),
|
|
13
|
-
fileName: (format) => `index.${format}.js`,
|
|
14
|
-
name: "LocalLogicMaps",
|
|
15
|
-
},
|
|
16
|
-
/**
|
|
17
|
-
* This option will only minify the UMD output. Package users can still see
|
|
18
|
-
* the unminified "index.es.js" output.
|
|
19
|
-
*/
|
|
20
|
-
minify: true,
|
|
21
|
-
},
|
|
22
|
-
resolve: {
|
|
23
|
-
alias: {
|
|
24
|
-
"~": resolve(__dirname, "./src"),
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
plugins: [
|
|
28
|
-
svgr({
|
|
29
|
-
include: "**/*.svg",
|
|
30
|
-
}),
|
|
31
|
-
/**
|
|
32
|
-
* Generate typings
|
|
33
|
-
*/
|
|
34
|
-
dts({
|
|
35
|
-
insertTypesEntry: true,
|
|
36
|
-
}),
|
|
37
|
-
|
|
38
|
-
// Has to be after generating the types
|
|
39
|
-
react(),
|
|
40
|
-
|
|
41
|
-
// This option MUST come last. Note that build size WILL NOT represent build
|
|
42
|
-
// size in client app because it is not minified (client app should handle
|
|
43
|
-
// minification).
|
|
44
|
-
visualizer({ brotliSize: true, open: !!process.env.STATS }) as PluginOption,
|
|
45
|
-
],
|
|
46
|
-
});
|