MCPcopy Create free account
hub / github.com/neomjs/neo / insertMapboxGLScripts

Method insertMapboxGLScripts

src/main/addon/MapboxGL.mjs:282–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280 }
281
282 insertMapboxGLScripts() {
283 let me = this,
284 basePath = me.downloadPath + me.version + '/';
285
286 Promise.all([
287 DomAccess.loadScript( basePath + 'mapbox-gl.js'),
288 DomAccess.loadStylesheet(basePath + 'mapbox-gl.css')
289 ]).then(() => {
290 me.scriptsLoaded = true
291 })
292 }
293
294 /**
295 * @param {Object} data

Callers 1

constructMethod · 0.95

Calls 2

loadScriptMethod · 0.80
loadStylesheetMethod · 0.80

Tested by

no test coverage detected