Created
March 15, 2019 00:03
-
-
Save harllos/4cf1ab7b0972168bcd736d170734a57e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var select_el = document.getElementById('select-option') | |
var select_value = select_el.value | |
var clusterRadius = 40; | |
var clusterMaxZoom = 20; | |
//Propriedade a ser utilizada para gerar os pontos a serem clusterizados em nosso aquivo GeoJSON. Precisa ser uma variável do tipo NUMÉRICO. | |
var propertyToAggregate = "total_aptos" | |
//este é o link onde armazenei nosso GeoJSON | |
let data_url = "https://gist.githubusercontent.com/harllos/022379b54666103b8f842a18f71bb88a/raw/7442f4648c9f8f9371f21a79593265f9503279a6/locais_2018_mp_clean.geojson"; | |
var mydata; | |
var currentZoom; | |
var color = 'YlOrRd'; | |
var clusterData; | |
var worldBounds = [-180.0000, -90.0000, 180.0000, 90.0000]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment