I want to change the code from pgrouting latest workshop which is used the OpenLayers 3 beta to OpenLayers 2.13. The code is in here http://workshop.pgrouting.org/chapters/ol3_client.html
I tried to change it, but still have got some errors like this one:
startpoint.getPosition is not a function
Is there anyone could help me? Because there are some features in OpenLayers 2.13 which are not (yet) supported in the Ol3js. My idea is simple, I just want to have a Layerswitcher button, and adds radio button for start and final location for the route, and the compute route button, so that the web will look more neat.