map_view = {
const map = vl.markGeoshape({fill: "#ddd" , stroke : "#fff" , strokeWidth:1})
.data(vl.topojson(topo)
.feature('chicago_neighborhoods')
)
const circles = vl.markCircle({
fillOpacity: 1,
strokeWidth: 1,
strokeOpacity: 0.7
})
.data(crimes)
.encode(
vl.latitude().fieldQ('Latitude'),
vl.longitude().fieldQ('Longitude'),
vl.color().fieldN('Primary Type').legend({title:'Crime type'})
)
return vl.layer(map,circles)
.project
(vl.projection('transverseMercator')
.rotate([87.65, -41.85]).
translate(width*0.25 , 250).scale(50000))
.width(width*0.40)
.height(500)
}