Skip to content

Pass image URLs straight to ImageIcon in the samples - #42

Merged
wf9a5m75 merged 2 commits into
developfrom
feat/image-icon-url
Nov 6, 2026
Merged

wf9a5m75 merged 2 commits into
developfrom
feat/image-icon-url

Conversation

@wf9a5m75

@wf9a5m75 wf9a5m75 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Uses the new new ImageIcon(url, …) from MapConductor/js-sdk-core#24 (merged) and points js-sdk-core at that merge.

  • Post office (and its cluster page): new ImageIcon(markerImageUrl, …) instead of loading the image first.
  • Marker icons page: the weather icon is new ImageIcon(WEATHER_ICON_URL, …).

Verified in headless Chrome on MapLibre and Google Maps: 24,526 tiled post-office markers draw from one image fetch; with the image delayed, markers appear once it arrives.

The post-office markers and the weather icon on the marker icons page no
longer load their images first; ImageIcon takes the URL and redraws the
markers once the image arrives. Needs js-sdk-core feat/image-icon-url.
MapConductor/js-sdk-core#24 lets ImageIcon take an image URL, which the
samples now use.
@wf9a5m75
wf9a5m75 merged commit a7880a2 into develop Nov 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant