highcharts / map-collection-dist

Other
30 stars 37 forks source link

Add UMD support to JS files #29

Open jon-a-nygaard opened 5 years ago

jon-a-nygaard commented 5 years ago

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.