Difference between revisions of "Test"
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map); | attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map); | ||
− | var | + | var geojsonFeature = { |
− | + | "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