Public
Edited
Feb 20, 2024
Insert cell
# base map - UD Spring 2024 - TroyV2
Insert cell
d3 = require("d3@6")
Insert cell
Insert cell
bbox = FileAttachment("boxerererer.geojson").json()
Insert cell
streets = FileAttachment("Streets.geojson").json()
Insert cell
bldgs = FileAttachment("aa RensBuildingFP.geojson").json()
Insert cell
traffic = FileAttachment("traffic.geojson").json()
Insert cell
fire = FileAttachment("firre4.geojson").json()
Insert cell
mypoints = FileAttachment("troy-historic.geojson").json()
Insert cell
haunt = "https://docs.google.com/spreadsheets/d/e/2PACX-1vQG8HcXWHsAAw44o2BILgcxKsaDuZx5dlKGLst82ViwY1fb_3X-t6qw0OSYQhdatnHiXJ8stmqsj5ip/pub?gid=2010654036&single=true&output=csv"
Insert cell
haunted = d3.csv(haunt,d3.autotype)
Insert cell
Insert cell
personal_spots = d3.csv(personal_spots_link,d3.autoType)
Insert cell
import { wrap_text, wrap_text_nchar } from "@ben-tanen/svg-text-and-tspan-word-wrapping"
Insert cell
ghostIconForMap = FileAttachment("ghost icon for map@5.txt").text()
Insert cell
icon_list = {

////create empty list
var list = []

//// loop through google sheets list
for (let i = 0; i < haunted.length; i++) {
haunted[i]

//function to add items to a list
list.push({data:haunted[i],pts:ghostIconForMap})
}


////return list
return list
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more