Created
December 7, 2016 20:10
-
-
Save sw331/1d20837d358076b34b6a320a0a353ee2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var mystyle = { | |
| "color": "#ff7800", | |
| "weight": 5, | |
| "opacity": 0.65 | |
| }; | |
| function popout(feature, layer) { | |
| layer.bindpopup(`<h1>${feature.properties.name}</h1>\n<h3>${feature.properties.created_at.slice(0, 16)}</h3>\n<h2>${feature.properties.text}</h2>\n<h3>📍${feature.properties.location}</h3>`); | |
| }; | |
| l.geojson(geoinfo, { | |
| oneachfeature: popout | |
| }).addto(map); | |
| map.addlayer(mytiles).setview([25.5, -25.0], 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment