Piwigo / piwigo-openstreetmap

OpenStreetMap integration for Piwigo
http://piwigo.org/ext/extension_view.php?eid=701
GNU General Public License v3.0
35 stars 35 forks source link

Display of map in Category's description, if co-ordinates of some photos are both zero #112

Closed IanMac900 closed 7 years ago

IanMac900 commented 7 years ago

In having over 2000 photos on the website of a very small land area, I do not wish the location pointer of those photos having both zero co-ordinates (by default) to be displayed (causing a view of the whole earth to be shown, with the blue location pointer in the Atlantic Ocean on the equator - see attachment zero co-ords display ). How can I achieve this with the plug-in?

xbgmsharp commented 7 years ago

There is no zero co-ordinates by default. You more likely edit the photo and save the settings. If you remove the value and make both fields (latitude and longitude) empty, it will remove the any value

IanMac900 commented 7 years ago

No, maybe it's the browser (Firefox) again but when both boxes are cleared of zeros the zeros re-emerge to give the unwanted display in the Atlantic Ocean. I have even tried spaces, but the zeros come back when the 'Save Settings' button is pressed. coords are zeroed coords are blank

xbgmsharp commented 7 years ago

Correct by default the input fields with display 0 if nothing as to display on the map below it require default which are set to 0. Make the input field empty and save, it will reset the value.

IanMac900 commented 7 years ago

As shown above I do make the input fields both empty (see attachment above), but when I press the 'Save Settings' button the zeros re-emerge in the boxes and the location pointer is in the Atlantic.

xbgmsharp commented 7 years ago

As mention is correct as per the admin page I need data to display the map. so it always revert to 0 however it is not the value set for the image. So i go to the image page, you will not a map as there is no value set.

IanMac900 commented 7 years ago

I'm sorry I am not understanding you. I attach my Admin page as two parts. bottom of admin page top of admin page Which parameter is incorrect?

IanMac900 commented 7 years ago

I should have said that I have the Category's description switched off at the moment, so that the website user's cannot see the problem. The problem emerges when this is switched back on.

xbgmsharp commented 7 years ago

The issue you describe, is the default behavior on the admin side. On the user side, you should not see the photo on the map if there is no latitude and longitude set. There is nothing incorrect.

IanMac900 commented 7 years ago

That's made me laugh! - Sorry to have troubled you - I understand now. I think it is a very good plug-in - well done in writing it.

xbgmsharp commented 7 years ago

Glad it make you laugh! The system has not been design to edit GPS data but gather them from the photo or video and display it on a map. I update the code to make it easier.

IanMac900 commented 7 years ago

Thanks