Skip to content

Pin maplibre-js version#106

Merged
giswqs merged 1 commit intomainfrom
maplibre
Nov 7, 2025
Merged

Pin maplibre-js version#106
giswqs merged 1 commit intomainfrom
maplibre

Conversation

@giswqs
Copy link
Copy Markdown
Member

@giswqs giswqs commented Nov 7, 2025

maplibre-js v5.11.0 has some issues with the geoman draw control. This PR pins maplibre-js to the working version v0.5.10.0

Copilot AI review requested due to automatic review settings November 7, 2025 05:36
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 7, 2025

@github-actions github-actions Bot temporarily deployed to pull request November 7, 2025 05:37 Inactive
@giswqs giswqs merged commit a063149 into main Nov 7, 2025
13 checks passed
@giswqs giswqs deleted the maplibre branch November 7, 2025 05:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the dependency versions for MapLibre GL from using @latest to a pinned version @5.10.0 across all JavaScript and Python files to ensure more predictable and stable behavior.

  • Replaces all maplibre-gl@latest references with maplibre-gl@5.10.0 in JavaScript widgets and Python templates
  • Updates both JavaScript and CSS file URLs for MapLibre GL
  • Applies the same versioning update to the geogrid-maplibre-gl package

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
anymap/static/maplibre_widget.js Updates MapLibre GL JS/CSS URLs to version 5.10.0; also updates geogrid-maplibre-gl references
anymap/static/maplibre_compare_widget.js Updates MapLibre GL JS/CSS URLs to version 5.10.0 in comparison widget
anymap/static/deckgl_widget.js Updates MapLibre GL JS/CSS URLs to version 5.10.0 in DeckGL widget
anymap/deckgl.py Updates MapLibre GL CDN URLs to version 5.10.0 in Python HTML template generation
anymap/compare.py Updates MapLibre GL CDN URLs to version 5.10.0 in Python comparison template

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

try {
// Load GeoGrid as ES module via dynamic import
const geoGridModule = await import('https://unpkg.com/geogrid-maplibre-gl@latest');
const geoGridModule = await import('https://unpkg.com/geogrid-maplibre-gl@5.10.0');
Copy link

Copilot AI Nov 7, 2025

Choose a reason for hiding this comment

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

The version 5.10.0 appears to be incorrect for the geogrid-maplibre-gl package. This version number (5.10.0) corresponds to maplibre-gl, not geogrid-maplibre-gl. The geogrid-maplibre-gl package has its own separate versioning scheme. This should either use @latest or a valid geogrid-maplibre-gl version number (e.g., @1.0.0 or similar, depending on the actual package versions available).

Copilot uses AI. Check for mistakes.
const geogridCSS = document.createElement('link');
geogridCSS.rel = 'stylesheet';
geogridCSS.href = 'https://unpkg.com/geogrid-maplibre-gl@latest/dist/geogrid.css';
geogridCSS.href = 'https://unpkg.com/geogrid-maplibre-gl@5.10.0/dist/geogrid.css';
Copy link

Copilot AI Nov 7, 2025

Choose a reason for hiding this comment

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

The version 5.10.0 appears to be incorrect for the geogrid-maplibre-gl package CSS file. This version number (5.10.0) corresponds to maplibre-gl, not geogrid-maplibre-gl. The geogrid-maplibre-gl package has its own separate versioning scheme. This should either use @latest or a valid geogrid-maplibre-gl version number that matches the JavaScript import on line 3338.

Suggested change
geogridCSS.href = 'https://unpkg.com/geogrid-maplibre-gl@5.10.0/dist/geogrid.css';
geogridCSS.href = 'https://unpkg.com/geogrid-maplibre-gl@latest/dist/geogrid.css';

Copilot uses AI. Check for mistakes.
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.

2 participants