Code Monkey home page Code Monkey logo

Comments (4)

sothawo avatar sothawo commented on August 12, 2024 1

do you have the #*.csss# entries on separate lines?
when starting the application, and the log level set to debug for com.sothawo.mapjfx you should see entries like

2018-08-18 15:51:09:299 CEST FEINER com.sothawo.mapjfx.MapView loadMapViewHtml:  loading from file:/Users/peter/Entwicklung/Projekte/mapjfx/target/classes/mapview.html 
2018-08-18 15:51:09:300 CEST FEINER com.sothawo.mapjfx.MapView processHtmlLine:  loading from file:/Users/peter/Entwicklung/Projekte/mapjfx/target/classes/ol/4.6.5/ol.css 
2018-08-18 15:51:09:301 CEST FEINER com.sothawo.mapjfx.MapView processHtmlLine:  loading from file:/Users/peter/Entwicklung/Projekte/mapjfx/target/classes/polyfill.js 
2018-08-18 15:51:09:301 CEST FEINER com.sothawo.mapjfx.MapView processHtmlLine:  loading from file:/Users/peter/Entwicklung/Projekte/mapjfx/target/classes/ol/4.6.5/ol.js 
2018-08-18 15:51:09:310 CEST FEINER com.sothawo.mapjfx.MapView processHtmlLine:  loading from file:/Users/peter/Entwicklung/Projekte/mapjfx/target/classes/mapview.css 
2018-08-18 15:51:09:311 CEST FEINER com.sothawo.mapjfx.MapView processHtmlLine:  loading from file:/Users/peter/Entwicklung/Projekte/mapjfx/target/classes/functions.js 
2018-08-18 15:51:09:311 CEST FEINER com.sothawo.mapjfx.MapView processHtmlLine:  loading from file:/Users/peter/Entwicklung/Projekte/mapjfx/target/classes/MapObject.js 
2018-08-18 15:51:09:311 CEST FEINER com.sothawo.mapjfx.MapView processHtmlLine:  loading from file:/Users/peter/Entwicklung/Projekte/mapjfx/target/classes/WMSParams.js 
2018-08-18 15:51:09:312 CEST FEINER com.sothawo.mapjfx.MapView processHtmlLine:  loading from file:/Users/peter/Entwicklung/Projekte/mapjfx/target/classes/coordinateline.js 
2018-08-18 15:51:09:313 CEST FEINER com.sothawo.mapjfx.MapView processHtmlLine:  loading from file:/Users/peter/Entwicklung/Projekte/mapjfx/target/classes/mapview.js 

where in the src/main/resources folder did you copy the css files?

from mapjfx.

sothawo avatar sothawo commented on August 12, 2024 1

sorry for the late answer.
Have you tried to include fontawesome with the real url from th cdn like
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">?
When you use the ## syntax, the css code is inlined into the html page that is rendered and then the links to the woff files which have the form ../webfonts cannot be resolved.

from mapjfx.

am2222 avatar am2222 commented on August 12, 2024

@sothawo Hi,
Yes it loads csss correctly. Here you can find logs

2018-08-18 20:21:26:340 IRDT FINER com.sothawo.mapjfx.MapView processHtmlLine:  loading from file:/D:/Desktop_app2/mapjfx/target/test-classes/css/fontawesome.min.css 
2018-08-18 20:21:26:342 IRDT FINER com.sothawo.mapjfx.MapView processHtmlLine:  loading from file:/D:/Desktop_app2/mapjfx/target/test-classes/css/all.min.css 

I think the problem is with fonts which they are not loaded into webpage. here is my folders structure

resources
----css
--------all.min.css
--------fontawesome.min.css 
----webfonts
--------fa-solid-900.eot
--------*.eot
--------*.woff

from mapjfx.

am2222 avatar am2222 commented on August 12, 2024

@sothawo thanks very much I assume the problem was with this issue. anyway I have switched to jxbrowser and the problem is fixed now

from mapjfx.

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.