Skip to content

Commit bae250a

Browse files
committed
feat: Update lowcoder-sdk to version 2.4.3 and ol to version 9.2.2
1 parent b0037c5 commit bae250a

File tree

4 files changed

+40
-17
lines changed

4 files changed

+40
-17
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
"antd": "^5.15.4",
1717
"arcgis-pbf-parser": "^0.0.4",
1818
"lowcoder-cli": "^0.0.30",
19-
"lowcoder-sdk": "^2.3.4",
20-
"ol": "^9.1.0",
19+
"lowcoder-sdk": "^2.4.3",
20+
"ol": "^9.2.2",
2121
"ol-esri-styles": "^0.0.1",
2222
"ol-ext": "^4.0.18",
23-
"ol-mapbox-style": "^12.3.1",
23+
"ol-mapbox-style": "^12.3.2",
2424
"ol-pmtiles": "^0.4.0",
2525
"proj4": "^2.11.0",
2626
"prop-types": "^15.8.1",

src/LayersControl.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { Divider } from "antd";
2626
export function SourceControl() {
2727

2828
const childrenMap: any = {
29-
url: stringSimpleControl(),
29+
url: StringControl,
3030
attributions: withDefault(StringControl, ''),
3131
params: StringOrJSONObjectControl,
3232
serverType: withDefault(dropdownControl([
@@ -35,9 +35,9 @@ export function SourceControl() {
3535
{ label: "Carmentaserver", value: "carmentaserver" },
3636
{ label: "QGIS Server", value: "qgis" },
3737
]), 'geoserver'),
38-
crossOrigin: stringSimpleControl(),
38+
crossOrigin: StringControl,
3939
data: StringOrJSONObjectControl,
40-
projection: withDefault(stringSimpleControl(), `EPSG:3857`),
40+
projection: withDefault(StringControl, `EPSG:3857`),
4141
tileSize: withDefault(ArrayControl, [256, 256]),
4242
nodata: withDefault(NumberControl, 0),
4343
ratio: withDefault(NumberControl, 1),

src/i18n/comps/locales/enObj.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,20 @@ export const enObj: I18nObjects = {
5353
"pmtilesType": "vector",
5454
"url": "https://data.source.coop/cholmes/overture/overture-buildings.pmtiles",
5555
},
56-
"style": [{
57-
'fill-color': 'red',
58-
}]
56+
"style": [
57+
{
58+
filter: ['==', ['get', 'country_iso'], 'EG'],
59+
style: {
60+
'fill-color': 'red',
61+
},
62+
},
63+
{
64+
else: true,
65+
style: {
66+
'fill-color': 'blue',
67+
},
68+
},
69+
]
5970
},
6071
{
6172
"label": "GeoJson",

yarn.lock

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4309,10 +4309,10 @@ lowcoder-cli@^0.0.30:
43094309
vite-plugin-css-injected-by-js "^2.1.1"
43104310
vite-plugin-svgr "^2.2.2"
43114311

4312-
lowcoder-sdk@^2.3.4:
4313-
version "2.3.4"
4314-
resolved "https://registry.npmjs.org/lowcoder-sdk/-/lowcoder-sdk-2.3.4.tgz#3ca59afa92b100c1a35f2f51b1d3734696d286ca"
4315-
integrity sha512-05MJRdZEjksWzW/cp9TkR7Q6eW0lsnG3NQKPGGjkLfo2auxxfGyO5zPM7hpsC2LlTSfTzkZq3ouqmBIPa7vmVg==
4312+
lowcoder-sdk@^2.4.3:
4313+
version "2.4.3"
4314+
resolved "https://registry.npmjs.org/lowcoder-sdk/-/lowcoder-sdk-2.4.3.tgz#ab94287df0600b3779461662e2ab33c19561e28d"
4315+
integrity sha512-HVZTzyfTHQ6zpG6epv2AvZMI6yNisHyFnhC8KaMExJ36Voqjn8k5G7voskfxMK9a9cuC/n45mXzQcu+bbtUn8A==
43164316
dependencies:
43174317
prettier "^3.1.1"
43184318

@@ -4940,10 +4940,10 @@ ol-ext@^4.0.18:
49404940
resolved "https://registry.npmjs.org/ol-ext/-/ol-ext-4.0.18.tgz#87e68566bae1a7821e3a1af8b7019409ce922324"
49414941
integrity sha512-zzeTAoCg9IocaM7LlXiLNnVCgVmfxxLzlDTWvYn3Y2gFxtICHSfRrIQl/8vumgBjftBksVl1Fds8P5uFReTmew==
49424942

4943-
ol-mapbox-style@^12.3.1:
4944-
version "12.3.1"
4945-
resolved "https://registry.npmjs.org/ol-mapbox-style/-/ol-mapbox-style-12.3.1.tgz#155e93fc148e2a6bee80de5c2e26ba51069dcb34"
4946-
integrity sha512-pKBpKBns4YUgeFCp+aeuJtM+D2BKLc1HJmk5tFL0Nv7u7nelZnInUs/+XnSlHOa1hPBSrOyL+7CvKtegEyuYlg==
4943+
ol-mapbox-style@^12.3.2:
4944+
version "12.3.2"
4945+
resolved "https://registry.npmjs.org/ol-mapbox-style/-/ol-mapbox-style-12.3.2.tgz#1cad02b1fca019fce4a2e8814049b5706588c1fb"
4946+
integrity sha512-Qw9I6+WHz9zBsLNm8zWWb707Y/hXrQP1fcwK86pxcX/FklwyDxAhfJAdTkINHncZ331CBEWcqvi2tzoN23dgwg==
49474947
dependencies:
49484948
"@mapbox/mapbox-gl-style-spec" "^13.23.1"
49494949
mapbox-to-css-font "^2.4.1"
@@ -4967,6 +4967,18 @@ ol@^9.1.0:
49674967
pbf "3.2.1"
49684968
rbush "^3.0.1"
49694969

4970+
ol@^9.2.2:
4971+
version "9.2.2"
4972+
resolved "https://registry.npmjs.org/ol/-/ol-9.2.2.tgz#e00822a6c2bb11543af743b89a354c67651206ca"
4973+
integrity sha512-YkuZW5MQTiKrr/0al1xuKarctNRvVj/anHZuq8rYMMq5BECG5E8rEOENOVFxhrbMX6T+un48D1Q0GtqBmU8Qdg==
4974+
dependencies:
4975+
color-rgba "^3.0.0"
4976+
color-space "^2.0.1"
4977+
earcut "^2.2.3"
4978+
geotiff "^2.0.7"
4979+
pbf "3.2.1"
4980+
rbush "^3.0.1"
4981+
49704982
on-finished@2.4.1:
49714983
version "2.4.1"
49724984
resolved "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f"

0 commit comments

Comments
 (0)