Canadian-Geospatial-Platform / geoview-plugins-config

Store and access plugins configuration from GeoCore for GeoView and RAMP
0 stars 2 forks source link

Specific Changes needed to Geoview Schema to Implement in React Schema Forms #51

Open Pewillia opened 1 year ago

Pewillia commented 1 year ago

Changes to Geoview Schema

1) changed boolean description to titles in order to display titles otherwise no description for boolean fields

2) Added titles to oneOf the field Definitions below, they were referencing definitions in order to display options in a pull down list

  "TypeClassBreakStyleInfo,

TypeKindOfVectorSettings, TypeStyleSettings, TypeLayerEntryConfig, "TypeListOfOgcWmsLayerEntryConfig, TypeListOfImageStaticLayerEntryConfig, TypeListOfXyzTilesLayerEntryConfig, TypeListOfEsriDynamicLayerEntryConfig, TypeListOfEsriFeatureLayerEntryConfig, TypeListOfGeoJSONLayerEntryConfig, TypeListOfOgcWfsLayerEntryConfig, TypeListOfOgcFeatureLayerEntryConfig, TypeListOfGeoPackageLayerEntryConfig, TypeListOfGeoCoreLayerEntryConfig, TypeUniqueValueStyleInfo

3) added titles to some definitions with no descriptions,

4) took out additional properties false

5) add "format": "uri" to fields that are hyperlinks to verify format of hyperlink to contain http:// . "format": "uri", must be in the schema file in order to work otherwise doesn't validate format .Does not work with definitions have to expand definition in the fields in order to add uri, not sure about placeholder. MEtdataACessPath works with uri format if dont use typedeftype localised string and sav it in the def for metadataAccessPath.

6) added placeholder "ui:placeholder": "http://" to fields that are urls in ui:schema in Schemaform.js .placeholder don't work if an array item. Placehodler doesnt work if in array metadaatAccessPath doesnt work withplaceholder but serviceurlendoints do work with placeholder

7) no item of type string displays in a pull down list

8)take out geolocator from list of component or schema error when try to display a map ?

Pewillia commented 1 year ago

image

Pewillia commented 1 year ago

changes prefixItems to items for type TypeTileGrid and

TypeViewSettings": { "additionalProperties": false, "type": "object", "properties": { "center": { "type": "array", "prefixItems": [ { "type": "number", "minimum": -160, "maximum": 160, "default": -106, "description": "Initial longitude value for map center." },