Difference between revisions of "African great ape layers"

From A.P.E.S. wiki
Jump to navigation Jump to search
Line 20: Line 20:
 
     <div id="map" style="width: 100%; height: 500px;"></div>
 
     <div id="map" style="width: 100%; height: 500px;"></div>
  
<script src="berlin.js" type="text/javascript"></script>
+
//<script src="berlin.js" type="text/javascript"></script>
 
     <script>
 
     <script>
 
       // GEOJSON FILES  
 
       // GEOJSON FILES  
Line 39: Line 39:
 
       // Null variable that will hold layer // took out onEachFeature: forEachFeature,
 
       // Null variable that will hold layer // took out onEachFeature: forEachFeature,
 
       //var gaabundanceLayer = L.geoJson(null, {style: stylegaabundance});
 
       //var gaabundanceLayer = L.geoJson(null, {style: stylegaabundance});
 
+
$.getJSON("berlin.geojson",function(data){
      var gaabundanceLayer = L.geoJson(berlin);gaabundanceLayer.addTo(map);
+
L.geoJson(data).addTo(map);
  
 
       // for Layer Control
 
       // for Layer Control

Revision as of 05:05, 15 June 2022

Spatial Layers > African great ape layers

//