To improve support for use of the map-collection through NPM it should use the UMD pattern in the JS map files.
As it is now the NPM users will have to load the geojson map files to get it to work without using the global environment. Alternatively they have to create their own adapted JS files with a UMD pattern.
This is unfortunate as it is a bit more cumbersome than using the JS map file, and also inconsitent with examples for usage through our CDN.
Suggested solution
The addition of the UMD pattern should preferably be done in a NodeJS script, which should be a simple task to complete. The tricky part is that after adding the UMD pattern, the version should be bumped, and that would also require a new build of the map files.
Description
To improve support for use of the map-collection through NPM it should use the UMD pattern in the JS map files.
As it is now the NPM users will have to load the geojson map files to get it to work without using the global environment. Alternatively they have to create their own adapted JS files with a UMD pattern. This is unfortunate as it is a bit more cumbersome than using the JS map file, and also inconsitent with examples for usage through our CDN.
Suggested solution
The addition of the UMD pattern should preferably be done in a NodeJS script, which should be a simple task to complete. The tricky part is that after adding the UMD pattern, the version should be bumped, and that would also require a new build of the map files.