Remoogle
Pin drop + clustering map
Pin drop + clustering map 미리보기
장면

Pin drop + clustering map

@opus-motion-library/pin-drop-cluster

출처 Opus Motion Library

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= 120

    cluster radius in px (1080 scale): bigger merges more

  • zoomnumber= 2.2

    camera zoom-in factor for the split beat

  • pinSizenumber= 58

    pin height in px (1080 scale)

  • speednumber= 1

    timeline speed multiplier

  • startAtnumber= 0

    frame 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

카테고리