turban / Leaflet.Photo

Plugin to show geotagged photos on a Leaflet map.
MIT License
137 stars 55 forks source link

Example #7

Open mm108 opened 7 years ago

mm108 commented 7 years ago

hi, a super simple question - Say if I have the images on one of my server instead of Picasa or Google+, which of the examples should I follow(there are 3 I believe)? Sorry I am a newbie to leaflet / plugins. Thanks

barryhunter commented 6 years ago

Bit late know, but in case anyone looking.

Any of them really. Basically will jsut want to create 'JSON' api/file containing details of your image. It could be a hand edited static .json file (that reqwest just loads) - or it could be a dynamic script (PHP etc) that outputs json data of the images.

ie rather than calling some remote API, call a local 'API' :)

mm108 commented 6 years ago

Thanks a lot @barryhunter. I figured it out back then but forgot to post. And the solution - just what you mentioned :)