ol 10.1.1-dev.1726919192808 → 10.1.1-dev.1726937585458
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/package.json +1 -1
- package/util.js +1 -1
- package/webgl/styleparser.d.ts.map +1 -1
- package/webgl/styleparser.js +15 -18
package/package.json
CHANGED
package/util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styleparser.d.ts","sourceRoot":"","sources":["styleparser.js"],"names":[],"mappings":"AAsBA;;;;;;;GAOG;AACH,qDALW,OAAO,gBAAgB,EAAE,kBAAkB,SAC3C,OAAO,uBAAuB,EAAE,iBAAiB,sCAEhD,MAAM,CAUjB;AAED;;;;GAIG;AACH,iCAHW,OAAO,aAAa,EAAE,KAAK,GAAC,MAAM,GACjC,KAAK,CAAC,MAAM,CAAC,CASxB;AAqCD;;;;GAIG;AACH,mCAHW,MAAO,MAAM,GACZ,MAAM,CAOjB;AA4uBD;;;;;GAKG;AAEH;;;;;;;;;;GAUG;AACH,yCAHW,OAAO,mBAAmB,EAAE,UAAU,GACrC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"styleparser.d.ts","sourceRoot":"","sources":["styleparser.js"],"names":[],"mappings":"AAsBA;;;;;;;GAOG;AACH,qDALW,OAAO,gBAAgB,EAAE,kBAAkB,SAC3C,OAAO,uBAAuB,EAAE,iBAAiB,sCAEhD,MAAM,CAUjB;AAED;;;;GAIG;AACH,iCAHW,OAAO,aAAa,EAAE,KAAK,GAAC,MAAM,GACjC,KAAK,CAAC,MAAM,CAAC,CASxB;AAqCD;;;;GAIG;AACH,mCAHW,MAAO,MAAM,GACZ,MAAM,CAOjB;AA4uBD;;;;;GAKG;AAEH;;;;;;;;;;GAUG;AACH,yCAHW,OAAO,mBAAmB,EAAE,UAAU,GACrC,gBAAgB,CAuI3B;;;;;aArJa,aAAa;;;;cACb,OAAO,wCAAwC,EAAE,kBAAkB;;;;gBACnE,OAAO,wCAAwC,EAAE,oBAAoB;;8BAt0BvD,oBAAoB"}
|
package/webgl/styleparser.js
CHANGED
|
@@ -973,24 +973,21 @@ export function parseLiteralStyle(style) {
|
|
|
973
973
|
const attributes = {};
|
|
974
974
|
for (const propName in vertContext.properties) {
|
|
975
975
|
const property = vertContext.properties[propName];
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
return value;
|
|
992
|
-
};
|
|
993
|
-
}
|
|
976
|
+
const callback = (feature) => {
|
|
977
|
+
const value = property.evaluator
|
|
978
|
+
? property.evaluator(feature)
|
|
979
|
+
: feature.get(property.name);
|
|
980
|
+
if (property.type === ColorType) {
|
|
981
|
+
return packColor([...asArray(value || '#eee')]);
|
|
982
|
+
}
|
|
983
|
+
if (typeof value === 'string') {
|
|
984
|
+
return getStringNumberEquivalent(value);
|
|
985
|
+
}
|
|
986
|
+
if (typeof value === 'boolean') {
|
|
987
|
+
return value ? 1 : 0;
|
|
988
|
+
}
|
|
989
|
+
return value;
|
|
990
|
+
};
|
|
994
991
|
|
|
995
992
|
attributes[property.name] = {
|
|
996
993
|
size: getGlslSizeFromType(property.type),
|