Skip to content

Commit 084ae14

Browse files
fix 组件 geojson 示例错误
1 parent 14ab9bc commit 084ae14

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)
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