Hello Paola,
On Tue, May 10, 2011 at 6:57 PM, Paola A. Ospina <[email protected]> wrote: > > Hi! my name is Paola and I 'm using the Routing Demo for my University > degree work but I have some questions because I don't understand how some > things works. > > 1. I need that the routing frame open on top and not when I select the layer > "routing" from layers selector of the map. Could some one tell me where can > I changes it? > You will see in index.html a function called toggleData() that was derived from the familiar data layer toggle. Move that code to mapInit(). Or change the width of the "routingbar" div in index.html to 30%. > 2. I changed the "bounding box" by one relevant for my use, but it is I've > not been able to change the zoom of the map at the beginning, is there any > way to do it? > In mapInit(), you will see a call to setMapExtent(). Replace it with a call to setMapCenter(). You will need to create a LatLon object, but there is a nice example just above it that handles the case when a permalink is set. > 3. To my app I need to use waypoints, I activated those but if I put FROM > and TO market in the map and then press "add waypoint " the "end/to" marker > change to the number of waypoint that is the next. The trouble is that > nominatim don't check again the point and don't fill the textbox for the > waypoint added, better, changed. But for me the logical is that I add start > and end points and then the waypoints... but is not posible with "demo > routing". > It could be a bug in the demo. > 4. I don't want overload the server with my petitions, but I can't make that > my local Gosmore installations works, for that I had to change "YOURS" to > "Routing Demo", so, anyone could tell me some tips? seems that the error is > that my app can't comunicate with gosmore even it have all the permissions, > are installed in the same directory and obviously I change the vars in > gosmore.php file. Was the rebuild successful ? If you rebuild the planet, you will need to increase MAX_NODES in libgosm.cpp to 23000000. Can you do routing from the command line ? For example QUERY_STRING="flat=45.303213&flon=-63.304713&tlat=44.6890011&tlon=-63.8092375fast=1&v=motorcar" ./gosmore Did you install routing-instructions ? If not, remove it from gosmore.php Debugging php can be difficult, but it's good experience. > 5. Why no always the tab Directions is filled with the information obtained? > Sometimes I have to press the button "recommended" and then the direction > information works, sometimes. > > > Beforehand thanks, thanks a lot for all the help that you could let me. > I tried to explain things as best I could. > > PS: Sorry about my English. I'm still learning > > > -- > Paola Ospina > Tecnóloga en Sistemas de Información > Estudiante de Ingeniería de Sistemas > Universidad del Valle - Cali > -.- > _El hombre tarda dos años en aprender a hablar y toda una vida en aprender a > callar_ > > _______________________________________________ > Routing mailing list > [email protected] > http://lists.openstreetmap.org/listinfo/routing > > _______________________________________________ Routing mailing list [email protected] http://lists.openstreetmap.org/listinfo/routing
