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