Closed amyleew closed 9 years ago
Stuck on this Uncaught TypeError: Cannot set property 'osrm' of undefined
doesn't seem to be calling L.Routing.osrm
properly @tristen
Calling a build
and build-print
script since i don't want to place the controls the same on the print page https://github.com/amyleew/osrm-frontend/blob/add-print/package.json#L8-L9
Do I need to call L.Routing.OSRM()
differently here https://github.com/amyleew/osrm-frontend/blob/add-print/printing.js#L27
Routing instructions are not properly passing into the instructions
div tag. Instructions pass when I call L.Routing.control
but not sure how to put them into the instructions div class
or if that is the best work around.
.onAdd
function is causing map.getSize()
error below, although I can successfully console the value...
Fixed with map
parameter pass ^^
Adding print functionality https://github.com/amyleew/osrm-frontend/issues/10, barebones elements added and semi-functional...
Run locally, clicking print button provides link in console and link populates with correct route query string. Needs:
viewOptions
for center, zoom and loc values/cc @aaronlidman @TheMarex