bugfix
This commit is contained in:
parent
ffc858ac29
commit
0be9e0a56d
4
dist/main.js
vendored
4
dist/main.js
vendored
|
@ -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
2
dist/main.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue