@sensolus/create-snt-agent-app 0.2.1 → 0.3.0
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/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
SntBadge,
|
|
6
6
|
SntProgressBar,
|
|
7
7
|
SntCard,
|
|
8
|
-
|
|
8
|
+
SntDeviceMap,
|
|
9
9
|
SntSpinner,
|
|
10
10
|
} from '@sensolus/snt-agent-kit'
|
|
11
11
|
import { useLocale, formatNumber } from '../i18n'
|
|
@@ -214,7 +214,7 @@ export function OrganisationDetail() {
|
|
|
214
214
|
<SntSpinner size="medium" />
|
|
215
215
|
</div>
|
|
216
216
|
) : (
|
|
217
|
-
<
|
|
217
|
+
<SntDeviceMap
|
|
218
218
|
mapboxKey={config.mapboxKey}
|
|
219
219
|
locationiqKey={config.locationiqKey}
|
|
220
220
|
height="500px"
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
SntInput,
|
|
15
15
|
SntLoadingOverlay,
|
|
16
16
|
SntMap,
|
|
17
|
+
SntDeviceLayer,
|
|
17
18
|
SntProgressBar,
|
|
18
19
|
SntSelect,
|
|
19
20
|
SntSidepanel,
|
|
@@ -482,7 +483,7 @@ export function WidgetShowcase() {
|
|
|
482
483
|
{/* ------------------------------------------------------------------ */}
|
|
483
484
|
<Section
|
|
484
485
|
title="SntMap"
|
|
485
|
-
description="Leaflet map
|
|
486
|
+
description="Base Leaflet map (street/satellite toggle, geocoder, zoom/scale). Compose with layer components — here, <SntDeviceLayer>."
|
|
486
487
|
>
|
|
487
488
|
<SntMap
|
|
488
489
|
mapboxKey={config.mapboxKey}
|
|
@@ -490,14 +491,15 @@ export function WidgetShowcase() {
|
|
|
490
491
|
height="320px"
|
|
491
492
|
center={[50.85, 4.35]}
|
|
492
493
|
zoom={6}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
494
|
+
>
|
|
495
|
+
<SntDeviceLayer
|
|
496
|
+
devices={[
|
|
497
|
+
{ id: 'd1', name: 'Demo tracker A', lastLat: 50.8503, lastLng: 4.3517 },
|
|
498
|
+
{ id: 'd2', name: 'Demo tracker B', lastLat: 51.2194, lastLng: 4.4025 },
|
|
499
|
+
{ id: 'd3', name: 'Demo tracker C', lastLat: 51.0543, lastLng: 3.7174 },
|
|
500
|
+
]}
|
|
501
|
+
/>
|
|
502
|
+
</SntMap>
|
|
501
503
|
</Section>
|
|
502
504
|
|
|
503
505
|
{/* ------------------------------------------------------------------ */}
|