Skip to content

CDP #428 - Preload map data#464

Merged
dleadbetter merged 16 commits intodevelopfrom
feature/cdp428_preload_map
Feb 4, 2026
Merged

CDP #428 - Preload map data#464
dleadbetter merged 16 commits intodevelopfrom
feature/cdp428_preload_map

Conversation

@dleadbetter
Copy link
Contributor

@dleadbetter dleadbetter commented Jan 28, 2026

This pull request implements the ability to preload map data at build time. This is particularly useful for projects which use large spatial data sets.

Note: This pull request is dependent on a release of peripleo and react-components. I figured I'd open the PR and set it as a draft to get eyes on it while those releases are in progress.

Screen.Recording.2026-01-28.at.3.05.03.PM.mov

The change introduces a new environment variable, PRELOAD_MAP. If set to true, at build time we will fetch the geometry data and store it in the Astro content layer (separate from the Place data). At request time, each item on the map will load the geometry data from an Astro endpoint. This reduces the memory load on the browser.

If we're preloading map data, all items on the map will be rendered as individual layers, as opposed to a single GeoJSON layer. As a results, there is a work-around in MapSearchContextProvider to calculate the bounding box for the visible layers.

@netlify
Copy link

netlify bot commented Jan 28, 2026

Deploy Preview for gbof-c19nyc-staging ready!

Name Link
🔨 Latest commit bb8b990
🔍 Latest deploy log https://app.netlify.com/projects/gbof-c19nyc-staging/deploys/697cc9e253e84e00086b6439
😎 Deploy Preview https://deploy-preview-464--gbof-c19nyc-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 28, 2026

Deploy Preview for juel-staging ready!

Name Link
🔨 Latest commit bb8b990
🔍 Latest deploy log https://app.netlify.com/projects/juel-staging/deploys/697cc9e211925f0008ac18dc
😎 Deploy Preview https://deploy-preview-464--juel-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 28, 2026

Deploy Preview for registro-project ready!

Name Link
🔨 Latest commit bb8b990
🔍 Latest deploy log https://app.netlify.com/projects/registro-project/deploys/697cc9e2a80bf70008fb52e9
😎 Deploy Preview https://deploy-preview-464--registro-project.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 28, 2026

Deploy Preview for padp-staging ready!

Name Link
🔨 Latest commit bb8b990
🔍 Latest deploy log https://app.netlify.com/projects/padp-staging/deploys/697cc9e2fc999900080fe8a9
😎 Deploy Preview https://deploy-preview-464--padp-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 28, 2026

Deploy Preview for universities-studying-slavery-staging ready!

Name Link
🔨 Latest commit bb8b990
🔍 Latest deploy log https://app.netlify.com/projects/universities-studying-slavery-staging/deploys/697cc9e24317ed000854a921
😎 Deploy Preview https://deploy-preview-464--universities-studying-slavery-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 28, 2026

Deploy Preview for juel-ancestry ready!

Name Link
🔨 Latest commit bb8b990
🔍 Latest deploy log https://app.netlify.com/projects/juel-ancestry/deploys/697cc9e2af58970008161f82
😎 Deploy Preview https://deploy-preview-464--juel-ancestry.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 28, 2026

Deploy Preview for pss-scavenger-hunt ready!

Name Link
🔨 Latest commit bb8b990
🔍 Latest deploy log https://app.netlify.com/projects/pss-scavenger-hunt/deploys/697cc9e2ef80470008b6c2fe
😎 Deploy Preview https://deploy-preview-464--pss-scavenger-hunt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 28, 2026

Deploy Preview for libertos ready!

Name Link
🔨 Latest commit bb8b990
🔍 Latest deploy log https://app.netlify.com/projects/libertos/deploys/697cc9e2a629af0008f5be28
😎 Deploy Preview https://deploy-preview-464--libertos.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 28, 2026

Deploy Preview for juel-life ready!

Name Link
🔨 Latest commit bb8b990
🔍 Latest deploy log https://app.netlify.com/projects/juel-life/deploys/697cc9e2f2b67600085b15be
😎 Deploy Preview https://deploy-preview-464--juel-life.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dleadbetter dleadbetter added the next release Issues in the next release label Jan 28, 2026
@dleadbetter dleadbetter marked this pull request as draft January 28, 2026 21:13
Copy link
Contributor

@camdendotlol camdendotlol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@dleadbetter dleadbetter marked this pull request as ready for review January 30, 2026 14:25
@dleadbetter dleadbetter merged commit 6b16b8a into develop Feb 4, 2026
36 checks passed
@dleadbetter dleadbetter deleted the feature/cdp428_preload_map branch February 4, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

next release Issues in the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants