Code Monkey home page Code Monkey logo

Comments (8)

agouge avatar agouge commented on May 18, 2024

I uncommented a line in the script and was able to launch the UI, but it was blank except for the three lines in blue. No routes are drawn.

My changes to the script: From:

14 if [ "x$CLASS" = "x" ]; then 
15 # CLASS=com.graphhopper.ui.MiniGraphUI
16  CLASS=com.graphhopper.reader.OSMReader
17 fi

To:

14 if [ "x$CLASS" = "x" ]; then 
15  CLASS=com.graphhopper.ui.MiniGraphUI
16 # CLASS=com.graphhopper.reader.OSMReader
17 fi

Output:

$ ./run.sh reunion.osm
using java 1.7.0_09 from 
## using existing osm file reunion.osm
## existing jar found target/graphhopper-0.1-SNAPSHOT-jar-with-dependencies.jar
## using existing graph at reunion-gh
## now running com.graphhopper.ui.MiniGraphUI. java opts=-XX:PermSize=20m -XX:MaxPermSize=20m -Xmx1000m -Xms1000m
2012-12-04 15:39:55,716 [main] INFO  com.graphhopper.reader.OSMReader - using GraphStorage|RAMDirectory|1, memory:totalMB:958, usedMB:5
2012-12-04 15:39:55,811 [main] INFO  com.graphhopper.reader.OSMReader - graph edges:225015(8), nodes:217577(8), bounds:55.21715518572528,55.83389284090458,-21.38761124881233,0.0
2012-12-04 15:39:55,811 [main] INFO  com.graphhopper.ui.MiniGraphUI - locations:217577, debug:false
mainResized:1200 700
path 76843->76843
nothing found 5
mainResized:1208 701
path 76843->76843
nothing found 5

from graphhopper.

karussell avatar karussell commented on May 18, 2024

the problem is that geofabrik changed their URLs ... I'll fix in a minute

from graphhopper.

karussell avatar karussell commented on May 18, 2024

be sure you remove the empty unterfranken-gh folder before you pull and retry

from graphhopper.

agouge avatar agouge commented on May 18, 2024

After installing curl, I was able to run the script for unterfranken. (The wiki should probably specify that curl is required.)

However, I think you should update your wiki to specify that you have to uncomment the following commented line in order to launch the UI (the tests are re-run if you just run the same command):

14 if [ "x$CLASS" = "x" ]; then 
15 # CLASS=com.graphhopper.ui.MiniGraphUI
16  CLASS=com.graphhopper.reader.OSMReader
17 fi

Unfortunately, the UI is still completely white aside from the three lines in blue. No routes are drawn.

Thanks for your help!

from graphhopper.

karussell avatar karussell commented on May 18, 2024

Oh, I moved the wget call to curl to make it working on iOS will think about a better fix.

if the UI stays empty => what do you see in the logs? is a proper graph with some nodes loaded?

try zooming out via mouse wheel as the mini UI still has sometimes problems with the correct bounding box. btw: better use the graphhopper-web project to get better maps and not only roads. the included mini ui is only intented for debugging purposes.

from graphhopper.

karussell avatar karussell commented on May 18, 2024

btw: if you like tweaking bash scripts I would really like to get a better run.sh and would like to accept pull requests ... some default configs are fetched from the config.properties file (e.g. to disable test run etc)

from graphhopper.

agouge avatar agouge commented on May 18, 2024

Zooming out did the trick!
I'll check out graphhopper-web.

I'll keep you updated if I find some improvements in run.sh.

Thanks for your help!

from graphhopper.

karussell avatar karussell commented on May 18, 2024

let me know if you still have trouble with something. should be all fixed now (see my commit message). now one needs to execute the script via "./run.sh unterfranken.osm ui"

from graphhopper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.