Skip to content

Commit c5d690a

Browse files
committed
Website updates
1 parent a70326d commit c5d690a

File tree

6 files changed

+20
-23
lines changed

6 files changed

+20
-23
lines changed

dist/en/main/examples/common.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/webgl/styleparser.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/webgl/styleparser.js

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -973,24 +973,21 @@ export function parseLiteralStyle(style) {
973973
const attributes = {};
974974
for (const propName in vertContext.properties) {
975975
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+
};
994991

995992
attributes[property.name] = {
996993
size: getGlslSizeFromType(property.type),

0 commit comments

Comments
 (0)