Skip to content

Commit

Permalink
Add maplibs and github action to zip
Browse files Browse the repository at this point in the history
  • Loading branch information
markaspot committed Dec 5, 2023
1 parent ad94108 commit da1992e
Show file tree
Hide file tree
Showing 1,033 changed files with 420,292 additions and 2 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/zip-maplibs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Create Release with Library Zips

on:
release:
types:
- created

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# If PHP dependencies are not relevant, you can remove the steps related to Composer
- name: Install PHP dependencies
run: composer install --no-dev

- name: Zip mapbox-gl library
run: |
cd web/libraries/mapbox-gl
zip -r ../../../../mapbox-gl.zip . -x "*.git*"
- name: Zip maplibre-gl library
run: |
cd web/libraries/maplibre-gl
zip -r ../../../../maplibre-gl.zip . -x "*.git*"
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16' # Specify the Node.js version
# Release with the zipped libraries
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
mapbox-gl.zip
maplibre-gl.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ web/modules/contrib
web/themes/contrib
web/profiles/contrib
web/libraries

!web/libraries/mapbox-gl
!web/libraries/maplibre-gl
# Ignore Drupal's file directory
web/sites/*/files

Expand All @@ -32,4 +33,4 @@ web/sites/*/settings.local.php
/index.php
/robots.txt
/update.php
/web.config
/web.config
60 changes: 60 additions & 0 deletions web/libraries/mapbox-gl/.flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
[ignore]
.*\.svg
.*\.png
.*/\.nyc_output/.*
.*/docs/.*
.*/node_modules/.cache/.*
.*/node_modules/.*/tests?/.*
.*/node_modules/@mapbox/jsonlint-lines-primitives/.*
.*/node_modules/@mapbox/mvt-fixtures/.*
.*/node_modules/@mapbox/geojson-types/fixtures/.*
.*/node_modules/@mapbox/mr-ui/.*
.*/node_modules/@mapbox/dr-ui/.*
.*/node_modules/@mapbox/batfish/.*
.*/node_modules/browserify/.*
.*/node_modules/browser-sync.*/.*
.*/node_modules/nyc/.*
.*/node_modules/fbjs/.*
.*/node_modules/es5-ext/.*
.*/node_modules/jsdom/.*
.*/node_modules/eslint.*/.*
.*/node_modules/highlight.*/.*
.*/node_modules/rxjs/.*
.*/node_modules/@?babel.*/.*
.*/node_modules/svgo/.*
.*/node_modules/moment/.*
.*/node_modules/regenerate-unicode-properties/.*
.*/node_modules/remark.*/.*
.*/node_modules/webpack/.*
.*/node_modules/caniuse-lite/.*
.*/node_modules/d3.*/.*
.*/node_modules/css-tree/.*
.*/node_modules/lodash/.*
.*/node_modules/fsevents/.*
.*/node_modules/browser-sync-client/.*
.*/node_modules/core-js.*/.*
.*/node_modules/stylelint/.*
.*/node_modules/postcss.*/.*
.*/node_modules/prismjs.*/.*
.*/node_modules/documentation/.*
.*/node_modules/module-deps/.*
.*/test/unit/style-spec/fixture/invalidjson.input.json
.*/render-tests/.*
.*/query-tests/.*
.*/expression-tests/.*
.*/test/build/downstream-flow-fixture/.*
.*/_batfish_tmp/.*
.*/_site/.*

[version]
0.100.0

[options]
server.max_workers=4

[strict]
nonstrict-import
unclear-type
untyped-import
untyped-type-import
sketchy-null
2,633 changes: 2,633 additions & 0 deletions web/libraries/mapbox-gl/CHANGELOG.md

Large diffs are not rendered by default.

107 changes: 107 additions & 0 deletions web/libraries/mapbox-gl/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
mapbox-gl-js v2.0

Mapbox Web SDK

Copyright (c) 2020, Mapbox

All rights reserved.

Mapbox gl-js version 2.0 or higher (“Mapbox Web SDK”) must be used according to
the Mapbox Terms of Service. This license allows developers with a current active
Mapbox account to use and modify the Mapbox Web SDK. Developers may modify the
Mapbox Web SDK code so long as the modifications do not change or interfere with
marked portions of the code related to billing, accounting, and anonymized data
collection. The Mapbox Web SDK only sends anonymized usage data, which Mapbox uses
for fixing bugs and errors, accounting, and generating aggregated anonymized
statistics. This license terminates automatically if a user no longer has an
active Mapbox account.

For the full license terms, please see the Mapbox Terms of Service at
https://www.mapbox.com/legal/tos/.

-------------------------------------------------------------------------------

Contains code from mapbox-gl-js v1.13 and earlier

Version v1.13 of mapbox-gl-js and earlier are licensed under a BSD-3-Clause license

Copyright (c) 2020, Mapbox
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of Mapbox GL JS nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

--------------------------------------------------------------------------------

Contains a portion of d3-color https://github.com/d3/d3-color

Copyright 2010-2016 Mike Bostock
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the author nor the names of contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-------------------------------------------------------------------------------

Contains code from glfx.js

Copyright (C) 2011 by Evan Wallace

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
37 changes: 37 additions & 0 deletions web/libraries/mapbox-gl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[<img width="300" alt="Mapbox logo" src="https://static-assets.mapbox.com/www/logos/mapbox-logo-black.png">](https://www.mapbox.com/)

**Mapbox GL JS** is a JavaScript library for interactive, customizable vector maps on the web. It takes map styles that conform to the
[Mapbox Style Specification](https://docs.mapbox.com/mapbox-gl-js/style-spec/), applies them to vector tiles that
conform to the [Mapbox Vector Tile Specification](https://github.com/mapbox/vector-tile-spec), and renders them using
WebGL.

Mapbox GL JS is part of the [cross-platform Mapbox GL ecosystem](https://www.mapbox.com/maps/), which also includes
compatible native SDKs for applications on [Android](https://docs.mapbox.com/android/maps/overview/),
[iOS](https://docs.mapbox.com/ios/maps/overview/), [macOS](http://mapbox.github.io/mapbox-gl-native/macos),
[Qt](https://github.com/mapbox/mapbox-gl-native/tree/master/platform/qt), and [React Native](https://github.com/mapbox/react-native-mapbox-gl/). Mapbox provides building blocks to add location features like maps, search, and navigation into any experience you
create. To get started with GL JS or any of our other building blocks,
[sign up for a Mapbox account](https://www.mapbox.com/signup/).

In addition to GL JS, this repository contains code, issues, and test fixtures that are common to both GL JS and the
native SDKs. For code and issues specific to the native SDKs, see the
[mapbox/mapbox-gl-native](https://github.com/mapbox/mapbox-gl-native/) repository.

- [Getting started with Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js/overview/)
- [Tutorials](https://docs.mapbox.com/help/tutorials/#web-apps)
- [API documentation](https://docs.mapbox.com/mapbox-gl-js/api/)
- [Examples](https://docs.mapbox.com/mapbox-gl-js/examples/)
- [Style documentation](https://docs.mapbox.com/mapbox-gl-js/style-spec/)
- [Open source styles](https://github.com/mapbox/mapbox-gl-styles)
- [Contributor documentation](./CONTRIBUTING.md)

[<img width="500" alt="Mapbox GL JS gallery of map images" src="https://static-assets.mapbox.com/www/gallery.png">](https://www.mapbox.com/mapbox-gljs)

## License

Copyright © 2020 Mapbox

All rights reserved.

Mapbox GL JS version 2.0 or higher (“Mapbox Web SDK”) must be used according to the Mapbox Terms of Service. This license allows developers with a current active Mapbox account to use and modify the Mapbox Web SDK. Developers may modify the Mapbox Web SDK code so long as the modifications do not change or interfere with marked portions of the code related to billing, accounting, and anonymized data collection. The Mapbox Web SDK sends only anonymized usage data, which Mapbox uses for fixing bugs and errors, accounting, and generating aggregated anonymized statistics. This license terminates automatically if a user no longer has an active Mapbox account.

For the full license terms, please see the [Mapbox Terms of Service](https://www.mapbox.com/legal/tos/).
4 changes: 4 additions & 0 deletions web/libraries/mapbox-gl/build/banner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import fs from 'fs';

const version = JSON.parse(fs.readFileSync('package.json')).version;
export default `/* Mapbox GL JS is Copyright © 2020 Mapbox and subject to the Mapbox Terms of Service ((https://www.mapbox.com/legal/tos/). */`;
Loading

0 comments on commit da1992e

Please sign in to comment.