8000 fix 组件 geojson_layer 示例报错 · SuperMap/iClient-JavaScript@0a40d75 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a40d75

Browse files
fix 组件 geojson_layer 示例报错
1 parent fe7306b commit 0a40d75

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

examples/component/components_geojson_react.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@
6464
};
6565
var layerStyle = new SuperMap.Components.commontypes.CircleStyle();
6666

67-
$.get('../data/data671MeteorologicalStations.geojson', function(res) {
67+
$.getJSON('../data/data671MeteorologicalStations.geojson', function(res) {
6868
var data = res;
69-
7069
ReactDOM.render(
7170
<SmWebMap mapOptions={mapOptions}>
7271
<SmGeojsonLayer data={data} layerStyle={layerStyle} />

examples/component/components_geojson_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</div>
3535
<script>
3636
var data;
37-
$.get("../data/data671MeteorologicalStations.geojson", function(res) {
37+
$.getJSON("../data/data671MeteorologicalStations.geojson", function(res) {
3838
data = res;
3939
new Vue({
4040
el: "#main",

0 commit comments

Comments
 (0)
0