问题描述
我的代码如下。使用 Windows 10,Delphi 2010。
d3.json('data/non_us_first_100.geojson').then(function(bb) {
let width = 700,height = 580;
let projection = d3.geoEquirectangular();
projection.fitSize([width,height],bb);
let geoGenerator = d3.geoPath().projection(projection);
let svg = d3.select("body").append('svg')
.style("width",width).style("height",height);
svg.append('g').selectAll('path')
.data(bb.features)
.join('path')
.attr('d',geoGenerator)
.attr('fill','#088')
.attr('stroke','#000');
});
文件中的错误:
SysUtils.pas
代码片段如下:
[DCC Error] OTFEFreeOTFE_U.pas(3199): E2251 Ambiguous overloaded call to 'StrLen'
SysUtils.pas(7863): Related method: function StrLen(const PAnsiChar): Cardinal;
SysUtils.pas(7892): Related method: function StrLen(const PWideChar): Cardinal;
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)