Update dependency org.webjars.npm:leaflet to v1.9.4 #4
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.
This PR contains the following updates:
1.5.1->1.9.4Warning
Some dependencies could not be looked up. Check the warning logs for more information.
Release Notes
Leaflet/Leaflet (org.webjars.npm:leaflet)
v1.9.4Compare Source
After two and a half years of hard work, we’re thrilled to announce the first alpha release of Leaflet 2.0!
This release marks a major modernization of the Leaflet codebase. We've dropped support for Internet Explorer, removed legacy methods and polyfills, adopted modern standards like Pointer Events, and now publish Leaflet as an ESM module. The global
Lis no longer part of the core package (though it’s still available in the bundled versionleaflet-global.jsfor backward compatibility).For more information checkout the blog post: https://leafletjs.com/2025/05/18/leaflet-2.0.0-alpha.html
What's New in Leaflet 2.0
MouseandTouchevents toPointerEventsMigration
L.marker(latlng)➜new Marker(latlng)<script>tag tomodule:<script type='module'>Lwith explicit imports from the Leaflet package:import { Marker } from 'leaflet'importmap: https://leafletjs.com/examples/quick-start/module-script, assign them to thewindowobject (Not recommended):window.map = mapOld implementation
New implementation
Module
Global Script
Need Legacy Support?
Check out this polyfill package to help ease the transition for legacy apps: Leaflet V1 Polyfill
v1.9.3Compare Source
🙌 Accessibility
🐞 Bug fixes
Lglobal (#8536 by @mourner)setMaxBounds(map.getBounds())(#8534 by @rjackson)latLngsToCoords()does not return references passed to it (#7344 by @marlo22)worldCopyJump()behavior is consistent when using a keyboard (#8562 by @Falke-Design)popupopenevent (#8571 by @Belair34)Popup(#8520 by @rjackson)position: stickyfor map container (#8550 by @tmiaa)v1.9.2Compare Source
🐞 Bug fixes
leaflet/dist/leaflet-src.esm.jsexplicitly instead to take advantage; ESM by default will come in v2) (#8493 by @jonkoops)🧪 Tests
📝 Docs
Boundsequalsparameters in docs (#8500 by @Falke-Design)v1.9.1Compare Source
Eventslistensnot propagating to parent objects, in particular fixing compatibility with Leaflet.markercluster plugin (#8211 by @Falke-Design)v1.8.0Compare Source
contextmenuevent simulation on mobile Safari by introducing a newTapHoldhandler, replacing legacyTap(#7026 by @johnd0e)DivOverlay/Popup/TooltipAPIs (#7540 by @johnd0e)Popuprelated options fromDivOverlaytoPopup(#7778 by @Falke-Design)Tooltipclass fromleaflet-clickabletoleaflet-interactive(#7719 by @Falke-Design)Map.closeTooltipnow requires a layer as argument (#7533 by @johnd0e)DomEvent.Pointer) (#7059, #7084, #7415 by @johnd0e)dblclickevent simulation on touch devices (DomEvent.DoubleTap) (#7027 by @johnd0e)disableClickPropagation(#7439 by @johnd0e)MaphasLayer()andLayerGrouphasLayer()to require a layer as argument (#6999 by @johnd0e)Class.includeto not overwriteoptions(#7756 by @johnd0e)Class.extendto not modify source props object (#6766 by @johnd0e)Browser.touchtouch devices detection (#7029 by @johnd0e)font-sizerelative to the map container. (You can change the font size onleaflet-containerto adjust it if needed.) (#7800 by @Chandu-4444)❇️ API changes
DivOverlay/Tooltipinteractive(#7531, #7532 by @johnd0e)openOn,close,togglefunctions toDivOverlay(#6639 by @johnd0e)DomEvent.off(el)to remove all listeners (#7125 by @johnd0e)falsetoUtil.formatNum/toGeoJSON(#7100 by @johnd0e)autoPanOnFocustoMarker(#8042 by @IvanSanchez)referrerPolicytoTileLayer(#7945 by @natevw)playsInlinetoVideoOverlay(#7928 by @Falke-Design)getCentertoImageOverlay(#7848 by @Falke-Design)tileabortevent when aTileLayerload is cancelled (#6786 by @dstndstn)crossOrigintoIcon(#7298 by @syedmuhammadabid)✨ Improvements
will-changeCSS property on tile images (#7872 by @janjaap)GridLayer.onAdd(#7570 by @johnd0e)panInside(#7469 by @daverayment)TileLayerURL (#7216 by @lubojr)Tooltipbound toImageOverlay(#7306 by @IvanSanchez)mousemovethrough Canvas to map if it has no layers (#7809 by @johnd0e)LayertoControl.Attribution(#7764 by @johnd0e)vmlCreate()so that it does not expose closure toTypeError(#7279 by @darcyparker)Control.Layersby not relying on Browserandroidandtouchproperties (#7057 by @johnd0e)Tooltipby not relying on Browsertouchchecks (#7535 by @johnd0e)Browsermutable for easier automated testing (#7335 by @bozdoz)divwithspaninControl.Layerscontainer to fix an HTML validation error (#7914 by @tmiaa)🙌 Accessibility
Markerto default torole="button"&alt="marker"for an improved screen reader experience (#7895 by @tmiaa)role="button"for appropriate semantics on the<a>layers control (#7850 by @Malvoz)outlineon focus for keyboard events (#7259 by @jafin)leaflet-containerfor keyboard users (#7996 by @Malvoz)font-sizeunits for resizable text (#7800 by @Chandu-4444):hoverstyles to:focusas well (#7274 by @Malvoz)🐞 Bug fixes
Markerjumping position while zooming in certain cases (#7967 by @Falke-Design)Tooltipwhile dragging the map (#7862 by @Falke-Design)Classprototype (#7459 by @Falke-Design)Tooltipoptionspermanent&stickyto work together (#7563 by @Falke-Design)locateevent listener (#7813 by @Falke-Design)TooltipbindTooltipto unbind existent tooltip (#7633 by @Falke-Design)ifcondition, to add zoom limits for Layer (#7609 by @vcoppe)GridLayerredraw tiles after changingmaxNativeZoom(#6443 by @cherniavskii)PopupkeepInViewif the map needs to panned over a long distance (#7792 by @Falke-Design)add/removePointerListener(#7808 by @johnd0e)mousedownevent calling after draggingCanvasmap (#7781 by @johnd0e)console.warnpollution (#7748 by @johnd0e)contextmenuevent default-preventing when there are >1 target candidates (#7544 by @johnd0e)Popup-tip from firing on map. (#7541 by @johnd0e)Path.setStylebefore adding the layer to the map (#6941 by @NielsHolt)BoxZoomafter cancel with ESC (#7597 by @Falke-Design)noConflict(#7855 by @Falke-Design)latLngToCoordsandlatLngsToCoordsnot accepting array form of lat/lngs (#7436, by @Relkfaw)📝 Docs
zoomendevent (#7460 by @xeruf)falsetoprefixofControl.Attribution(#7814 by @Falke-Design)LayerGroupinherit fromInteractive Layer(#7763 by @johnd0e)Map.panInsidedocumentation (#7397 by @daverayment)Rendererdocumentation to clarifytoleranceoption is forCanvasonly (#7515 by @Hippl-Eric)propagateargument (#7103 by @riffaud)🔧 Workflow
plugins.mdinto many files for easier maintenance (#7805 by @Falke-Design)npm run serveto serve docs on localhost (#7973 by @Falke-Design)masterbranch tomain(#7921 by @jonkoops)leaflet-include.jsfromdebugsamples (#7776 by @Falke-Design)🧪 Tests
Internet Explorer 11(#7741 by @jonkoops)FirefoxNoTouch(#7736, #7742 by @johnd0e)PhantomJSfrom test suite (#7660, #7724 by @jonkoops).nearand.nearLatLngusage (#7820 by @johnd0e)captureTimeoutandbrowserSocketTimeout(#7856 by @Falke-Design)DomEventwith unit tests (by @stephenspol in #8088)DomUtilwith unit tests (#7547, by @LGNorris)v1.7.1Compare Source
Bug fixes
v1.7.0Compare Source
API changes
VideoOverlaynow can take amutedoption (#7071 by @ronikar)featureGroupfactory method now takesoptions, as theFeatureGroupconstructor (#7160 by @frogcat)Improvements
touchstart/touchendevents (#7008 by @yneet)PointerEvents-capable browsers inL.Browser, and related changes toTap,Drag, andTouchZoomhandlers (#7010, (#7033, (#7036, (#7068, (#7195 by @johnd0e)Bug fixes
L.Browser(#6930 by @Ivan-Perez)moveendlistener frommap.setMaxBounds(#6958 by @simon04)bindcall in ESM environments (#6970 by @shintonik)closePopupexists before calling it automatically (#6962 by @pke)layerGroup.hasLayer()with wronglayerId(#6998 by @johnd0e)clickfilter targeting Android 4.x browsers (#7013 by @johnd0e)Bounds.overlaps()andBounds.intersects()(#7075 by @mondeja)maxNativeZoom === maxZoom(#7094 by @johnd0e)GridLayer's zoom-level loading algorithm (#7123 by @johnd0e)tooltipAnchorbehavior for different tooltip directions (#7155 by @Istador)Docs & Web Site
Polyline.addLatLng()(#6924 by @life777)map.setMaxBounds()(#7001 by @johnd0e)jekyllwhen building docs (#7014 by @vncntcltt)divOverlay.getElement()(#7111 by @mondeja)Marker.shadowPane(#7135 by @mi-v)Layer.removeFrom()regardingLayerGroups (by @ivansanchez)LatLngBounds.overlaps()#7194 by @DerZade)v1.6.0Compare Source
API changes
GeoJSON.resetStyle- allow invocation without an argument (#6663 by joukewitteveen)markersInheritOptionsoption toL.GeoJSON(#6866 by ghybs)Improvements
oldLatLngcoordinates toL.CircleMarkermoveevent (#6719 by errnesto)Bug fixes
L.Util.formatNum(#6668 by cherniavskii)classNameoption inSVGOverlayandVideoOverlay(#6679 by IvanSanchez)mousehoverthrottle onmouseout(#6749 by IvanSanchez)L.Path.setStyle(#6728 by TheRealTorreySmith)dblclickevent when both Pointer Events and Touch Events are available (#6855 by filcab)Markerwhen icon is not present (#6794 by BenTalagan)Docs & Web Site
L.Markerdocs sections (#6871 by chloe-mc)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.