[Fixed]-Leafletjs Routing machine button collapse button not loading

1๐Ÿ‘

I found a way to make it work for sizes bigger than 640px. I am unsure if this is the correct way to fix it, but it works for now.

in leaflet-routing-machine.js changed 640 to 1200 in this line and now the button works for maps that are bigger than 640px.

collapsible = collapsible || (collapsible === undefined && map.getSize().x <= 1200);
๐Ÿ‘คMarkerDave

Leave a comment