I am new to leaflet and am trying to load a geojson file showing census blocks and associated information for a city in CA. It is a small city and not too many census blocks. I cannot get the popup feature to display any data. Values are written to the console but not showing up in the map. I get a warning here: Invalid CSS property value: transform 0.25s cubic-bezier(0,0,0.25,1)
My code is:
<!DOCTYPE html>
<meta charset="utf-8">
<script src="d3/js/d3.v3.min.js"></script>
<script src="d3/js/topojson.v1.min.js"></script>
<script src="d3/js/datamaps.all.min.js"></script>
<link rel="stylesheet" href="leaflet-0.6.4/leaflet.css" />
<script src="leaflet-0.6.4/leaflet.js"></script>
<script src="NC.js" type="text/javascript"></script>
<style>
div #container{
width: 1000px;
height: 1000px;
border: solid #999999 4px;
}
</style>
<body>
<div id="map" style="align: center;width: 500px; height: 500px"></div>
<script type="text/javascript">
//
window.onload = function ()
{
var map = L.map('map').setView([ 32.6781, -117.0992], 100);
var countryStyle = {
'color': "#000",
'weight': 2,
'opacity': 0.5
};
L.geoJson(NC, {
onEachFeature: popup, // onEachFeature is built in
style:countryStyle
}).addTo(map);
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
//change stuff here for pop up windows
function popup(feature, layer) {
if (feature.properties && feature.properties.AREALAND_1) {
layer.bindPopup("<p><b>"+feature.properties.AREALAND_1+ "</p></b>")
console.log(feature.properties.AREALAND_1)
}
};
};
</script>
</body>
layer.bindPopup
line.