Skip to content

Instantly share code, notes, and snippets.

@harllos
Created March 15, 2019 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harllos/91a0ba0648c7bc0b53d40a92b0ed4477 to your computer and use it in GitHub Desktop.
Save harllos/91a0ba0648c7bc0b53d40a92b0ed4477 to your computer and use it in GitHub Desktop.
map.on('style.load', function() {
 fetch(data_url)
 .then(res => res.json())
 .then((out) => {
 mydata = out;
 // Usando a Supercluster!
 cluster.load(mydata.features);
 // Criando o mapa
 initmap();
 })
 .catch(err => console.error(err));
 });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment