I was trying to add a GeoJSON feature implementing leadlet, but with no avail. Cannot figure out what is going on?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Leaflet Demo</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css"/>
<style type="text/css"></style>
</head>
<body>
<div id="map" style="width: 100%; height: 630px"></div>
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script type="text/javascript">
var map = L.map('map').setView([12.989517999999999,77.66344159999994],18);
var osm = 'http://{s}.tile.osm.org/{z}/{x}/{y}.png';
L.tileLayer(osm).addTo(map);
//Json Feature (Point)
var jsonFeature = {
"type": "Feature",
"properties": {
"name": "Gainsights",
"amenity": "Building",
"popupContent": "someplace!"
},
"geometry": {
"type": "point",
"coordinates": [ 77.66344159999994,12.989517999999999]
}
};
//End Json Feature calling
var popup = L.popup();
var marker = L.marker();
/* function onMapClick(e) {
popup
.setLatLng(e.latlng)
.setContent("You clicked the map at " + e.latlng.toString())
.openOn(map);
var myMarker = L.circleMarker(e.latlng,500,
{ title: 'selected' })
.addTo(map);
}
map.on('click', onMapClick);*/
L.geoJson(jsonFeature).addTo(map);
</script>
</body>
</html>