Hello All,

I am writing to seek help with an issue regarding the inclusion of third-party 
minified JavaScript libraries in Baremaps. Currently, I am unsure of the 
correct approach to take.

In Baremaps, we currently load maplibre-gl-js from a CDN [1] and 
maplibre-gl-inspect from the asset directory [2] (it is not distributed on 
major CDNs). Maplibre-gl-js and maplibre-gl-inspect both have a BSD license and 
seem compatible with the Apache License. Ideally, we should integrate these 
assets in Baremaps, so we can display maps without having an internet 
connection. What do you think?

The basemap also requires external libraries such as fonts, glyphs, sprites, 
etc.) [3], which are currently served with Amazon Cloudfront. As licensing for 
this kind of assets is complicated, I don’t think we should include them in 
Baremaps. Is it ok if we prepare the assets in a repository outside of the 
apache organisation, publish them somewhere (e.g. CDN), reference them in the 
basemap, and let the user’s browser? If so we should probably indicate that the 
basemap uses non-free assets. Notice that the basemap is not part of the 
release.

Best,

Bertil


[1] 
https://github.com/apache/incubator-baremaps/blob/27d849fa2afdc41d9557b3c06d9a88202179ef64/baremaps-server/src/main/resources/assets/viewer.html#LL15
[2] 
https://github.com/apache/incubator-baremaps/blob/main/baremaps-server/src/main/resources/assets/maplibre-gl-inspect.js
[3] 
https://github.com/apache/incubator-baremaps/blob/27d849fa2afdc41d9557b3c06d9a88202179ef64/basemap/style.js#L69

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to