Skip to content

Commit

Permalink
Update README.md (#12)
Browse files Browse the repository at this point in the history
代码错误,缺少new关键字
  • Loading branch information
kkak1990 authored Aug 24, 2024
1 parent 7e5e5bd commit af4b4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ groupLayer.addLayer(polygonLayer);
center: [0, 0],
zoom: 2
});
const vtLayer = maptalks.VectorTileLayer('vt', {
const vtLayer = new maptalks.VectorTileLayer('vt', {
urlTemplate: 'http://tile.maptalks.com/test/planet-single/{z}/{x}/{y}.mvt'
});
Expand Down

0 comments on commit af4b4ba

Please sign in to comment.