
场景
Pin drop + clustering map
@opus-motion-library/pin-drop-cluster
Map pins drop onto a map region, merge into numbered cluster bubbles, split into single pins as the camera zooms in, then merge again.
安装
node cli/mgl.mjs add pin-drop-cluster --to <your-project>/src适用场景
- 适合
- Store/user/event locators, "customers worldwide", coverage and density stories, any list of lat/lon points that needs to read as a map with counts.
规格
- 时长
- 270f · 9s
- 时长类型
- 固定时长
- FPS
- 30
- 许可证
- MIT
Props(17)
pointsarray= [{"lat":45.96,"lon":-1.14},{"lat":48.21,"lon":0.89},{"lat":46.76,"lon":-1.21},{"lat":49.07,"lon":-1.29},{"lat":49.72,…array of {lat, lon, label?}; the camera auto-fits them (labels show when a pin is single and zoomed in)
titlestring= "Locations"headline, top left
subtitlestring= "Every point, grouped by density"line under the headline
unitstring= "locations"noun for the big counter (locations, stores, users)
clusterSizenumber= 120cluster radius in px (1080 scale): bigger merges more
zoomnumber= 2.2camera zoom-in factor for the split beat
pinSizenumber= 58pin height in px (1080 scale)
speednumber= 1timeline speed multiplier
startAtnumber= 0frame to start at
backgroundstring= "#0B1220"map ocean colour, or "transparent"
landstring= "#17243C"land fill
landStrokestring= "#2F4468"coastline + graticule colour
inkstring= "#E8EEF9"text colour
accentstring= "#FF7A59"pin colour
accent2string= "#4CC9F0"cluster bubble colour
onAccentstring= "#0B1220"text/dot colour drawn on accent shapes
fontFamilystring= "stub"CSS font-family