maplibre / maplibre/maputnik

Despite Inspect showing different road types, treated identical in style editor

Open
#787 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.6k
Forks
477
Avg merge
6h 13m
Merged PRs (30d)
75

Description

Maputnik version: v1.7.0, master
Browser: Chrome
OS: Windows 10 Home

Description of the bug:
Lines that are designated as driveways (access roads for residential properties, for instance) always want to style the same way as minor roads - in the style editor they BOTH show up as highway-minor. However "Inspect" shows that these have different underlying types (class: service, service: driveway VS class: minor

Why are these service/driveway lines being interpreted as highway-minor layer elements?

Steps to reproduce the behavior:
1.https://maputnik.github.io/editor/#17.41/-41.112915/173.016428
2. Observe un-named streets styled as minor roads - these are driveway accesses, not roads
3. Attempt to restyle these un-named streets with a simpler/smaller line > All the surrounding roads (with names) also change style

Style file or style URL:
https://maps.geoapify.com/v1/styles/osm-bright-grey/style.json?apiKey=YOUR_API_KEY

Screenshots:
MaputnikRoadTypeProblem

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue from the linked Maputnik editor URL in Chrome using the provided style URL, then inspect how the style editor maps the Inspect values for service/driveway and minor roads. Done means driveway lines can be styled independently without changing surrounding minor roads.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.