nimbus-geojs
БесплатноБез исполняемых скриптовНе проверенUse when working with GeoJS in AnnotationViewer.vue or ImageViewer.vue — adding/removing/reusing annotation features, the draw path, coordinate handling…
от arjunrajlaboratory★ 22 звезды на GitHubОб этом скилле
GeoJS in NimbusImage — traps and testing
GeoJS's annotation layer has several asymmetric, mutating APIs. Each trap below caused a real shipped bug or a multi-hour debug in this repo. Read the row for your symptom first.
Symptom → cause quick reference
| Symptom | Cause | Fix |
|---|---|---|
Features in layer.annotations() (count correct) but nothing paints |
Adds with update=false don't bump modified(); layer.draw() alone doesn't force _update |
Call layer.modified() when the add pass grew the feature count, then draw() |
| Re-added feature drifts off-image; dots in bands above/below image, worse each zoom in→out | addAnnotation runs ingcs→gcs conversion on EVERY add, mutating coords in place — a re-add double-converts |
Re-add already-added features with gcs = null; fresh features with gcs = undefined |
| Annotation renders mirrored above the image / invisible after coordinate update | annotation._coordinates(v) sets raw gcs (y-up) with NO conversion, but coordinates() and evt.geo return ingcs (image px, y-down) |
Never mutate an added annotation's coords — remove and recreate via factory + addAnnotation so conversion happens exactly once |
| No position updates during a drag | GeoJS suppresses mousemove during an active drag action; it fires actionmove instead |
Bind both geo_event.mousemove and geo_event.actionmove if you need live drag positions |
currentAnnotation non-null but user isn't drawing |
Completing an annotation resets layer mode to null; refreshAnnotationMode re-arms with a fresh EMPTY in-create annotation |
Non-null ≠ drawing — check currentAnnotation.coordinates().length |
| Connection lines mostly missing on a big (stub-only) dataset; more appear as you zoom in | Draw/retention gated on getAnnotationFromId, which returns undefined for unhydrated non-point annotations |
Gate on what you actually draw from (the centroid map), never on hydration — see "Hydration-coupled draw paths" |
| A specially styled feature reverts to the default style after a pan/zoom | The retained-feature restyle loop in drawNewAnnotations treats every girderId-bearing feature as an object annotation |
continue on isConnection (or your own marker) in that loop |
| A drawn feature can't be selected even though its record exists | One feature drawn per pair/group while several records map to it; the feature carries only the first record's id | Choose the selected record as the drawn representative |
Feature is in layer.annotations(), on-screen, right color — and paints nothing |
options("style", {...}) replaces the style, dropping GeoJS's default stroke: true / fill: true |
Include stroke: true explicitly, and merge: options("style", {...a.options("style"), ...next}) |
| Clicking a list row shows no connection at high zoom | A connection draws only when BOTH endpoints are displayed; recentering on one leaves the other outside the viewport | Frame both endpoints (frameCameraInfo) instead of recentering on one |
| With an axis unrolled, the camera/hit-test lands exactly one tile-width (or a multiple) away from the object | The draw path offsets each annotation by its grid cell; the other path used the raw frame-local centroid | Put both through @/utils/unroll — see "Unrolled coordinates are a third space" |
| Hover/selection highlight works on one layer and does nothing on another | The second layer decides its styling during a rebuild pass, so only the state wired to that pass is ever reflected | Give the features a base-style option and restyle them in place — see "Layers that bake style at draw time" |
Blocky, blurred color halos around shapes on a transparent tile overlay (raster overview, heat map); the layer's _activeTiles holds tiles of every level 0..current |
GeoJS tileLayer defaults to keepLower: true, which never purges coarser levels and draws them beneath the current one — invisible for opaque image tiles, but on a transparent overlay the magnified coarse tiles show through the gaps |
Create transparent overlay layers with keepLower: false (GeoJS's own comment: "important for semi-transparent layers"); confirm live by counting levels in layer._activeTiles |
| A tile layer silently loads nothing: zero network requests, no errors, later draws/toggles no-ops | tile.catch/tile.then QUEUES the tile's fetch, and the queue's needed predicate requires tile === cache.get(hash) — a handler attached inside _getTile (pre-cache.add) rejects every tile at creation; rejected tiles stay cached with _queued=true so nothing ever refetches them |
Attach tile promise handlers only post-cache: wrap _getTileCached, never _getTile — see "Tile promise handlers queue the fetch" |
A new WebGL tile overlay loads every tile (200s, _activeTiles and the quad feature full) but its canvas stays empty, often only after a page reload or on a single-level image; layer.draw() does not help |
The WebGL tile layer |
Установить nimbus-geojs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл nimbus-geojs?
Use when working with GeoJS in AnnotationViewer.vue or ImageViewer.vue — adding/removing/reusing annotation features, the draw path, coordinate handling, drawing-tool interaction events, or writing/debugging AnnotationViewer.test.ts. Symptoms this skill explains: annotations invisible though layer.annotations() has them, features drifting off-image or mirrored after re-add, dots in bands above/below the image, live drag positions not updating, annotations vanishing after z-scrubbing.
Как установить скилл nimbus-geojs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nimbus-geojs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic