Skip to content

Commit 5ef0210

Browse files
committed
【fix】扩展微件示例。
1 parent 30e5211 commit 5ef0210

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/leaflet/widgets_openFileWidget_react.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
}
9595
}
9696

97-
var openFileViewModel = new L.supermap.widgets.OpenFileViewModel(map);
97+
var openFileViewModel = L.supermap.widgets.openFileViewModel(map);
9898
var messageBox = new SuperMap.Widgets.MessageBox();
9999
ReactDOM.render(
100100
<AddData openFileViewModel={openFileViewModel} messageBox={messageBox} text={resources.text_openFile}/>,

examples/leaflet/widgets_openFileWidget_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
var baseLayers = L.supermap.tiledMapLayer(url).addTo(map);
2626
var layersControl = L.control.layers({"baseLayers": baseLayers}, {}, {"position": 'topleft'}).addTo(map);
2727

28-
var openFileViewModel = new L.supermap.widgets.OpenFileViewModel(map);
28+
var openFileViewModel = L.supermap.widgets.openFileViewModel(map);
2929
var messageBox = new SuperMap.Widgets.MessageBox();
3030

3131
initEditView();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy