feat: heatmap render mode & FeatureCollection for Live Data Sources#114
Merged
Conversation
…ties of the heatmap
The change handlers coerced empty input to the default via `parseInt('') || default`,
which snapped state back to the default on every keystroke that produced an empty
or non-numeric intermediate value. Now the raw string is kept in state during
editing and only parsed (with defaulting) on blur.
Affects updateInterval, heatmapRadius, heatmapBlur, heatmapInterval,
maxHeatmapFeatures.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Live data sources (sse-service entries) could not be duplicated via copy & paste like other objects. - Clipboard.canCopy: accept sse-service ids - Import.clone: rewrite sse-service keys to a fresh id so paste creates a copy instead of overwriting the original; the copy gets a new featureIdPrefix namespace and is inserted with enabled: false - ids.ord: sort all entity types before their dependent entries (link/tags/style). The previous order processed tags before their owning sse-service/tile-service, leaving the remapped tags key broken. - add Import.clone tests for sse-service duplication
Deleting a tagged object emits a del op for its tags entry. SearchIndex treats that as an associated change and rebuilds the owner's document, but the owner is already gone, so the document handler received an undefined entry and crashed on `.name`. The tile-service and layer handlers already guard for this; add the same `if (!entry) return null` guard to the sse-service and marker handlers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends Live Data Sources (SSE) with a heatmap render mode and support for FeatureCollection payloads, enables copy & paste for live data sources, plus a property-panel performance fix.
Changes
Features
FeatureCollectionpayloads in SSE streams (in addition to singleFeature); per-feature IDs are prefixed consistentlyheatmaprender mode per SSE service (alternative tovector), configurable viaheatmapRadius,heatmapBlur,heatmapOpacity, accumulationheatmapInterval, andmaxHeatmapFeaturescap (oldest evicted when exceeded)properties.confidenceis mapped to aweightattribute driving heatmap intensity (fallback0.5)vectorOpacity) now configurable per serviceenabled: falseFixes
ids.ordnow sorts all entity types before their dependent entries (link/tags/style); the previous order processed tags before their owning sse-service/tile-service, leaving the remapped tags key broken on pastenullfor a missing entry, matching the tile-service/layer handlersSpec
docs/live-data-source.mddocuments the base SSE feature. The newFeatureCollectionsupport aligns with its "Data Format" section; theheatmaprender mode is not yet documented — follow-up doc update recommended.