Skip to content

Commit

Permalink
fix 组件 geojson_layer 示例报错
Browse files Browse the repository at this point in the history
  • Loading branch information
xilanhuaweidapao committed Oct 18, 2024
1 parent fe7306b commit 0a40d75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/component/components_geojson_react.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@
};
var layerStyle = new SuperMap.Components.commontypes.CircleStyle();

$.get('../data/data671MeteorologicalStations.geojson', function(res) {
$.getJSON('../data/data671MeteorologicalStations.geojson', function(res) {
var data = res;

ReactDOM.render(
<SmWebMap mapOptions={mapOptions}>
<SmGeojsonLayer data={data} layerStyle={layerStyle} />
Expand Down
2 changes: 1 addition & 1 deletion examples/component/components_geojson_vue.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</div>
<script>
var data;
$.get("../data/data671MeteorologicalStations.geojson", function(res) {
$.getJSON("../data/data671MeteorologicalStations.geojson", function(res) {
data = res;
new Vue({
el: "#main",
Expand Down

0 comments on commit 0a40d75

Please sign in to comment.