I made some more complex leaflets before, but here I'm stucked. You can find my geojson file here: https://gist.github.com/Supermarmotte/16e0466c9d17f4ab341b6fdb805bb849 It is displayed correctly and is stored beneath the html file.
Grrr
<script
src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js">
</script>
<script>
var map = L.map('map').setView([47.439278,9.529174], 10);
mapLink =
'<a href="http://openstreetmap.org">OpenStreetMap</a>';
L.tileLayer(
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© ' + mapLink + ' Contributors',
maxZoom: 18,
}).addTo(map);
L.marker([47.439278,9.529174]).addTo(map).bindPopup("Willkommen in Heiden!").openPopup();
var map = L.map('map2').setView([9.529174,47.439278], 10);
L.geoJSON(post4).addTo(map);
</script>
L.geoJSON(post4.geojson)
? – NettaB May 26 '17 at 22:31var map
declaration? – NettaB May 27 '17 at 8:53