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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "10.1.1-dev.1726919192808",
3
+ "version": "10.1.1-dev.1726937585458",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
package/util.js CHANGED
@@ -33,4 +33,4 @@ export function getUid(obj) {
33
33
  * OpenLayers version.
34
34
  * @type {string}
35
35
  */
36
- export const VERSION = '10.1.1-dev.1726919192808';
36
+ export const VERSION = '10.1.1-dev.1726937585458';
@@ -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,CA0I3B;;;;;aAxJa,aAAa;;;;cACb,OAAO,wCAAwC,EAAE,kBAAkB;;;;gBACnE,OAAO,wCAAwC,EAAE,oBAAoB;;8BAt0BvD,oBAAoB"}
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"}
@@ -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
- let callback;
977
- if (property.evaluator) {
978
- callback = property.evaluator;
979
- } else {
980
- callback = (feature) => {
981
- const value = feature.get(property.name);
982
- if (property.type === ColorType) {
983
- return packColor([...asArray(value || '#eee')]);
984
- }
985
- if (typeof value === 'string') {
986
- return getStringNumberEquivalent(value);
987
- }
988
- if (typeof value === 'boolean') {
989
- return value ? 1 : 0;
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),