perliedman/leaflet-routing-machine

[Graphical bug] White bar of the container

Opened this issue · 3 comments

Hello,
I'm trying to use leaflet routing machine with:

//Init routing machine
var routeControl = L.Routing.control({
    router: L.Routing.osrm({ serviceUrl:"https://router.project-osrm.org/viaroute"} )
}).addTo(map);

And it shows a white bar:

screenshot
How can I desactivate the bar until I do use the routing-machine plugin (i.e. I add my two points manually)?

Thanks!

Hm, that shouldn't happen. Are you sure you have loaded LRM's stylesheet correctly?

Are there any messages in the JavaScript console?

It seems that it's this part of css which do that.
If I remove that, the bar doesn't appear but when I add my two points A and B to have the routing, the box is bigger.

LRM's stylesheet is correctly loaded.
There's no message in the JS console.

Ah, right. You're running without a geocoder.

That's a totally valid use case, but one that I don't test very often, apparently.

Will keep this open, but given current situation I will not be able to address this in the short time, so if any help sorting this out would be appreciated.