Skip to content

Commit fec593a

Browse files
fix 组件 geojson 示例错误
1 parent 3a5421c commit fec593a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/component/components_geojson_react.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
var layerStyle = new SuperMap.Components.commontypes.CircleStyle();
6666

6767
$.get('../data/data671MeteorologicalStations.geojson', function(res) {
68-
var data = JSON.parse(res);
68+
var data = res;
6969

7070
ReactDOM.render(
7171
<SmWebMap mapOptions={mapOptions}>

examples/component/components_geojson_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<script>
3636
var data;
3737
$.get("../data/data671MeteorologicalStations.geojson", function(res) {
38-
data = JSON.parse(res);
38+
data = res;
3939
new Vue({
4040
el: "#main",
4141
data() {

0 commit comments

Comments
 (0)