Skip to content

Commit cc81e4e

Browse files
Merge pull request #20 from SunshineLuke90/camviewer-multifeed
Updated CamViewer to allow multiple cameras to be visible at once.
2 parents 7a632e1 + 6c01e36 commit cc81e4e

7 files changed

Lines changed: 292 additions & 91 deletions

File tree

CamViewer/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ This widget can be used and interacted with on my example application, found [he
1616

1717
This widget can be set up by adding the widget to your application, then selecting the map and data source the camera layer is stored in. You will then select the field that the .m3u8 url is stored in, as well as an icon for the main widget button. It is recommended that you set a background color in the style settings, and also set the height and width to "auto".
1818

19+
As of `v1.0.2` The builder can also choose to allow multiple feeds to be opened at the same time by the user. This will display a popup above the button to turn on the layer, allowing the user to switch the camera viewer into multi-feed mode. This is designed to be backwards compatible with existing uses of the CamViewer widget.
20+
1921
## Using the widget
2022

2123
Click the widget button (Icon selected by builder), and cameras should appear on your map. Click a camera icon on your map, and a viewing window should appear. You can then click the X icon in the top right of the camera window to close the camera feed and unselect the camera feature/features.

CamViewer/config.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"icon": "camera"
3-
}
2+
"icon": "camera",
3+
"multiple": false
4+
}

CamViewer/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CamViewer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "exb-camviewer",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A camera viewer, to view .m3u8 streams via a url in a feature layer.",
55
"license": "MIT",
66
"author": "Lucius Creamer",

CamViewer/src/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { IconResult } from 'jimu-core'
33

44
export interface Config {
55
icon: IconResult;
6+
multiple: boolean;
67
}
78

89
export type IMConfig = ImmutableObject<Config>

0 commit comments

Comments
 (0)