Modify ↓

#24937 new enhancement

Vector tile styling: Restrict style to specific layers

Reported by: rob.j.nickerson@… Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: mvt, vector Cc:

Description

Hi. I have a vector tile layer:

mvt[14]:https://staging-tiles.osmuk.org/nsul-pcpolygons/ppoints_test5.json

It contains two layers: points and lines. In my style .json (​link) I have set up style rules for the points and the lines.

Layer is limited to Middlesbrough, United Kingdom as this is a test layer.

I have two issues:

  1. My style rules for points are applied not only to the point layer but also to all nodes in the lines layer. I would like it not to apply to the nodes on the lines. (an observation: if you load a tile in JOSM and then right click it in layer menu and "convert to OSM Data" you will see the layer names on the points (polygon centroids) and the lines. The nodes on the lines have no attributes. Not sure if this is relevant).
  1. My style rule to apply a text label to the points does not work. This is confusing me as it works for my other vector layer (mvt:https://staging-tiles.osmuk.org/nsul-postcodes/nsul-postcode-points-style.json). (an observation: again if you convert the layer to OSM data you see all features have attribute ID=0, not sure why as the data in that second MVT layer all has unique ID values. Not sure if this is relevant to why the label is not working)

I have listed this ticket as "enhancement" as it may be that the styling rules for vector tile layers need an update. It could also just be user error - please let me know if this is the case.

Many thanks :-) Rob

Attachments (1)

Screenshot from 2026-10-04 20-41-41.png​ (202.2 KB ) - added by rob.j.nickerson@… 34 minutes ago.
Screenshot from JSOM

Download all attachments as: .zip

Change History (1)

by rob.j.nickerson@…, 34 minutes ago

Screenshot from JSOM

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to rob.j.nickerson@….
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.