Hi guys :) I am trying to make an on-the-fly route display.
I managed to send the request to the PHP page to generate and XML response and a copy of this response can be found here : http://yancho.pastebin.com/f41432b0d . The URL which is sending the data is : http://yancho.no-ip.org/~yancho/routing.php?startpoint=642983.5%20225176.75&finalpoint=641780.375%20224942.375&method=SPA®ion=streets&srid=-1&_= And these are the headers of the reply according to FireBug : http://yancho.pastebin.com/f18cadf12 Small Extract Of the XML Output : <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <route> <edge id='1'> <id>3612</id> <wkt>MULTILINESTRING((642847.022664808 225275.125294559,642901.453947967 225273.479351758))</wkt> <length>0.054</length> </edge> But the problem is when I get to display the route. When I click on Compute Route, on my site : http://yancho.no-ip.org/~yancho/openl.html I get this error : String contains an invalid character" code: "5 http://yancho.no-ip.org/~yancho/OpenLayers.js Line 554 And further investigations in FireBug shows : String contains an invalid character" code: "5 emptyFunction()OpenLayers.js (line 189) getImagesLocation()OpenLayers.js (line 101) emptyFunction()OpenLayers.js (line 189) dispatch("routing.php", Object method=get)OpenLayers.js (line 191) Class()OpenLayers.js (line 57) nullHandler("routing.php", "startpoint= 642983.5%20225176.75&finalpoint=641780.375%20224942.375&method=SPA®ion=streets&srid=-1", null, displayRoute(response), undefined)OpenLayers.js (line 187) compute()openl.html (line 152) onclick(click clientX=0, clientY=0)openl.html (line 1) [Break on this error] if(style.cursor){node.setAttributeNS(null,"cursor", style.cursor);}},createNode:f... Any idea how I can fix my code please? A copy of the code can be seen highlighted here : http://yancho.pastebin.com/f335b8727 I am following this tutorial : http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2007#OpenLayersroutingmap Thanks for your continous help. Much Appreciated Matthew -- Matthew Pulis URL : http://www.solutions-lab.net MSN : [EMAIL PROTECTED] ICQ : 145951110 Skype : solutions-lab.net
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
