This commit is contained in:
TuxCoder 2019-07-10 00:03:35 +02:00
parent ffc858ac29
commit 0be9e0a56d
3 changed files with 7 additions and 7 deletions

6
dist/main.js vendored
View file

@ -39419,13 +39419,13 @@ var map = new ol_Map_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"]({
for (var regexp in styles[key]) { for (var regexp in styles[key]) {
if (new RegExp(regexp).test(value)) { if (new RegExp(regexp).test(value)) {
var style = styles[key][regexp]; var style = styles[key][regexp];
if(feature.get('name') !== undefined ) { var text = feature.get('name');
var text = feature.get('name'); if(text !== undefined ) {
if(feature.get('size') !== undefined) { if(feature.get('size') !== undefined) {
text += '\n' + feature.get('size'); text += '\n' + feature.get('size');
} }
style.getText().setText(text);
} }
style.getText().setText(text);
return style; return style;
} }
} }

2
dist/main.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -158,13 +158,13 @@ var map = new Map({
for (var regexp in styles[key]) { for (var regexp in styles[key]) {
if (new RegExp(regexp).test(value)) { if (new RegExp(regexp).test(value)) {
var style = styles[key][regexp]; var style = styles[key][regexp];
if(feature.get('name') !== undefined ) { var text = feature.get('name');
var text = feature.get('name'); if(text !== undefined ) {
if(feature.get('size') !== undefined) { if(feature.get('size') !== undefined) {
text += '\n' + feature.get('size'); text += '\n' + feature.get('size');
} }
style.getText().setText(text);
} }
style.getText().setText(text);
return style; return style;
} }
} }