Difference between revisions of "Test"

From A.P.E.S. wiki
Jump to navigation Jump to search
Line 27: Line 27:
 
             attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
 
             attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
  
       var geojsonFeature = {
+
       // loading GeoJSON file - Here my html and usa_adm.geojson file resides in same folder
          "type": "Feature",
+
      $.getJSON("REFUGIA_MALEY96.geojson", function(data) {
          "properties": {
+
        L.geoJson(data).addTo(newMap);
              "name": "Coors Field",
+
      });
              "amenity": "Baseball Stadium",
+
              "popupContent": "This is where the Rockies play!"
 
          },
 
          "geometry": {
 
              "type": "Point",
 
              "coordinates": [10, 5]
 
          }
 
      };
 
 
 
      L.geoJSON(url).addTo(map);
 
 
 
 
       // for Layer Control
 
       // for Layer Control
 
       var baseMaps = {
 
       var baseMaps = {

Revision as of 08:26, 25 February 2022