Home › Forums › MAPublisher › assign each road its own color
Tagged: assign each road its own color
- This topic has 2 replies, 2 voices, and was last updated 11 months, 4 weeks ago by
jonathant.
-
AuthorPosts
-
June 29, 2021 at 8:23 am #40867
Søren
ParticipantAllow me to ask
a city map contains many named roads- Can one assign each road its own color?
When, for example. uses the function “split layer” and you use street names as a unique attribute value, then each street name gets its own layer. Each layer automatically has its own “layer color” in the layer menu. But can you also automatically assign all lines in the individual layers the same color as the “layer color” has got?
What I want is to give each road its own color, but it is an impossible task if it has to be done manually
June 29, 2021 at 8:24 am #40869Søren
ParticipantAllow me to ask
a city map contains many named roads- Can one assign each road its own color?
When, for example. uses the function “split layer” and you use street names as a unique attribute value, then each street name gets its own layer. Each layer automatically has its own “layer color” in the layer menu. But can you also automatically assign all lines in the individual layers the same color as the “layer color”?
What I want is to give each road its own color, but it is an impossible task if it has to be done manually
July 8, 2021 at 6:25 pm #41822jonathant
MemberHi Søren,
Thanks for contacting us via the support ticket method, but I thought I would also update this forum post as well!
As discussed, assigning each road a unique colour would be difficult but assigning a colour scheme through iteration is easier and less time-consuming.
For anyone else looking to accomplish a similar task, the best/quickest option would be to create a ‘Map Theme’ stylesheet and then use ‘Batch Generate Rules’ to create a rule for each road. To do this you should utilize the ‘Unique Values’ method and the colour ramp option in the ‘Visual Property Assignment’ to assign each road in the ‘roads layer’ a random colour. Then apply the batch-generated rules.
Alternatively, you can edit the original data to create an additional attribute and assign a repeating colour id e.g. (1 – 25) to each road. Then create a ‘Map Theme’ stylesheet that is based on the additional attribute and assign each road colour id its own colour. Then apply the rules. There will fewer rules needed since you are iterating through a set number of colour ids.
You can always submit a support ticket here for specific inquiries.
Kind regards,
Jonathan -
AuthorPosts
The forum ‘MAPublisher’ is closed to new topics and replies.