Project

General

Profile

Documentation #11648

Styling categories

Added by Giulio Di Anastasio 10 months ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Target version:
-
Start date:
27/01/2021
Due date:
% Done:

0%

Close

Description

What is the syntax to style a dashed line with round line cap? in the existing styled layers I could find the syntax for dash lines, for the color, the width, the opacity. But what other possibilities are there? is it possible to have a line with a pattern (like small squares in between line segments, see attached file), and which are the possible patterns? is it possible to create custom patterns? if yes, how is it to be done? and what is the syntax to set it in the category setting through the Admin interface?

Thanks

Giulio

line with square pattern.pdf (1.24 KB) Giulio Di Anastasio, 27/01/2021 12:39

History

#1 Updated by Philippe May 10 months ago

  • Assignee changed from Philippe May to Giulio Di Anastasio

See mapbox style specs: https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#line

Complex patterns are possible in theory but they aren't used, require a more complex setup than what we have until now because there was no need for it. They also might impact display performance - to be tested.

Beside, i would avoid using complex, mapbox-specific options now: the recent change of policy in Mapbox's licencing might lead to a migration from Mapbox to another solution.

So, keep it simple, as much as possible.

Changing the style in admin isn't very user friendly in the admin as the text boxes are quite small. The easy way is to write the style in a text editor and copy/paste to Gisaf admin.

Also available in: Atom PDF