diff --git a/packages/geoview-core/public/datasets/geojson/metadata-new.meta b/packages/geoview-core/public/datasets/geojson/metadata.meta similarity index 79% rename from packages/geoview-core/public/datasets/geojson/metadata-new.meta rename to packages/geoview-core/public/datasets/geojson/metadata.meta index 7b6a31e1b3a..05bc17984da 100644 --- a/packages/geoview-core/public/datasets/geojson/metadata-new.meta +++ b/packages/geoview-core/public/datasets/geojson/metadata.meta @@ -126,12 +126,27 @@ "color": "rgba(0,0,255,0.5)", "paternSize": 10, "paternWidth": 2, - "fillStyle": "diagonalCross", "stroke": { "color": "rgba(128,0,0,1)", "lineStyle": "dot" } } + }, + { + "label": "Default", + "visible": true, + "values": ["Default"], + "settings": { + "type": "filledPolygon", + "color": "rgba(0,0,255,0.5)", + "paternSize": 10, + "paternWidth": 2, + "fillStyle": "diagonalCross", + "stroke": { + "color": "rgba(0,0,128,1)", + "lineStyle": "dot" + } + } } ] } @@ -168,14 +183,18 @@ }, "style": { "type": "simple", - "label": "LineString label", - "settings": { - "type": "lineString", - "stroke": { - "lineStyle": "shortDash-dot-dot", - "color": "rgba(128,0,0,1)" + "fields": ["LineString label"], + "info": [ + { + "settings": { + "type": "lineString", + "stroke": { + "lineStyle": "shortDash-dot-dot", + "color": "rgba(128,0,0,1)" + } + } } - } + ] } }, { @@ -215,14 +234,18 @@ } }, "style": { - "styleType": "simple", - "label": "Icon point label", - "settings": { - "type": "iconSymbol", - "mimeType": "image/png", - "src": "iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAcNJREFUKJFjYSATsCBz/v//z/Tp8+fwO/cf273/+FmckZHxn6iQwBMVJbldXJyc27Bq/P//v8jVm3cmtUxf7rX+3nN+ZEVJ+srhd+8/3KikIFfMyMj4Fa7x////zBeu3JjuXDM55Ou//xjOmnfxrsS+8t7Uze1FLAwMDClwjU+fv0irmLzYH5smGHjw/TdTz7yVIe/ef9wiJMi/gYWBgYHhxp2HXgeev2dFVtjhb8Pw7dtPhqbdp+FiCy894E+4cz+IgYEBovHDp88qyJpmxngwxIf5wfnImt+9f68Ed+rff3/ZkTVycnDA2dxcHMhSDH/+/WeHa+Tm5HzJwMCgCJMsW7SZgYmZkeHHj18M5RsPo2jk4eJ+DdcoKSZyQoeX0+LK5+8MDAwMDC9+/WWImbkeI4D85MUZJMWED8A1qirKVjUlBvgETVqugqEa5mQmRoacKO9zWurKPXCNfHx8389evha5Njd8bfPCLXIXPn1F0eQgLshQGut7XUREOJCRkfEfXCMDAwODsa7WmQOnT+t150VMevn6ne33bz+kGBgZ/3FzcTyUEBXZxcb4p0RbTek3TD1KWnUwNf3IwMAQj8u5yAAAupehfivnXOEAAAAASUVORK5CYII=", - "opacity": 0.5 - } + "type": "simple", + "fields": ["Icon point label"], + "info": [ + { + "settings": { + "type": "iconSymbol", + "mimeType": "image/png", + "src": "iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAcNJREFUKJFjYSATsCBz/v//z/Tp8+fwO/cf273/+FmckZHxn6iQwBMVJbldXJyc27Bq/P//v8jVm3cmtUxf7rX+3nN+ZEVJ+srhd+8/3KikIFfMyMj4Fa7x////zBeu3JjuXDM55Ou//xjOmnfxrsS+8t7Uze1FLAwMDClwjU+fv0irmLzYH5smGHjw/TdTz7yVIe/ef9wiJMi/gYWBgYHhxp2HXgeev2dFVtjhb8Pw7dtPhqbdp+FiCy894E+4cz+IgYEBovHDp88qyJpmxngwxIf5wfnImt+9f68Ed+rff3/ZkTVycnDA2dxcHMhSDH/+/WeHa+Tm5HzJwMCgCJMsW7SZgYmZkeHHj18M5RsPo2jk4eJ+DdcoKSZyQoeX0+LK5+8MDAwMDC9+/WWImbkeI4D85MUZJMWED8A1qirKVjUlBvgETVqugqEa5mQmRoacKO9zWurKPXCNfHx8389evha5Njd8bfPCLXIXPn1F0eQgLshQGut7XUREOJCRkfEfXCMDAwODsa7WmQOnT+t150VMevn6ne33bz+kGBgZ/3FzcTyUEBXZxcb4p0RbTek3TD1KWnUwNf3IwMAQj8u5yAAAupehfivnXOEAAAAASUVORK5CYII=", + "opacity": 0.5 + } + } + ] } }, { @@ -274,12 +297,16 @@ } }, "style": { - "styleType": "simple", - "label": "Point label", - "settings": { - "type": "simpleSymbol", - "symbol": "star" - } + "type": "simple", + "fields": ["Point label"], + "info": [ + { + "settings": { + "type": "simpleSymbol", + "symbol": "star" + } + } + ] } }, { @@ -336,12 +363,16 @@ } }, "style": { - "styleType": "simple", - "label": "Point label", - "settings": { - "type": "simpleSymbol", - "symbol": "star" - } + "type": "simple", + "fields": ["Point label"], + "info": [ + { + "settings": { + "type": "simpleSymbol", + "symbol": "star" + } + } + ] } }, { @@ -393,12 +424,16 @@ } }, "style": { - "styleType": "simple", - "label": "Point label", - "settings": { - "type": "simpleSymbol", - "symbol": "star" - } + "type": "simple", + "fields": ["Point label"], + "info": [ + { + "settings": { + "type": "simpleSymbol", + "symbol": "star" + } + } + ] } }, { @@ -450,12 +485,16 @@ } }, "style": { - "styleType": "simple", - "label": "Point label", - "settings": { - "type": "simpleSymbol", - "symbol": "star" - } + "type": "simple", + "fields": ["Point label"], + "info": [ + { + "settings": { + "type": "simpleSymbol", + "symbol": "star" + } + } + ] } } ] @@ -464,3 +503,4 @@ } ] } + diff --git a/packages/geoview-core/public/templates/layers/geojson.html b/packages/geoview-core/public/templates/layers/geojson.html index f63f19a6d0b..65d84f49d24 100644 --- a/packages/geoview-core/public/templates/layers/geojson.html +++ b/packages/geoview-core/public/templates/layers/geojson.html @@ -64,7 +64,7 @@
@@ -246,7 +242,7 @@1. Many GeoJSON Layers
window.addEventListener('load', () => { createCodeSnippet(); createConfigSnippet(); - }); + });