chart = {
const width = 20660,
height = 18660;
const svg = d3.create("svg")
.attr("viewBox", [-200, 415, width-900, height-445]);
var projection = d3
.geoMercator()
.fitSize([width - 50, height - 50], bbox);
var path1 = d3.geoPath().projection(projection);
var path2 = d3.geoPath().projection(projection);
var path3 = d3.geoPath().projection(projection);
var path4 = d3.geoPath().projection(projection);
var g = svg.append("g").attr("id", "paths");
g.selectAll("path2")
.data(streets.features)
.enter()
.append("path")
.attr('class','outlines')
.attr("d", path2)
.style("fill", "none")
.style('stroke-opacity','1')
.style("stroke-width", '5')
.style("stroke", "red")
g.selectAll("path3")
.data(bldgs.features)
.enter()
.append("path")
.attr('class','outlines')
.attr("d", path3)
.style("fill", "rgb(240,240,240)")
.style("fill-opacity", "1")
.style('stroke-opacity','.1')
.style("stroke-width", '.5')
.style("stroke", "black")
var c = svg.selectAll("circle")
.data(mypoints.features)
.enter()
.append("circle")
.attr("cx", function(d) {return path1.centroid(d)[0]})
.attr("cy", function(d) {return path1.centroid(d)[1]})
.attr('r',100)
.style('fill','cyan')
.style('fill-opacity','1')
.on('mouseover',fireText)
.on('mouseout',removefireText)
function fireText(event,d){
console.log(d)
svg
.append("text")
.attr('x','500')
.attr('y','1820')
.attr('class','mypoints_position')
.style('font-family','helvetica')
.style('font-size','400px')
.style('font-weight','light')
.text(d.properties.description)
var wrap = svg.selectAll("text.mypoints_position")
.each(function(d, i) { wrap_text(d3.select(this), 100) });
svg
.append("line")
.attr('x1','1520')
.attr('y1','2400')
.attr('x2', path1.centroid(d)[0])
.attr('y2', path1.centroid(d)[1])
.attr('class','fireLine')
.style("stroke-width", '10')
.style("stroke", "rgb(0,0,0)")
.style('stroke-dasharray', '6 4')
}
function removefireText(){
d3.selectAll('text.mypoints_position').remove()
d3.selectAll('line.fireLine').remove()
}
c.enter().append("circle")
.data(fire)
.enter()
.append("circle")
.attr("cx", function(d) {return projection([d.long,d.lat])[0]})
.attr("cy", function(d) {return projection([d.long,d.lat])[1]})
.attr('r',3)
.style('stroke','black')
.style('stroke-width','1')
.style('fill','cyan')
.style('fill-opacity','1')
var t = svg.selectAll("text")
.data(mypoints.features)
.enter()
.append("text")
.attr("x", function(d) {return path1.centroid(d)[0]})
.attr("y", function(d) {return path1.centroid(d)[1]-150})
.style('font-family','helvetica')
.style('font-size','200px')
.style('text-anchor','middle')
.style('font-weight','bold')
.text(function(d) {return d.properties.name})
var z = svg.selectAll("text")
.data(fire.features)
.enter()
.append("text")
.attr("x", function(d) {return path4.centroid(d)[0]})
.attr("y", function(d) {return path4.centroid(d)[1]-7})
.style('font-family','helvetica')
.style('font-size','8px')
.style('text-anchor','middle')
.style('font-weight','bold')
.text(function(d) {return d.properties.name})
svg
.append("text")
.attr('x','420')
.attr('y','860')
.style('font-family','helvetica')
.style('font-size','500px')
.style('font-weight','bold')
.text('Places to Know at RPI')
svg
.append("text")
.attr('x','420')
.attr('y','1400')
.style('font-family','helvetica')
.style('font-size','400px')
.style('font-weight','bold')
.text('Building Location:')
svg
.append("line")
.attr('x1','420')
.attr('y1','1000')
.attr('x2','10000')
.attr('y2','1000')
.style("stroke-width", '110')
.style("stroke", "rgb(0,0,0)")
var p = svg.selectAll("polyline")
.data(tester)
.enter()
.append("polyline")
.attr("points", function(d) {return d})
.style('fill','red')
.style('stroke','black')
.style('stroke-width','2')
p.enter().append("polyline")
.data(tester)
.enter()
.append("polyline")
.attr("points", function(d) {return d})
.style('fill','red')
.style('stroke','black')
.style('stroke-width','2')
return svg.node();
}