Giter Site home page Giter Site logo

Comments (5)

HWiman-ICONIC avatar HWiman-ICONIC commented on May 24, 2024

We never built wxWebMap on Linux, only made reasonable edits to make it work, but obviously not all the way. It would be great if you worked it through all the way! I assume that you do not find any map.html directly under tmp !?

Please debug and trace the m_url you get at line 17 in wxWebMapApp.cpp. Then try to figure out how to do the same/similar on linux. On Windows I get as shown below:
image

Code snippet where url is set:

{
    wxFileName fn;
    fn.SetPath(wxFileName::GetCwd());   // Executable directory
    fn.AppendDir("html");               // html folder in executable directory
    fn.SetFullName("map.html");         // Template html file
    m_url = fn.GetFullPath();
}```

from wxwebmap.

HWiman-ICONIC avatar HWiman-ICONIC commented on May 24, 2024

It could also be in wxWebMap.cpp:97 where the template html file is copied to temporary directory (check value of filename):

wxString filename = cOutputFileName.GetFullPath();

Or it could be that file: is missing in the url (If there is a file map.html in your /tmp then try enter file:/tmp/map.html or perhaps file:///tmp/map.html)

from wxwebmap.

raphael10-collab avatar raphael10-collab commented on May 24, 2024

image

The path is correct with the map.html file present but no output

image

image

from wxwebmap.

raphael10-collab avatar raphael10-collab commented on May 24, 2024

After "hard-coding" the path, in the Logging Window there is no error anymore, and, based on logging, the /tmp/map.html is loaded, but, still, the URL can't be shown :

image

from wxwebmap.

raphael10-collab avatar raphael10-collab commented on May 24, 2024

Putting the entire "absolute path" to the file : file:///home/raphy/wxWidgets/wxWebMap/data/html/map.html makes the map visible

image

from wxwebmap.

Related Issues (4)

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.