Product/components used and version/fix level:
1016.0.214
we are using the Cumulocity data points map widget open source (github com/SoftwareAG/cumulocity-data-points-map-widget)
Detailed explanation of the problem:
I have added an external plugin called leaflet-search, in the process of this, I noticed I has to import the seperate leaflet-search.js files and .css into my gp-data-map-components.ts. This is an issue for two problems…
-
I am not able to use the remaining .js and .css files for mobile compatibility (my question to this is if there is a way for me to import the full plugin from my node_modules)
-
The second problem I am facing is the image file path not being found, as shown below in the .css for the leaflet-search, the image file path correctly finds the image within my repository. However, when starting a localhost to see it on the application, the file path changes and uses the website’s URL instead.
Error messages / full error message screenshot / log file:
Console Log → Failed to load resource: the server responded with a status of 404 (Not Found)
URL that shows on Cumulocity → http: localhost:9000/apps/images/search-icon.png
Question related to a free trial, or to a production (customer) instance?
Production