Open jwassmer opened 3 years ago
Hi, unfortunately it is hard-coded to the plotmap()
function. However it should be fairly easy to prepare a pull request extending coloring functionality (the code of plotmap()
is really simple). If you want to propose some extension, I am all for it :)
One more idea. If you are looking for a less-effort solution you could just plot the roads as an overlay on the map. Firstly, plot the map in a standard way and then plot on it! You have an example at OpenStreetMapXPlot.jl
home page.
I want to color the roads of a OSM according to their edge-betweenness centrality. I used the following approach, which does not work in the end. Is there a smart way to solve my problem?
I start by plugging in my osm file aswell as computing the roads corresponding edge-betweenness.
Then, I bin the classes of
m.class
of roads depending on their edge-betweennessNext I set the Layer colors according to some colormap.
Last, I try to plot the map with the new classes and 'roadwayStyle'
This does not work, because
plotmap()
uses the data ofm.roadways
instead ofm.class
. Is there a smart way do this? I do realise that my way is a workaround anyways, but I dont know how to approach it elseway.Thanks a lot for your help!