Closed boeckMt closed 2 years ago
The map-ol component is missing styles for OpenLayers. This is due to removing the ~ from the import https://github.com/dlr-eoc/ukis-frontend-libraries/pull/151/commits/e3e98c1a9a04a23c2109a509e902d14c1b6bdc9d which we assumed was no longer needed.
map-ol
~
Building components with the angular cli and using @import '~...' in the components style, includes the whole style in the build... This is something we don't want either, therefore documentation is the best option for this.
@import '~...'
Add styles from OpenLayers to your application
e.g. in your apps style file
// styles.scss/styles.css @import 'ol/ol.css'; ...
or in the angular config file
// angular.json ... "styles": [ ... "node_modules/ol/ol.css", "src/styles.scss" ], ...
This should be fixed or documentation should be provided how to work with the new behavior.
App
Describe the bug
The
map-ol
component is missing styles for OpenLayers. This is due to removing the~
from the import https://github.com/dlr-eoc/ukis-frontend-libraries/pull/151/commits/e3e98c1a9a04a23c2109a509e902d14c1b6bdc9d which we assumed was no longer needed.It is also easy to fix:
Add styles from OpenLayers to your application
e.g. in your apps style file
or in the angular config file
Expected behavior
This should be fixed or documentation should be provided how to work with the new behavior.
Versions
App