datacommonsorg/website

[Map] consider scaling points on a map when zooming

chejennifer opened this issue · 1 comments

right now, the points will get bigger as we zoom into the map, might want to consider scaling the points as we zoom

  • although, by not scaling the points, it keeps the points proportional to the size of the region which might also make sense ..

To achieve the points scaling, can use something like (from @dwnoble ):

// change DEFAULT_MIN_DOT_SIZE to originally configured point size
map
  .selectAll("circle")
  .attr("r", (DEFAULT_MIN_DOT_SIZE * 2) / d3.event.transform.k);

moved to buganizer