-
Notifications
You must be signed in to change notification settings - Fork 3
SMK API Resource Model
Path | Type | Required | Description |
---|---|---|---|
|
|
|
The SMK identifer for the Map Configuration |
|
|
|
The current version of the Map Configuration. This will increment when a version is published and a new edit version created |
|
|
|
The name of an SMK application. This name is used for labels and display purposes |
|
|
|
An optional 'namespace' used to track Map Configurations together in a single project |
|
|
|
The name of the user (BCeID or IDIR) that created this Map Configuration |
|
|
|
Indicats if this project is a published version. if False, this is an editable version |
|
|
|
The type of surround header to use currently only 'default' is enabled |
|
|
|
The title of the configuration, displayed in the header |
|
|
|
A banner image to display in the header |
|
|
|
The viewer type to use. This is currently either 'leaflet' or 'esri3d' |
|
|
|
The name of the default basemap to display from SMK’s basemap options |
|
|
|
The default extent at which the map will be displayed. This will override center and zoom settings. |
|
|
|
The center point to pan the map to when the application starts. This requires a zoom level set, and this will be overriden by setting an extent value. |
|
|
|
The zoom level to set the map display to when the application starts. This requires a center point value. |
|
|
|
The list of tools this Map Configuration will activate |
|
|
|
The list of configured Layers that will be displayed in the viewer |
Layers have many different types. Each type is an extension of the root 'Layer' type.
Path | Type | Required | Description |
---|---|---|---|
|
|
|
Identifies which type of layer this is. Must be one of dynamicServiceLayer, wmsLayer, kmlLayer, jsonLayer, groupLayer, folder, or featureLayer |
|
|
|
The identifer for a Layer |
|
|
|
The Layers title, used for display in the viewer |
|
|
|
Indicates if the layer will be visible in the viewer by default |
|
|
|
Copyright details and attribution to be displayed in the map viewer container |
|
|
|
The URL used for linking to a metadat source |
|
|
|
The default opacity the layer is displayed at. This will not override existing WMS congigured values, and may result in very hard to see layers |
|
|
|
The minimum visible scale for the layer |
|
|
|
The maximum visible scale for the layer |
|
|
|
The default geometry attribute, if attributes are set |
|
|
|
The default title attribute, if attributes are set |
|
|
|
A list of query objects used for executing custom query actions |
|
|
|
An array of attribute values. Used to override what is displayed with Dynamic, Vector, and WMS layers. |
Path | Type | Required | Description |
---|---|---|---|
|
|
|
The database name of the attribute |
|
|
|
The label alias of the attribute |
|
|
|
Indicates if the attribute is visible by default |
One of the following models is required for each layer
Path | Type | Required | Description |
---|---|---|---|
|
|
|
The ID used for this layer in the DataBC Layer Catalog |
|
|
|
The workspace used for this layer in the DataBC Layer Catalog |
|
|
|
The URL for the DataBC Layer Catalog |
|
|
|
A listing of dynamic layer configurations. This will typically only contain one dynamic feature, which can be derived from the MPCM Layer Catalog |
Path | Type | Required | Description |
---|---|---|---|
|
|
|
The WMS version used for get map, get feature info and get capabilities wms requests |
|
|
|
The name of the style to use when making get map requests for the WMS layer |
|
|
|
The name of the layer to use when making get map requests for the WMS layer |
|
|
|
The URL for the WMS service |
Path | Type | Required | Description |
---|---|---|---|
|
|
|
A URL for an external GeoJSON file |
|
|
|
Indicates if the layer should be displayed in its native form, with no heatmapping or clustering. Only relevant for point vectors |
|
|
|
Indicates if the layer should also include point clustering. Only relevant for point vectors |
|
|
|
Indicates if the layer should also include heatmap clustering. Only relevant for point vectors |
|
|
|
Width of a line or polygon outline |
|
|
|
Display style for a line or polygon outline (solid, dashed, dotted) |
|
|
|
The RGB color code for the line or polygon outline |
|
|
|
The opacity of the line or polygon outline |
|
|
|
The RGB color code for the polygon fill |
|
|
|
The opacity for the polygon fill |
|
|
|
The URL or attachment ID to use for custom point marker symbols |
|
|
|
the x and y sizes to use for a custom marker symbol |
|
|
|
A default offset for drawing the custom marker symbol in relation to the real point location |
Path | Type | Required | Description |
---|---|---|---|
|
|
|
Indicates if this tool is enabled or disabled by default. Disabled tools will not function in an applicaiton and will be removed from the UI |
|
|
|
The Title to use for a tool. All tools contain defaults, and will be overriden if title is supplied |
|
|
|
The default icon to use for a tool. All tools contain defaults, and will be overriden if an icon name is supplied. Icons are derived from the Google Material Icons library |
|
|
|
The Uorder in which the tool will be displayed in the toolbars |
|
|
|
The name of related tool instances to display with this tool. Currently, this is only used for query definitions |
|
|
|
The location where the tool and icon will be displayed from. 'Dropdown' requires the dropdown tool to be activated. By default tools are placed in the menu, but they can also be moved to the toolbar |
|
|
|
Indicates if the tool should be displayed with a panel. All tools default to True, except for the identify tool. This should only be set to False with the identify panel, as many other tools will have unknown behaviour if their required panels are hidden |
Some tools have specialized configurations in addition to the default tool configuration above. These are listed below:
Path | Type | Required | Description |
---|---|---|---|
|
|
|
HTML content to be displayed in the about panel |
Path | Type | Required | Description |
---|---|---|---|
|
|
|
A listing of available basemap ID’s to offer in this map configuration |
Path | Type | Required | Description |
---|---|---|---|
|
|
|
The opacity of the identify tool feature highlighting |
|
|
|
Width of a line or polygon outline |
|
|
|
Display style for a line or polygon outline (solid, dashed, dotted) |
|
|
|
The RGB color code for the line or polygon outline |
|
|
|
The opacity of the line or polygon outline |
|
|
|
The RGB color code for the polygon fill |
|
|
|
The opacity for the polygon fill |
|
|
|
The URL or attachment ID to use for custom point marker symbols |
|
|
|
the x and y sizes to use for a custom marker symbol |
|
|
|
A default offset for drawing the custom marker symbol in relation to the real point location |
Path | Type | Required | Description |
---|---|---|---|
|
|
|
The basemap ID for display in the Mini Map |
Path | Type | Required | Description |
---|---|---|---|
|
|
|
Display the scale as a factor |
|
|
|
Display the scale in a scale bar |
Path | Type | Required | Description |
---|---|---|---|
|
|
|
The opacity of the Select tool feature highlighting |
|
|
|
Width of a line or polygon outline |
|
|
|
Display style for a line or polygon outline (solid, dashed, dotted) |
|
|
|
The RGB color code for the line or polygon outline |
|
|
|
The opacity of the line or polygon outline |
|
|
|
The RGB color code for the polygon fill |
|
|
|
The opacity for the polygon fill |
|
|
|
The URL or attachment ID to use for custom point marker symbols |
|
|
|
the x and y sizes to use for a custom marker symbol |
|
|
|
A default offset for drawing the custom marker symbol in relation to the real point location |
Path | Type | Required | Description |
---|---|---|---|
|
|
|
Allow zooming with the mouse wheel |
|
|
|
Allow zooming with a mouse 'double-click' |
|
|
|
Allow zooming by clicking and dragging a box |
|
|
|
Allow zooming by holding control, clicking, and dragging a box |
Path | Type | Required | Description |
---|---|---|---|
|
|
|
The Query ID |
|
|
|
The Query display title |
|
|
|
The Query display description |
|
|
|
The Query parameter id |
|
|
|
The Query parameter display title |
|
|
|
The Query parameter type. This can be 'input' for a textbox, or 'select' for a select box |
|
|
|
The the parameter type is 'select', the choices kvp array contains the choice ID and display values |
|
|
|
The Query default value |
|
|
|
The Query predicate operation. This can be contains,equals,not,less-than,greater-than,ends-with,starts-with,and,or |
|
|
|
The Query predicates argument operand. This can be 'attribute' or 'parameter' |
|
|
|
The Query predicates argument id. This is only used with parameter operands |
|
|
|
The Query predicates argument attribute name. This is only used with attribute operands |