Comments (4)
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.
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.
@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.
@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)
- adjust circles on resolution change HOT 1
- maps other than openstreetmap is not working HOT 1
- Any way to accurately define the displayed area? HOT 4
- Problem with marker rotation HOT 2
- Marker rotation HOT 1
- When setting the WINDOWS Screen zoom to 150 % The map does not fill the whole app view HOT 4
- mapjfx doesn't work with javafx 12 or higher on macOS with Silicon chip HOT 2
- Not loading with current OpenJFX 8 HOT 7
- MAP_POINTER_MOVED Event Consumes All Events for Map and Markers HOT 13
- Upgrade branch 3.x to JDK16 HOT 1
- CoordinateLine disappears HOT 2
- Marker custom marker image HOT 2
- Upgrade to use Java 17
- Upgarde to OpenLayers 6.7.0
- Upgrade to OpenLayers 6.8.1 HOT 1
- Add a layer to the map HOT 1
- Resizing map too fast causes to to completely break - D3DTextureResource.getResource() null HOT 8
- Did not opening WMS and getting error Slf4j HOT 3
- Change url local server OSM
- MapView crashes the Application after calling setCenter() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapjfx.