thematic mapping blog: Showing geotagged photos on a #leaflet #map
▻http://blog.thematicmapping.org/2014/08/showing-geotagged-photos-on-leaflet-map.html
I’ve create a new #plugin, Leaflet.Photo, that allows you to add geotagged photos to your map, from any source. The plugin plays well with the great Leaflet.markercluster plugin, showing your photos in clusters. To make the plugin more versatile, it doesn’t deal with AJAX loading or image presentation except the thumbnails on the map. Use your AJAX loader of choice, and simply pass on an array of #photo objects to the plugin.
The photo objects can include the properties you like, but the following are required:
lat: latitude of photo
lng: longitude og photo
thumbnail: url to thumbnail photo
(...)