streetview = embedWithSpecificVersions(
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 900,
"height": 560,
"padding": {"top": 0, "left": 0, "right": 0, "bottom": 0},
"autosize": "none",
data: [
{
"name": "streetsVan",
"values": VanStreets,
format: { type: "json", feature: "vanstreets" },
transform: [
{
type: "geopath",
projection: "projection"
}
]
}],
"signals": [
{
"name": "hover", "init": null,
"streams": [
{"type": "path:mouseover", "expr": "datum"},
{"type": "path:mouseout", "expr": "null"}
]
}],
projections: [
{
name: "projection",
type: "mercator",
scale: 200000,
center: d3.geoCentroid(VanStreets)
}
],
marks: [
{
type: "path",
from: { data: "streetsVan" },
encode: {
enter: {
stroke: { value: "#bbbbbb" },
"tooltip": {"signal": "{'Block': datum}"}
},
update: {
path: { field: "path" },
stroke: { value: "#bbbbbb" }
},
hover:
{
path: { field: "path" },
stroke: { value: "#dd0000" }
}
}
}]
})