format,sourcemap:true,indent:false,banner},treeshake:true,plugins:plugins({minified:true,production:true,keepClassNames:true})});exportdefault[config('src/index.js','dist/mapbox-gl-csp.js','umd'),config('src/source/worker.js','dist/mapbox-gl-csp-worker.js','iife')];//可以看出这个打包...
在npm中使用mapbox-gl-csp.js文件,可以按照以下步骤进行操作: 1. 首先,确保已经安装了npm和Node.js。可以在命令行中运行以下命令来检查是否已安装: ``` n...
到目前为止,我已安装: npm install mapbox-gl --save npm install @types/mapbox-gl --save npm install @types/geojson --save 在app.component.ts中: import { Component, OnInit } from '@angular/core'; import * as mapboxgl from 'mapbox-gl'; import { Map } from ' 浏览25提问于2017-01...
CSP Directives As a mitigation for Cross-Site Scripting and other types of web security vulnerabilities, you may use aContent Security Policy (CSP)to specify security policies for your website. If you do and you are using Mapbox GL JS, use the CSP directives listed in theMapbox GL JS...
string: A URL hosting a JavaScript bundle for mapbox-gl's WebWorker. Example <script src='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl-csp.js'></script> <script> mapboxgl.workerUrl = "https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl-csp-worker.js"; ... ...
mapboxgl.workerClass = require('worker-loader!mapbox-gl/dist/mapbox-gl-csp-worker').default; 由于我使用的是打字稿和 linting,我必须添加一些指令来忽略警告/错误,否则会阻止它编译。 请注意,我不必安装,mapboxgl因为react-map-gl使用它。 但是,我确实需要添加eslint-disable-next-line import/no-unresolv...
The CSP policy of a page using mapbox-gl-js no longer needs to include script-src 'unsafe-eval' #559 Add LngLatBounds#isEmpty() method #5917 Updated to flow 0.62.0 #5923 Make compass and zoom controls optional (#5348) (h/t @matijs) Add collectResourceTiming option to the enable col...
vitest.config.csp.ts vitest.config.unit.ts vitest.config.usvg.ts Mapbox GL JSis a JavaScript library for interactive, customizable vector maps on the web. It takes map styles that conform to theMapbox Style Specification, applies them to vector tiles that conform to theMapbox Vector Tile...
Introduce static worker version of the bundle for strict CSP environme… 6年前 yarn.lock inline test suite dependencies (#9096) 5年前 README MIT Mapbox GL JSis a JavaScript library for interactive, customizable vector maps on the web. It takes map styles that conform to theMapbox Style Spe...
The CSP policy of a page using mapbox-gl-js no longer needs to include script-src 'unsafe-eval' #559 Add LngLatBounds#isEmpty() method #5917 Updated to flow 0.62.0 #5923 Make compass and zoom controls optional (#5348) (h/t @matijs) Add collectResourceTiming option to the enable ...