Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilizzare un'area con dati #22

Merged
merged 1 commit into from
Jun 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions public/static/config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@

window.QUERY_BOUNDS = [
[45.50384271949985, 9.177188873291016],
[45.525025470637665, 9.215812683105469]
[45.4881, 9.1811],
[45.4953, 9.1935]
]

/*
* MAP config
* */

window.CENTER = [45.5074, 9.1924];
window.CENTER = [
(((window.QUERY_BOUNDS[1][0] - window.QUERY_BOUNDS[0][0]) / 2) + window.QUERY_BOUNDS[0][0]).toFixed(4),
(((window.QUERY_BOUNDS[1][1] - window.QUERY_BOUNDS[0][1]) / 2) + window.QUERY_BOUNDS[0][1]).toFixed(4),
];
window.ZOOM = 16;


Expand Down
2 changes: 1 addition & 1 deletion public/static/data/authorities.geojson
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"type":"FeatureCollection","features":[{"type":"Feature","id":"node/1029612630","properties":{"type":"node","id":1029612630,"tags":{"amenity":"police","name":"Polizia Locale","operator":"Polizia Locale"},"relations":[],"meta":{},"amenity":"police","name":"Polizia Locale","operator":"Polizia Locale"},"geometry":{"type":"Point","coordinates":[9.1933136,45.5152366]}},{"type":"Feature","id":"node/1705281736","properties":{"type":"node","id":1705281736,"tags":{"addr:city":"Milano","addr:country":"IT","addr:housenumber":"21","addr:postcode":"20162","addr:street":"Via Umberto Cagni","entrance":"yes","name":"Questura di Milano - Ufficio immigrazione","office":"government"},"relations":[],"meta":{},"addr:city":"Milano","addr:country":"IT","addr:housenumber":"21","addr:postcode":"20162","addr:street":"Via Umberto Cagni","entrance":"yes","name":"Questura di Milano - Ufficio immigrazione","office":"government"},"geometry":{"type":"Point","coordinates":[9.2040291,45.5210714]}},{"type":"Feature","id":"node/3491105829","properties":{"type":"node","id":3491105829,"tags":{"amenity":"police","name":"Reparto Mobile Polizia di Stato"},"relations":[],"meta":{},"amenity":"police","name":"Reparto Mobile Polizia di Stato"},"geometry":{"type":"Point","coordinates":[9.2026837,45.5213978]}},{"type":"Feature","id":"node/4092140234","properties":{"type":"node","id":4092140234,"tags":{"amenity":"police","name":"Polizia Ferroviaria"},"relations":[],"meta":{},"amenity":"police","name":"Polizia Ferroviaria"},"geometry":{"type":"Point","coordinates":[9.2140883,45.5077977]}},{"type":"Feature","id":"node/4142384895","properties":{"type":"node","id":4142384895,"tags":{"addr:city":"Milano","addr:country":"IT","addr:housenumber":"1/B","addr:postcode":"20126","addr:street":"Viale dell'Innovazione","name":"Equitalia","office":"government"},"relations":[],"meta":{},"addr:city":"Milano","addr:country":"IT","addr:housenumber":"1/B","addr:postcode":"20126","addr:street":"Viale dell'Innovazione","name":"Equitalia","office":"government"},"geometry":{"type":"Point","coordinates":[9.2107426,45.5110868]}},{"type":"Feature","id":"way/305114695","properties":{"type":"way","id":305114695,"tags":{"amenity":"police","building":"public","name":"Stazione Carabinieri Greco Milanese","operator":"Arma dei Carabinieri"},"relations":[],"meta":{},"geometry":"center","amenity":"police","building":"public","name":"Stazione Carabinieri Greco Milanese","operator":"Arma dei Carabinieri"},"geometry":{"type":"Point","coordinates":[9.203292,45.5124761]}},{"type":"Feature","id":"way/305117578","properties":{"type":"way","id":305117578,"tags":{"amenity":"police","name":"Centro Polifunzionale Polizia di Stato"},"relations":[],"meta":{},"geometry":"center","amenity":"police","name":"Centro Polifunzionale Polizia di Stato"},"geometry":{"type":"Point","coordinates":[9.201905,45.5200213]}}]}
{"type":"FeatureCollection","features":[{"type":"Feature","id":"node/3386286620","properties":{"type":"node","id":3386286620,"tags":{"addr:city":"Milano","addr:country":"IT","addr:housenumber":"4/B","addr:postcode":"20159","addr:street":"Via Ugo Bassi","email":"[email protected]","government":"tax","name":"Agenzia delle Entrate","office":"government","phone":"+39 02 697161","ref":"T9C"},"relations":[],"meta":{},"addr:city":"Milano","addr:country":"IT","addr:housenumber":"4/B","addr:postcode":"20159","addr:street":"Via Ugo Bassi","email":"[email protected]","government":"tax","name":"Agenzia delle Entrate","office":"government","phone":"+39 02 697161","ref":"T9C"},"geometry":{"type":"Point","coordinates":[9.1834267,45.4885732]}},{"type":"Feature","id":"node/4234158916","properties":{"type":"node","id":4234158916,"tags":{"addr:city":"Milano","addr:country":"IT","addr:housenumber":"4/B","addr:postcode":"20159","addr:street":"Via Ugo Bassi","email":"[email protected]","government":"tax","name":"Agenzia delle Entrate","office":"government","phone":"+39 02 697161","ref":"T9C"},"relations":[],"meta":{},"addr:city":"Milano","addr:country":"IT","addr:housenumber":"4/B","addr:postcode":"20159","addr:street":"Via Ugo Bassi","email":"[email protected]","government":"tax","name":"Agenzia delle Entrate","office":"government","phone":"+39 02 697161","ref":"T9C"},"geometry":{"type":"Point","coordinates":[9.1834762,45.4882777]}}]}
2 changes: 1 addition & 1 deletion public/static/data/education.geojson
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"type":"FeatureCollection","features":[{"type":"Feature","id":"node/253963523","properties":{"type":"node","id":253963523,"tags":{"addr:city":"Milano","addr:housenumber":"5","addr:postcode":"20162","addr:street":"Via Gian Battista Passerini","amenity":"library","contact:phone":"+39 02 88462542","contact:website":"http://www.comune.milano.it/biblioteche/","email":"[email protected]","fax":"+39 02 88462541","name":"biblioteca comunale rionale niguarda","ref:isil":"IT-MI0496","source":"www.comune.milano.it","wheelchair":"yes"},"relations":[],"meta":{},"addr:city":"Milano","addr:housenumber":"5","addr:postcode":"20162","addr:street":"Via Gian Battista Passerini","amenity":"library","contact:phone":"+39 02 88462542","contact:website":"http://www.comune.milano.it/biblioteche/","email":"[email protected]","fax":"+39 02 88462541","name":"biblioteca comunale rionale niguarda","ref:isil":"IT-MI0496","source":"www.comune.milano.it","wheelchair":"yes"},"geometry":{"type":"Point","coordinates":[9.1930974,45.5152399]}},{"type":"Feature","id":"node/1706428187","properties":{"type":"node","id":1706428187,"tags":{"amenity":"library","name":"Biblioteca Comunale Rionale Cassina Anna","source":"www.comune.milano.it/biblioteche"},"relations":[],"meta":{},"amenity":"library","name":"Biblioteca Comunale Rionale Cassina Anna","source":"www.comune.milano.it/biblioteche"},"geometry":{"type":"Point","coordinates":[9.177193,45.5249398]}},{"type":"Feature","id":"node/3213359363","properties":{"type":"node","id":3213359363,"tags":{"amenity":"university","name":"U9"},"relations":[],"meta":{},"amenity":"university","name":"U9"},"geometry":{"type":"Point","coordinates":[9.2112608,45.5109533]}},{"type":"Feature","id":"node/5712975091","properties":{"type":"node","id":5712975091,"tags":{"amenity":"driving_school","name":"Europa Sprint"},"relations":[],"meta":{},"amenity":"driving_school","name":"Europa Sprint"},"geometry":{"type":"Point","coordinates":[9.1981021,45.5072774]}},{"type":"Feature","id":"node/6459201049","properties":{"type":"node","id":6459201049,"tags":{"addr:housenumber":"15","addr:street":"Via Elio Reguzzoni","amenity":"music_school","name":"CPM Music Institute","phone":"+39 02 641 1461","website":"www.cpm.it"},"relations":[],"meta":{},"addr:housenumber":"15","addr:street":"Via Elio Reguzzoni","amenity":"music_school","name":"CPM Music Institute","phone":"+39 02 641 1461","website":"www.cpm.it"},"geometry":{"type":"Point","coordinates":[9.2033463,45.507534]}},{"type":"Feature","id":"way/25102933","properties":{"type":"way","id":25102933,"tags":{"amenity":"university","name":"Università degli Studi di Milano Bicocca"},"relations":[],"meta":{},"geometry":"center","amenity":"university","name":"Università degli Studi di Milano Bicocca"},"geometry":{"type":"Point","coordinates":[9.2113184,45.5136624]}},{"type":"Feature","id":"way/25102946","properties":{"type":"way","id":25102946,"tags":{"amenity":"university","isced:level":"4","name":"Università degli Studi di Milano Bicocca","toilets:wheelchair":"yes","wheelchair":"yes","wikidata":"Q1073674","wikipedia":"it:Università degli Studi di Milano-Bicocca"},"relations":[],"meta":{},"geometry":"center","amenity":"university","isced:level":"4","name":"Università degli Studi di Milano Bicocca","toilets:wheelchair":"yes","wheelchair":"yes","wikidata":"Q1073674","wikipedia":"it:Università degli Studi di Milano-Bicocca"},"geometry":{"type":"Point","coordinates":[9.2137566,45.5180142]}},{"type":"Feature","id":"way/26193698","properties":{"type":"way","id":26193698,"tags":{"amenity":"kindergarten","name":"Scuola dell’Infanzia Fratelli Grimm"},"relations":[],"meta":{},"geometry":"center","amenity":"kindergarten","name":"Scuola dell’Infanzia Fratelli Grimm"},"geometry":{"type":"Point","coordinates":[9.2053428,45.5182491]}},{"type":"Feature","id":"way/288274249","properties":{"type":"way","id":288274249,"tags":{"amenity":"kindergarten","building":"yes"},"relations":[],"meta":{},"geometry":"center","amenity":"kindergarten","building":"yes"},"geometry":{"type":"Point","coordinates":[9.1834023,45.5081119]}},{"type":"Feature","id":"way/294258491","properties":{"type":"way","id":294258491,"tags":{"addr:city":"Milano","addr:country":"IT","addr:housenumber":"25","addr:postcode":"20125","addr:street":"Via Salvatore Pianell","amenity":"kindergarten","isced:level":"0","name":"Nido comunale di via Pianell","operator":"Comune di Milano"},"relations":[],"meta":{},"geometry":"center","addr:city":"Milano","addr:country":"IT","addr:housenumber":"25","addr:postcode":"20125","addr:street":"Via Salvatore Pianell","amenity":"kindergarten","isced:level":"0","name":"Nido comunale di via Pianell","operator":"Comune di Milano"},"geometry":{"type":"Point","coordinates":[9.2050929,45.5065981]}},{"type":"Feature","id":"way/318388246","properties":{"type":"way","id":318388246,"tags":{"amenity":"university"},"relations":[],"meta":{},"geometry":"center","amenity":"university"},"geometry":{"type":"Point","coordinates":[9.2129155,45.5164563]}},{"type":"Feature","id":"way/330279794","properties":{"type":"way","id":330279794,"tags":{"addr:city":"Milano","addr:country":"IT","addr:housenumber":"10","addr:postcode":"20162","addr:street":"Via Ciriè","amenity":"kindergarten","isced:level":"0","name":"Scuola d'infanzia Ciriè Girola","operator":"Comune di Milano"},"relations":[],"meta":{},"geometry":"center","addr:city":"Milano","addr:country":"IT","addr:housenumber":"10","addr:postcode":"20162","addr:street":"Via Ciriè","amenity":"kindergarten","isced:level":"0","name":"Scuola d'infanzia Ciriè Girola","operator":"Comune di Milano"},"geometry":{"type":"Point","coordinates":[9.1955106,45.5107075]}},{"type":"Feature","id":"way/403730744","properties":{"type":"way","id":403730744,"tags":{"amenity":"kindergarten"},"relations":[],"meta":{},"geometry":"center","amenity":"kindergarten"},"geometry":{"type":"Point","coordinates":[9.1941535,45.5138175]}},{"type":"Feature","id":"way/403752057","properties":{"type":"way","id":403752057,"tags":{"amenity":"kindergarten"},"relations":[],"meta":{},"geometry":"center","amenity":"kindergarten"},"geometry":{"type":"Point","coordinates":[9.1860931,45.5141491]}},{"type":"Feature","id":"way/403752059","properties":{"type":"way","id":403752059,"tags":{"amenity":"kindergarten"},"relations":[],"meta":{},"geometry":"center","amenity":"kindergarten"},"geometry":{"type":"Point","coordinates":[9.195114,45.5201444]}},{"type":"Feature","id":"way/434939902","properties":{"type":"way","id":434939902,"tags":{"amenity":"kindergarten","name":"Scuola dell'infanzia Thomas Mann"},"relations":[],"meta":{},"geometry":"center","amenity":"kindergarten","name":"Scuola dell'infanzia Thomas Mann"},"geometry":{"type":"Point","coordinates":[9.2083066,45.5236308]}},{"type":"Feature","id":"way/434964063","properties":{"type":"way","id":434964063,"tags":{"amenity":"kindergarten"},"relations":[],"meta":{},"geometry":"center","amenity":"kindergarten"},"geometry":{"type":"Point","coordinates":[9.2095829,45.5252554]}},{"type":"Feature","id":"way/936111921","properties":{"type":"way","id":936111921,"tags":{"amenity":"kindergarten"},"relations":[],"meta":{},"geometry":"center","amenity":"kindergarten"},"geometry":{"type":"Point","coordinates":[9.1796047,45.5100685]}}]}
{"type":"FeatureCollection","features":[{"type":"Feature","id":"node/5074925142","properties":{"type":"node","id":5074925142,"tags":{"amenity":"driving_school","name":"Autoscuola Oscar"},"relations":[],"meta":{},"amenity":"driving_school","name":"Autoscuola Oscar"},"geometry":{"type":"Point","coordinates":[9.1902137,45.4926943]}},{"type":"Feature","id":"way/412912717","properties":{"type":"way","id":412912717,"tags":{"addr:city":"Milano","addr:country":"IT","addr:housenumber":"7","addr:postcode":"20159","addr:street":"Via Toce","amenity":"kindergarten","isced:level":"0","name":"Scuola d'Infanzia Toce","operator":"Comune di Milano"},"relations":[],"meta":{},"geometry":"center","addr:city":"Milano","addr:country":"IT","addr:housenumber":"7","addr:postcode":"20159","addr:street":"Via Toce","amenity":"kindergarten","isced:level":"0","name":"Scuola d'Infanzia Toce","operator":"Comune di Milano"},"geometry":{"type":"Point","coordinates":[9.1860462,45.492666]}}]}
Loading