I saw the following issue posted to the rMaps github repo today.
I am new to using rMaps and leaflet. I would like to plot the route between two locations. The leaflet routing machine plugin allows us to do this (https://github.com/perliedman/leaflet-routing-machine). I am not quite sure how to use the functions
addAssets()
andsetTemplate()
to be able to use this plugin.
This was a good exercise for me to test whether these newly introduced mechanisms addAssets
and setTemplate
would allow one to easily extend the base leaflet binding in rMaps.
Let us start by creating the base map.