MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / preload

Function preload

assets/js/map_earthquake_data.js:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11// latitude lines are vertical(x axis) lines(N,-S)
12// if w ,S are given as direction we use negative sign in front of the given Value .
13function preload(){
14
15 mappimg=loadImage("https://api.mapbox.com/styles/v1/mapbox/light-v9/static/0,0,1,0,0/1024x512?access_token=pk.eyJ1IjoiaWFtYWJoaWkxIiwiYSI6ImNrbW5kZWFtNTA1bW4yb2xrdnNwZHF0YWwifQ.mkfj9kPgcA6xpsEXwGSbNw");
16 earthq=loadStrings("https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv");
17
18}
19//this is the Web Mercator projection formula
20//that i have used here
21//in this i have used P5 framework ,usgs government API and mapbox API for showing the data on map.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected