map_view = {
const mapa = vl.markGeoshape({fill: "#ddd", stroke: "#fff", strokeWidth:1})
.data(vl.topojson(topo).feature("chicago_neighborhoods"))
const pontos = vl.markCircle({size: 30, opacity: 1, stroke: '#000', strokeWidth: 0.3})
.data(crimes)
.encode(
vl.latitude().fieldQ('Latitude'),
vl.longitude().fieldQ('Longitude'),
vl.color().fieldN("Primary Type").legend({title: 'Crime Type'})
)
return vl.layer(mapa, pontos)
.project(
vl.projection("mercator")
)
.width(width*0.3)
.height(400)
}