Repository navigation
Add routing graph layer - #210
Conversation
| import { getApi, setApi } from '@/api/Api' | ||
| import MapActionReceiver from '@/stores/MapActionReceiver' | ||
| import { createMap, getMap, setMap } from '@/map/map' | ||
| import MapFeatureStore from '@/stores/MapFeatureStore' |
There was a problem hiding this comment.
I did not know where else to put the coordinate and contents of the hover popup, so I added a new store that we can maybe use for other similar things as well...
|
Currently the graph layer is (partly) hidden when a vector layer is used as background layer, but maybe we can ignore this for now as our focus lies on raster backgrounds. Update: I now set a z-index > 0 for the routing graph layer (b9549f4) so it always stays on top of the background layer, because the same problem occurred also for raster tile background layers when we toggled the routing graph layer. The text labels are still below the routing graph though. Btw: In a previous version I tried showing the graph layer above the vector background, but below the map labels. I was able to identify the label layers by checking |
|
Cool, this is really great! (I like the popup version more as it is closer to the cursor)
It reads as you did not do this but in my case the labels are already above the routing graph :) (!?) minor thing: it would be nice to enable the layer also when clicking on the label but I couldn't fix it quickly as the e.target.checked is not available in the parent. |
Yes, apparently they are. But why? Oh, well :)
Good idea. I fixed this, see last commit. |
(Maybe this z layer change?)
Oh, nice. So simple :) LGTM! |
Yes, maybe. The path layer is shown on top of the labels, but it has a higher z-level, too. |
Fixes #24.
Should be quite similar to what we had in GH maps 1. Maybe the biggest difference is that I put the road details into popup shown on top of the map. To enable the feature we need to set
routingGraphLayerAllowed: trueinconfig-local.js.The popup looks like this currently: