Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CamViewer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ This widget can be used and interacted with on my example application, found [he

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".

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.

## Using the widget

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.
5 changes: 3 additions & 2 deletions CamViewer/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"icon": "camera"
}
"icon": "camera",
"multiple": false
}
4 changes: 2 additions & 2 deletions CamViewer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion CamViewer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "exb-camviewer",
"version": "1.0.1",
"version": "1.0.2",
"description": "A camera viewer, to view .m3u8 streams via a url in a feature layer.",
"license": "MIT",
"author": "Lucius Creamer",
Expand Down
1 change: 1 addition & 0 deletions CamViewer/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { IconResult } from 'jimu-core'

export interface Config {
icon: IconResult;
multiple: boolean;
}

export type IMConfig = ImmutableObject<Config>
Loading
Loading