Search found 37 matches
- Thu May 08, 2025 6:58 pm
- Forum: Requests and suggestions
- Topic: Display number of images with GPS
- Replies: 7
- Views: 16245
Re: Display number of images with GPS
Thx. You are pretty fast. I tried it this way: <?php // Get the count of all images with GPS coordinates $sql = 'SELECT count(*) FROM ' . prefix('images') . ' WHERE `gpslatitude` IS NOT NULL AND `gpslongitude` IS NOT NULL'; $row = query_single_row($sql); $gpsCount = reset($row); // Get the total cou...
- Thu May 08, 2025 6:37 pm
- Forum: Requests and suggestions
- Topic: Display number of images with GPS
- Replies: 7
- Views: 16245
Re: Display number of images with GPS
In the SQL query variant that I managed to get working, it was necessary to modify to . Then the number of images with GPS in that album will be displayed.
Is there any way to find out the number of images with GPS for the whole gallery at once?
Code: Select all
$album->id
Code: Select all
$album->getID()
Is there any way to find out the number of images with GPS for the whole gallery at once?
- Sun Apr 27, 2025 7:18 pm
- Forum: Requests and suggestions
- Topic: Display number of images with GPS
- Replies: 7
- Views: 16245
Re: Display number of images with GPS
Well, I get error, when I have this code: <footer id="footer" class="footer"> <div class="container"> <div id="copyright"> <?php echo getMainSiteName(); if (getOption('zpB_show_archive')) { printCustomPageURL(gettext('Archive View'), 'archive', '', ' | '); } i...
- Thu Apr 24, 2025 7:58 am
- Forum: Requests and suggestions
- Topic: Display number of images with GPS
- Replies: 7
- Views: 16245
Display number of images with GPS
Hi Stephen, Could you please suggest me a code to display the number of images with GPS coordinates from the total number of images in the gallery? Either so I can put it somewhere in the theme, or maybe this information could appear on the Gallery Stats page. And maybe if I go a little further with...
- Sat Mar 29, 2025 1:27 am
- Forum: General discussions
- Topic: What features does NetPhotoGraphics (NPG) have that Zenphoto doesn't.
- Replies: 2
- Views: 43782
Re: What features does NetPhotoGraphics (NPG) have that Zenphoto doesn't.
netPhotoGraphics can display GPX files on the map as “photos” ( in the place where it normally displays photos).
It's a great feature for displaying the route traveled!
It's a great feature for displaying the route traveled!
- Sat Mar 08, 2025 10:45 am
- Forum: Requests and suggestions
- Topic: Display GPX routes on the map
- Replies: 11
- Views: 74932
Re: Display GPX routes on the map
Unfortunately, I don't know how exactly to create a GPX file, but according to the code it is actually a list of points in XML. Simple GPX files with a route can be obtained at https://graphhopper.com/maps/. <?xml version="1.0" encoding="UTF-8" standalone="no" ?><gpx xm...
- Fri Mar 07, 2025 6:37 pm
- Forum: Requests and suggestions
- Topic: Display GPX routes on the map
- Replies: 11
- Views: 74932
Re: Display GPX routes on the map
Sorry, I am in hurry. May be this helps: // Check if trackData contains coordinates and create polyline if (Array.isArray(trackData) && trackData.length > 0) { // Create the polyline using trackData coordinates var polyline = L.polyline(trackData, {color: 'blue'}).addTo(map); // Adjust the m...
- Thu Mar 06, 2025 9:01 pm
- Forum: Requests and suggestions
- Topic: Display GPX routes on the map
- Replies: 11
- Views: 74932
Re: Display GPX routes on the map
Wouldn't it be easier to just load a GPX file that would be placed next to the photos in the existing map under the album? By inserting the following code into line 660 of openstreetmap.php I managed to load a GPX file into the map under the album. Unfortunately it is loaded as points and not as a r...
- Thu Mar 06, 2025 12:36 pm
- Forum: Requests and suggestions
- Topic: Display GPX routes on the map
- Replies: 11
- Views: 74932
Re: Display GPX routes on the map
I admit that I would like to help, but unfortunately my knowledge ends with HTML and CSS. But I can certainly spend enough time trying to pull some solutions out of the AI. Increase my knowledge of PHP to that level is probably unrealistic for me, unfortunately. Can we please find a compromise that ...
- Mon Feb 24, 2025 5:55 am
- Forum: Requests and suggestions
- Topic: Display GPX routes on the map
- Replies: 11
- Views: 74932
Re: Display GPX routes on the map
Thanks for the quick response, Stephen. What I like about the GPX map view is the dynamism - the ability to zoom in or out on the map. And the dynamic preview would be a bonus. Even without it, it would be a great solution. I can upload a single image/placeholder somewhere into my system (or album),...