Repository navigation
fix!: point HERE variants at v3 resources and styles - #715
Merged
brunob merged 1 commit intoDec 3, 2026
Merged
Conversation
The HERE provider moved to the Raster Tile API v3 URL, but its variants
still set v2 options (base, type, mapID, subdomains) that the v3 URL
ignores. basicMap, mapLabels and the aerial variants therefore all
loaded explore.day tiles, and the hybrid, pedestrian, carnav and
terrain variants requested v2 style names that v3 does not have.
- Add a {resource} option to the URL: basicMap uses background tiles
and mapLabels uses label tiles.
- Map v2 schemes to the v3 styles from HERE's migration guide.
- Remove the unused v2 options, and the v2 app_id/app_code demo keys
in preview/shared.js.
- Remove trafficFlow: traffic tiles come from a separate API
(traffic.maps.hereapi.com/v3/flow), which does not take lang.
BREAKING CHANGE: HERE.trafficFlow is removed. It loaded explore.day
base map tiles, not traffic.
brunob
force-pushed
the
fix-here-v3-variants
branch
from
December 3, 2026 19:36
5be65c1 to
6e5a8d2
Compare
Member
|
Thx again ! |
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.
Follow-up to #714. This fixes the 24 HERE failures the test suite reports on
master.#670 moved
HEREto the Raster Tile API v3 URL, but several variants still set v2 options that the v3 URL ignores (base,type,mapID,subdomains):basicMap(no labels) andmapLabels(labels only) loaded the fullexplore.daymap.hybridDay*,satelliteDayandterrainDay*setbase: 'aerial', which does nothing in v3, and the hybrid and terrain ones request v2 style names (hybrid.day,terrain.day, ...) that don't exist in v3.carnavDayGrey,pedestrianDayandpedestrianNightalso request v2 style names.trafficFlowloadedexplore.daybase tiles, not traffic.Changes
The URL now uses a
{resource}option (baseby default).basicMapusesbackgroundandmapLabelsuseslabel, following Select the map tile type.The v2 variants keep their names but now use the v3 style from HERE's v2 → v3 migration table:
style=)style=)carnavDayGreycarnav.day.greylite.dayhybridDay,hybridDayMobile,hybridDayTransithybrid.day,hybrid.day.mobile,hybrid.day.transitexplore.satellite.dayhybridDayGreyhybrid.grey.daylite.satellite.daypedestrianDay/pedestrianNightpedestrian.day/pedestrian.nightexplore.day/explore.nightsatelliteDaysatellite.daysatellite.day(unchanged)terrainDay,terrainDayMobileterrain.day,terrain.day.mobiletopo.dayFor the mobile and transit schemes, the table adds
ppi=400orfeatures=public_transit:all_systems. I didn't add those here, so these variants now match their base style.Removed the unused v2 options, and the v2
app_id/app_codedemo keys inpreview/shared.js. HERE is already excluded from the preview, so the keys were only being added to the test layers.Removed
trafficFlow(breaking). Traffic tiles come from a separate API,https://traffic.maps.hereapi.com/v3/flow/mc/{z}/{x}/{y}/{format}(docs), which takesstyleandsizebut notlang. Every variant shares the provider'slanguageoption, so the variant would have to send a parameter that API doesn't document. Since it already served base map tiles, I removed it rather than ship a guess. If you'd like traffic tiles back, I can add them as a separate provider, for exampleHERETraffic.Testing
npm run lintpasses.tests/test.js: one checks the resource path for each variant type, the other checks the v2 → v3 style mapping. With test: fix the browser test suite and check provider tiles in CI #714's runner (npm run testsuite):master: 580 passing, 26 failing (the 24 existing HERE failures plus the 2 new tests);Performance
No impact: this only changes static provider definitions (net -21 lines in
leaflet-providers.js) and runs no new code.