My Account     Contact Us     Cart

assign each road its own color

Home Forums MAPublisher assign each road its own color

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40867
    Søren
    Participant

    Allow 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

    #40869
    Søren
    Participant

    Allow 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

    #41822
    jonathant
    Moderator

    Hi 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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Log in or register here