@local-logic/maps 0.0.8 → 0.0.10
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/IconBase.es-rM5tt24D.js +48 -0
- package/dist/{index-BZ2605rA.js → index-9RZYMoMG.js} +1 -1
- package/dist/index-BCa658u4.js +24 -0
- package/dist/index-BOuko7CL.js +32 -0
- package/dist/index-BYlamtEc.js +96 -0
- package/dist/{index-CPq7k7F4.js → index-BsnsAUt5.js} +1 -1
- package/dist/index-BtwgeEEU.js +53 -0
- package/dist/index-CNxLnZ8O.js +23 -0
- package/dist/index-CR8t37Oz.js +73 -0
- package/dist/index-CRQ5kxRL.js +65 -0
- package/dist/{index-B43MtiHH.js → index-D5uhfwEH.js} +10 -9
- package/dist/index-DNKXUpkv.js +65 -0
- package/dist/index-DgHrPgsK.js +772 -0
- package/dist/index-DnsF5I7I.js +62 -0
- package/dist/index-Do_dW76Q.js +23 -0
- package/dist/index-JQfyhSrg.js +50 -0
- package/dist/index.es.js +1 -1
- package/dist/{index.modern-EsUgbhzI.js → index.modern-CLRs8JwI.js} +7 -7
- package/dist/index.umd.js +134 -146
- package/dist/src/components/Map/Root/BaseMap/Google/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/BaseMap/Mapbox/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/BaseMap/Maptiler/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/CenterPin/Google/index.d.ts +4 -0
- package/dist/src/components/Map/Root/CenterPin/Google/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/CenterPin/Mapbox/index.d.ts +4 -0
- package/dist/src/components/Map/Root/CenterPin/Mapbox/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/CenterPin/Maptiler/index.d.ts +4 -0
- package/dist/src/components/Map/Root/CenterPin/Maptiler/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/CenterPin/index.d.ts +4 -0
- package/dist/src/components/Map/Root/CenterPin/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/CenterPin/styles.d.ts +4 -0
- package/dist/src/components/Map/Root/CenterPin/styles.d.ts.map +1 -0
- package/dist/src/components/Map/Root/CenterPin/types.d.ts +6 -0
- package/dist/src/components/Map/Root/CenterPin/types.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Markers/Cluster/index.d.ts +4 -3
- package/dist/src/components/Map/Root/Markers/Cluster/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/Cluster/styles.d.ts +2 -1
- package/dist/src/components/Map/Root/Markers/Cluster/styles.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/Google/index.d.ts +1 -1
- package/dist/src/components/Map/Root/Markers/Google/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/Mapbox/index.d.ts +1 -1
- package/dist/src/components/Map/Root/Markers/Mapbox/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/Maptiler/index.d.ts +1 -1
- package/dist/src/components/Map/Root/Markers/Maptiler/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/MarkerIcon/index.d.ts +6 -0
- package/dist/src/components/Map/Root/Markers/MarkerIcon/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Markers/index.d.ts +1 -1
- package/dist/src/components/Map/Root/Markers/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/styles.d.ts +2 -4
- package/dist/src/components/Map/Root/Markers/styles.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/types.d.ts +18 -9
- package/dist/src/components/Map/Root/Markers/types.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Popup/Mapbox/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Popup/Maptiler/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/constants.d.ts +3 -0
- package/dist/src/components/Map/Root/constants.d.ts.map +1 -1
- package/dist/src/components/Map/Root/context.d.ts +2 -0
- package/dist/src/components/Map/Root/context.d.ts.map +1 -1
- package/dist/src/components/Map/Root/index.d.ts +1 -0
- package/dist/src/components/Map/Root/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/types.d.ts +10 -0
- package/dist/src/components/Map/Root/types.d.ts.map +1 -1
- package/dist/src/components/Map/index.d.ts +2 -2
- package/dist/src/components/Map/index.d.ts.map +1 -1
- package/dist/src/components/Map/index.stories.d.ts.map +1 -1
- package/dist/src/components/Map/storybook-data.d.ts.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/style.css +24 -1
- package/dist/styles-D2MYaLhP.js +47 -0
- package/package.json +5 -3
- package/dist/index-92HhWupr.js +0 -29
- package/dist/index-BF2kb4Y-.js +0 -42
- package/dist/index-C5-_i-6M.js +0 -64
- package/dist/index-CXjxZmYt.js +0 -144
- package/dist/index-CY0to_1B.js +0 -676
- package/dist/index-ChwN5abO.js +0 -29
- package/dist/index-CrIFr9oc.js +0 -47
- package/dist/index-D5-2anzJ.js +0 -29
- package/dist/index-J1MKzGEM.js +0 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/BaseMap/Google/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/BaseMap/Google/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA6C7C;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,YAAY,4BAmD/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/BaseMap/Mapbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,8BAA8B,CAAC;AAOtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/BaseMap/Mapbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,8BAA8B,CAAC;AAOtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA8B7C,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,YAAY,4BAqC/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/BaseMap/Maptiler/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,kCAAkC,CAAC;AAO1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/BaseMap/Maptiler/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,kCAAkC,CAAC;AAO1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA8B7C,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE,YAAY,4BAmCjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/CenterPin/Google/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIlD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,qBAgBpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/CenterPin/Mapbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIlD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,qBAcpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/CenterPin/Maptiler/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIlD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,qBActE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Map/Root/CenterPin/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAQ9C,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,4BAqB9C"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const container = "\n relative flex items-center justify-center z-10\n";
|
|
2
|
+
export declare const background = "fill-primary-100";
|
|
3
|
+
export declare const icon = "\n w-5 h-5 fill-base-white\n absolute top-1.5 left-1/2 transform -translate-x-1/2\n";
|
|
4
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Map/Root/CenterPin/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,yDAErB,CAAC;AAEF,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAE7C,eAAO,MAAM,IAAI,0FAGhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Map/Root/CenterPin/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare function Cluster({
|
|
4
|
-
|
|
2
|
+
import { MarkerProps } from '../types';
|
|
3
|
+
export declare function Cluster({ colors, icon, }: {
|
|
4
|
+
colors: MarkerProps["colors"];
|
|
5
|
+
icon?: MarkerProps["clusterIcon"];
|
|
5
6
|
}): React.JSX.Element;
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Markers/Cluster/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Markers/Cluster/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAO5C,wBAAgB,OAAO,CAAC,EACtB,MAAM,EACN,IAAI,GACL,EAAE;IACD,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;CACnC,qBAgCA"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export declare const container = "\n
|
|
1
|
+
export declare const container = "\n relative flex\n";
|
|
2
|
+
export declare const backgroundMarker = "\n -ml-6 -z-10 last:-z-20\n";
|
|
2
3
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Markers/Cluster/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Markers/Cluster/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,wBAErB,CAAC;AAEF,eAAO,MAAM,gBAAgB,iCAE5B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MapMarkerProps } from '../types';
|
|
3
|
-
export default function GoogleMarkers({ clusters, onClick,
|
|
3
|
+
export default function GoogleMarkers({ clusters, colors, clusterIcon, markerBounds, markerBoundsPadding, onClick, }: MapMarkerProps): React.JSX.Element[];
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Markers/Google/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Markers/Google/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAQzC,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,UAAU,CAAC;AAQ7D,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,QAAQ,EACR,MAAM,EACN,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,OAAO,GACR,EAAE,cAAc,uBAyDhB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MapMarkerProps } from '../types';
|
|
3
|
-
export default function MapboxMarkers({ clusters, onClick,
|
|
3
|
+
export default function MapboxMarkers({ clusters, colors, clusterIcon, markerBoundsPadding, markerBounds, onClick, }: MapMarkerProps): React.JSX.Element[];
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Markers/Mapbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Markers/Mapbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAQzC,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,UAAU,CAAC;AAQ7D,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,QAAQ,EACR,MAAM,EACN,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,OAAO,GACR,EAAE,cAAc,uBA+DhB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MapMarkerProps } from '../types';
|
|
3
|
-
export default function MaptilerMarkers({ clusters, onClick,
|
|
3
|
+
export default function MaptilerMarkers({ clusters, colors, clusterIcon, markerBounds, markerBoundsPadding, onClick, }: MapMarkerProps): React.JSX.Element[];
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Markers/Maptiler/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Markers/Maptiler/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAQzC,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,UAAU,CAAC;AAQ7D,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,QAAQ,EACR,MAAM,EACN,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,OAAO,GACR,EAAE,cAAc,uBA+DhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Markers/MarkerIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,uBAAuB,CAAC;AAI9D,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,IAAI,CAAA;CAAE,qBAMlE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MarkerProps } from './types';
|
|
3
|
-
export declare
|
|
3
|
+
export declare function Markers({ markers, markerBoundsPadding, onClick, ...rest }: MarkerProps): React.JSX.Element | null;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Map/Root/Markers/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Map/Root/Markers/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAQlE,OAAO,KAAK,EAAE,WAAW,EAA6C,MAAM,SAAS,CAAC;AAQtF,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,mBAA2B,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,4BAqF9F"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export declare const container = "\n cursor-pointer\n relative
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const iconWrapper = "\n absolute top-1 left-1/2 transform -translate-x-1/2\n flex justify-center items-center rounded-full overflow-hidden\n transition-all w-3.5 h-3.5\n\n group-hover:bg-base-white\n";
|
|
4
|
-
export declare const icon = "\n m-auto transition-all w-full h-full\n max-w-3.5 max-h-3.5\n\n group-hover:text-primary-100\n group-hover:max-w-2.5\n group-hover:max-h-2.5\n";
|
|
1
|
+
export declare const container = "\n group/marker cursor-pointer rounded-full\n relative h-7 w-7 flex items-center justify-center\n text-base-white ring-1 ring-inset\n transition-colors\n\n bg-[var(--background)]\n ring-[var(--fill)]\n\n hover:bg-[var(--fill)]\n\n data-[is-zoomed-out=true]:bg-[var(--fill)]\n data-[is-zoomed-out=true]:h-4\n data-[is-zoomed-out=true]:w-4\n";
|
|
2
|
+
export declare const icon = "\n m-auto transition-all w-4 h-4 \n\n fill-[var(--fill)]\n group-hover/marker:fill-[var(--background)]\n\n group-data-[is-zoomed-out=true]/marker:hidden\n";
|
|
5
3
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Map/Root/Markers/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Map/Root/Markers/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,kWAcrB,CAAC;AAEF,eAAO,MAAM,IAAI,mKAOhB,CAAC"}
|
|
@@ -1,28 +1,37 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { PointFeature, ClusterProperties } from 'supercluster';
|
|
3
3
|
import { Icon } from '@phosphor-icons/react';
|
|
4
|
-
import {
|
|
4
|
+
import { bbox } from '@turf/turf';
|
|
5
|
+
import { Marker } from '../types';
|
|
5
6
|
export type ClusterPoint = PointFeature<ClusterProperties & Marker>;
|
|
6
|
-
export type Marker = {
|
|
7
|
-
id: string;
|
|
8
|
-
latitude: Coordinates["latitude"];
|
|
9
|
-
longitude: Coordinates["longitude"];
|
|
10
|
-
name?: string;
|
|
11
|
-
icon?: Icon;
|
|
12
|
-
};
|
|
13
7
|
export type MarkerPoint = {
|
|
14
8
|
id: string;
|
|
15
9
|
latitude: number;
|
|
16
10
|
longitude: number;
|
|
17
11
|
markers: Marker[];
|
|
18
12
|
};
|
|
13
|
+
type MarkerBoundsPadding = {
|
|
14
|
+
top: number;
|
|
15
|
+
bottom: number;
|
|
16
|
+
left: number;
|
|
17
|
+
right: number;
|
|
18
|
+
};
|
|
19
19
|
export type MarkerProps = {
|
|
20
20
|
markers: Marker[];
|
|
21
|
-
|
|
21
|
+
clusterIcon?: Icon;
|
|
22
|
+
markerBoundsPadding?: number | MarkerBoundsPadding;
|
|
23
|
+
colors?: {
|
|
24
|
+
background: string;
|
|
25
|
+
fill: string;
|
|
26
|
+
};
|
|
27
|
+
onClick?: (marker: MarkerPoint) => void;
|
|
22
28
|
children?: ReactNode;
|
|
23
29
|
};
|
|
24
30
|
export type MapMarkerProps = Omit<MarkerProps, "markers"> & {
|
|
25
31
|
clusters: ClusterPoint[];
|
|
32
|
+
markerBounds?: ReturnType<typeof bbox>;
|
|
33
|
+
markerBoundsPadding: MarkerBoundsPadding;
|
|
26
34
|
onClick: (cluster: ClusterPoint) => void;
|
|
27
35
|
};
|
|
36
|
+
export {};
|
|
28
37
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Map/Root/Markers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Map/Root/Markers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,iBAAiB,GAAG,MAAM,CAAC,CAAC;AAEpE,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC;IACnD,MAAM,CAAC,EAAE;QACP,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAC1D,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,YAAY,CAAC,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;IACvC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;CAC1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Popup/Mapbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,QAAQ,EACR,SAAS,EACT,MAAM,EACN,MAAiB,EACjB,OAAO,EACP,QAAQ,GACT,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Popup/Mapbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,QAAQ,EACR,SAAS,EACT,MAAM,EACN,MAAiB,EACjB,OAAO,EACP,QAAQ,GACT,EAAE,UAAU,4BAoBZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Popup/Maptiler/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,QAAQ,EACR,SAAS,EACT,MAAM,EACN,MAAiB,EACjB,OAAO,EACP,QAAQ,GACT,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Map/Root/Popup/Maptiler/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,QAAQ,EACR,SAAS,EACT,MAAM,EACN,MAAiB,EACjB,OAAO,EACP,QAAQ,GACT,EAAE,UAAU,4BAqBZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/Root/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/Root/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,cAAc,KAAK,CAAC"}
|
|
@@ -4,6 +4,8 @@ import { RootProps } from './types';
|
|
|
4
4
|
export type DefaultContext = RootProps & {
|
|
5
5
|
bounds?: BBox;
|
|
6
6
|
setBounds: (bounds: BBox) => void;
|
|
7
|
+
zoom: number;
|
|
8
|
+
setZoom: (zoom: number) => void;
|
|
7
9
|
};
|
|
8
10
|
declare const RootElementContext: React.Context<DefaultContext>;
|
|
9
11
|
declare const useRootElement: () => DefaultContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/Root/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG;IACvC,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,SAAS,EAAE,CAAC,MAAM,EAAE,IAAI,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/Root/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG;IACvC,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,SAAS,EAAE,CAAC,MAAM,EAAE,IAAI,KAAK,IAAI,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,kBAAkB,+BAA4D,CAAC;AACrF,QAAA,MAAM,cAAc,sBAAuC,CAAC;AAE5D,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { RootProps } from './types';
|
|
3
3
|
export declare function Root(props: RootProps): React.JSX.Element;
|
|
4
4
|
export { BaseMap } from './BaseMap';
|
|
5
|
+
export { CenterPin } from './CenterPin';
|
|
5
6
|
export { Markers } from './Markers';
|
|
6
7
|
export { Popup } from './Popup';
|
|
7
8
|
export { Layers } from './Layers';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/Root/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/Root/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,qBASpC;AAED,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { Icon } from '@phosphor-icons/react';
|
|
2
3
|
/**
|
|
3
4
|
* We should try to keep the types "agnostic" but if we have to pick a side,
|
|
4
5
|
* we should side with the maptiler namings.
|
|
@@ -13,10 +14,19 @@ export type Coordinates = {
|
|
|
13
14
|
longitude: number;
|
|
14
15
|
};
|
|
15
16
|
export type ZoomPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
17
|
+
export type Marker = {
|
|
18
|
+
id: string;
|
|
19
|
+
latitude: Coordinates["latitude"];
|
|
20
|
+
longitude: Coordinates["longitude"];
|
|
21
|
+
name?: string;
|
|
22
|
+
icon?: Icon;
|
|
23
|
+
};
|
|
16
24
|
export type RootProps = {
|
|
17
25
|
mapProvider: MapProvider;
|
|
18
26
|
center: Coordinates;
|
|
19
27
|
zoom?: number;
|
|
28
|
+
minZoom?: number;
|
|
29
|
+
maxZoom?: number;
|
|
20
30
|
zoomPosition?: ZoomPosition;
|
|
21
31
|
pitch?: number;
|
|
22
32
|
bearing?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/Root/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Map/Root/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;GAGG;AAEH,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;AAErF,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAClC,SAAS,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as LocalLogicMap from './Root';
|
|
2
|
-
export type { RootProps, MapProvider, Coordinates, ZoomPosition } from './Root/types';
|
|
3
|
-
export type {
|
|
2
|
+
export type { RootProps, MapProvider, Marker, Coordinates, ZoomPosition } from './Root/types';
|
|
3
|
+
export type { MarkerPoint } from './Root/Markers/types';
|
|
4
4
|
export type { Source, Layer } from './Root/Layers/types';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Map/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Map/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9F,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Map/index.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAIjD,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,GAAG,CAAC;wBAO3C,IAAI,CAAC,SAAS,CAAC;AAJpB,wBAIqB;
|
|
1
|
+
{"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Map/index.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAIjD,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,GAAG,CAAC;wBAO3C,IAAI,CAAC,SAAS,CAAC;AAJpB,wBAIqB;AAoGrB,eAAO,MAAM,QAAQ,qGAAoB,CAAC;AAU1C,eAAO,MAAM,MAAM,qGAAoB,CAAC;AAUxC,eAAO,MAAM,MAAM,qGAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storybook-data.d.ts","sourceRoot":"","sources":["../../../../src/components/Map/storybook-data.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAExC,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"storybook-data.d.ts","sourceRoot":"","sources":["../../../../src/components/Map/storybook-data.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAExC,eAAO,MAAM,UAAU,EAmFlB,MAAM,EAAE,CAAC;AAEd,eAAO,MAAM,YAAY,EAAE,MAAM,EAuJhC,CAAC"}
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AAEpB,cAAc,kBAAkB,CAAC"}
|