kopia lustrzana https://github.com/robhawkes/vizicities
Removed interaction handlers from demo
rodzic
8a413de8f5
commit
4e8aceb9c6
|
@ -66,16 +66,16 @@ var topoJSONTileLayer = VIZI.topoJSONTileLayer('https://vector.mapzen.com/osm/bu
|
||||||
// Don't show points
|
// Don't show points
|
||||||
return feature.geometry.type !== 'Point';
|
return feature.geometry.type !== 'Point';
|
||||||
},
|
},
|
||||||
onEachFeature: function(feature, layer) {
|
// onEachFeature: function(feature, layer) {
|
||||||
if (feature.geometry.type !== 'Polygon') {
|
// if (feature.geometry.type !== 'Polygon') {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
// Make polygons clickable
|
// // Make polygons clickable
|
||||||
layer.on('click', function(layer, point2d, point3d, intersects) {
|
// layer.on('click', function(layer, point2d, point3d, intersects) {
|
||||||
console.log(layer, point2d, point3d, intersects);
|
// console.log(layer, point2d, point3d, intersects);
|
||||||
});
|
// });
|
||||||
},
|
// },
|
||||||
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, <a href="http://whosonfirst.mapzen.com#License">Who\'s On First</a>.'
|
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, <a href="http://whosonfirst.mapzen.com#License">Who\'s On First</a>.'
|
||||||
}).addTo(world);
|
}).addTo(world);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue