leaflet-routing-machine icon indicating copy to clipboard operation
leaflet-routing-machine copied to clipboard

_clearLines Function

Open LucianoAB80 opened this issue 5 years ago • 1 comments

Hi,

When I use the map.removeControl(routing) command I am getting the following error:

"null is not an object (evaluating 'this._map.removeLayer')"

Checking the variables involved I saw that _map is null. But if I put an IF preventing this I have another error:

"Routing error: {status: -3, message: "TypeError: null is not an object (evaluating t.addLayer)"}"

Could you help me solve this please?

Thanks!

Luciano

LucianoAB80 avatar May 18 '20 12:05 LucianoAB80

Hi, could you provide a running example that illustrates the issue?

perliedman avatar May 31 '20 13:05 perliedman