• Resolved zagamuffin

    (@zagamuffin)


    I’m trying to plot out a travel route which took place in a number of stages. I have successfully imported .geojson files and displayed them with Waymark. So far, so good.

    What I’m now trying to do is to provide different views of some of the same routes, using different colours for the lines but I can’t work out the mechanism.

    Another way to look at it is –

    The route from Brussels to Rotterdam is classified as a line type “Rail” and that has a particular colour. The route from Dublin to Holyhead has a line type of “Water” and that has a particular colour. These colours are specified under Settings.Lines.

    However, both of these routes are part of the first phase of the trip – “Easter” in this case. If I want to display the three phases combined it would be good to have them coloured differently.

    Can you assign a colour to a category? The Waymark maps are categorised already – so can I say “Easter” is red, “Summer” is blue, etc . . . and have that override the individual line colours?

    I know you can pass some parameters in through the short code, for example like this taken from the docs – [Waymark map_id=”1649″ basemap=”Satellite” map_zoom=”11″].

    What I’m trying to do is effectively something like this – [Waymark collection_id=”9″ color=”#FF00FF”] but I can’t get that to work and I don’t know if it’s supposed to work.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter zagamuffin

    (@zagamuffin)

    I’ve been thinking and one approach might be to import the same .geojson file to two different maps and assign different line types on different maps. That should work I think.

    Can anyone confirm whether or not something this should work as well – [Waymark collection_id=”9″ color=”#FF00FF”]

    Plugin Author Joe

    (@morehawes)

    Hi @zagamuffin,

    I’m glad you came up with a solution for this. To confirm, the “color” Shortcode parameter you mentioned is not supported.

    Please see here for the available Shortcode parameters.

    Cheers,

    Joe

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Setting colours for lines’ is closed to new replies.