Git Product home page Git Product logo

Comments (4)

nemethviktor avatar nemethviktor commented on May 30, 2024

Hi,

I'm not sure this is fixable as such. The map itself is very independent of the app, it's a leaflet-based add-in -> https://leafletjs.com/

Here's the issue: when the user clicks on an image the app tries to estimate the relevant area for the image on the map and then puts the image on the map with the coordinates +/- some area. This is so that 1) we are not showing the whole globe literally and 2) we are showing the area where the image coordinates are. In reality this is particularly important when the user selects more than 1 image so that the markers are all showing properly on the map in a way that's kinda "neither too small nor too big".

From a coding logic the way this works is that when the user clicks on any number of images the map is reset, then for each of the coordinate pairs in the clicked-image-list we record those coordinates someplace and then calculate the extremes of the coordinates to form an area to show. This is largely because if the user was to unselect one image out of the possibly many selected it's a lot easier to redraw the whole thing than to attempt to find a marker on the map (reasoning being is that markers are not named entities and if user has more than 1 selected then it becomes impossible to "undo" one particular marker)

So when user select a different image, even one with identical coordinates to the previous the area box coordinates that get sent to the map are reset and the marker for the image gets put on the map.

Admittedly at the moment I'm not sure how to read the zoom level from the map without it being clicked anywhere, but that's relatively irrelevant in the big scheme of things because in map.html the fitBounds code logic defines where to point, which as per documentation comes only with the maxZoom option, which is already being used so a zoom-per-se can't be enforced (and would not be possible either as per above explanation).

from geotagninja.

lintujuh avatar lintujuh commented on May 30, 2024

Just guessing, could this be depending on the coordinates. I'm trying to geotag images in Lisbon, ~9 deg West, so could the negative longitude cause issues.

from geotagninja.

nemethviktor avatar nemethviktor commented on May 30, 2024

The zoom always resets regardless of East or West orientation because when you click on 1 or more image the app calculates a coordinate box/area to show all of the coordinate markers on the map and that sets the view.
You can try the Development version as I did poke around with negative coordinates in it a while ago (in particular regarding showing them on the map) tho I think that change is already in the Main branch too.

from geotagninja.

lintujuh avatar lintujuh commented on May 30, 2024

The development version I downloaded from the Google Drive works correctly.

from geotagninja.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.