8000 【example】更新online例子 · SuperMap/iClient-JavaScript@661e745 · GitHub
[go: up one dir, main page]

Skip to content

Commit 661e745

Browse files
committed
【example】更新online例子
1 parent 483c3eb commit 661e745

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/leaflet/onlineSecurity.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ <h4 data-i18n="resources.title_onlineSecurity"></h4>
150150
serverType: L.supermap.ServerType.ONLINE
151151
}).getMapInfo(function (json) {
152152
if (json.error) {
153-
widgets.alert.showAlert(JSON.stringify(json.error), false);
153+
widgets.alert.showAlert(JSON.stringify(json.error), false, 700);
154154
} else {
155-
widgets.alert.showAlert(JSON.stringify(json.result), true);
155+
widgets.alert.showAlert(JSON.stringify(json.result), true, 700);
156156
}
157157
});
158158
}

examples/openlayers/onlineSecurity.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ <h4 data-i18n="resources.title_onlineSecurity"></h4>
150150
serverType: ol.supermap.ServerType.ONLINE
151151
}).getMapInfo(function (json) {
152152
if (json.error) {
153-
widgets.alert.showAlert(JSON.stringify(json.error), false);
153+
widgets.alert.showAlert(JSON.stringify(json.error), false, 700);
154154
} else {
155-
widgets.alert.showAlert(JSON.stringify(json.result), true);
155+
widgets.alert.showAlert(JSON.stringify(json.result), true, 700);
156156
}
157157
});
158158
}

0 commit comments

Comments
 (0)
0