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 myLayer = L.geoJSON().addTo(map);
+
       var geojsonFeature = {
      // myLayer.addData(url);
+
          "type": "Feature",
 +
          "properties": {
 +
              "name": "Coors Field",
 +
              "amenity": "Baseball Stadium",
 +
              "popupContent": "This is where the Rockies play!"
 +
          },
 +
          "geometry": {
 +
              "type": "Point",
 +
              "coordinates": [10, 5]
 +
          }
 +
      };
 +
 
 +
      L.geoJSON(geojsonFeature).addTo(map);
  
 
       // for Layer Control
 
       // for Layer Control

Revision as of 08:21, 25 February 2022