@geolonia/embed 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build.yml +23 -9
- package/dist/embed +1 -1
- package/dist/embed.js +1 -1
- package/package.json +1 -1
- package/src/lib/geolonia-map.js +5 -0
package/package.json
CHANGED
package/src/lib/geolonia-map.js
CHANGED
|
@@ -41,6 +41,11 @@ export default class GeoloniaMap extends maplibregl.Map {
|
|
|
41
41
|
return container.geoloniaMap;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
if (container.clientHeight === 0) {
|
|
45
|
+
// eslint-disable-next-line no-console
|
|
46
|
+
console.warn('Geolonia Embed API failed to render the map because the container has no height. Please set the CSS property `height` to the container.');
|
|
47
|
+
}
|
|
48
|
+
|
|
44
49
|
const atts = parseAtts(container, params);
|
|
45
50
|
const options = util.getOptions(container, params, atts);
|
|
46
51
|
|