I've got a simple Leaflet map with a basemap and one map-layer coming from my own hosted GeoServer.
I made the layers show up nicely in a map.
Now I want to add popups on the point layer showing information stored in MapService.
I couldn't find too much information about that topic.
There's one link to a working example but the link seems to be broken. I found another example which I addopted. You can see it on JSFiddle. I'd like to display the content of the name field in the attribute table but nothing happens when the user clicks the map.