Pre-warm map resources to make subsequent loads faster
This commit is contained in:
parent
c5e52c7845
commit
77da43f2bc
@ -10,6 +10,9 @@ var firstload = true;
|
|||||||
|
|
||||||
function mapboxMap() {
|
function mapboxMap() {
|
||||||
|
|
||||||
|
/* Pre-load workers and stuff, and enable re-using them even after map unloaded */
|
||||||
|
mapboxgl.prewarm();
|
||||||
|
|
||||||
var mapsource = "auto";
|
var mapsource = "auto";
|
||||||
|
|
||||||
if (getStorage("mapsource") == null) {
|
if (getStorage("mapsource") == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user