10
我已经创建了一个从mbtile转换为geojson的地图,投影为WGS84。我加载它像:d3.js在d3.geo.path中添加一个圆圈
var map = svg.append("g").attr("class", "map");
var path = d3.geo.path().projection(d3.geo.albers().origin([3.4,46.8]).scale(12000).translate([590, 570]));
d3.json('myjsonfile.json', function(json) {
map.selectAll('path').data(json.features).enter().append('path').attr('d', path)
});
现在我想用它(纬度,经度)在我的SVG坐标添加SVG元素(点,圆,点(我不知道)) 。
我不知道该怎么做。