sjacorg / bayanat

Open source data management solution for human rights documentation.
https://bayanat.org/
GNU Affero General Public License v3.0
27 stars 16 forks source link

question about maps #16

Closed hapee closed 2 years ago

hapee commented 2 years ago

so not a bug yet and now feature but just a question, the documentation says:

By default, Bayanat will use OpenStreetMaps tiles servers (https://{s}.tile.osm.org/{z}/{x}/{y}.png) to retreive maps. This can be changed using the setting MAPS_API_ENDPOINT, to use an offline instance of OSM for example.

The default setting in .env is:

MAPS

MAPS_API_ENDPOINT = ''

when I use that I see this: image

so how can I use openstreet maps as it is supposed to work?

sjacgit commented 2 years ago

Not sure what the issue here. Did you set the MAPS_API_ENDPOINT variable to something and this is the result you're seeing? If you're looking to use OSM servers you actually don't need to set/change this var.

hapee commented 2 years ago

In the .env file I see this:

MAPS

MAPS_API_ENDPOINT = ''

I have added Google setting so the result is:

in osm: Screenshot from 2022-05-03 17-54-44

and in google imagery: Screenshot from 2022-05-03 17-55-05

so what is causing the difference? It actually happens after an update from version 1.8 to 1.10.

Hope this makes it a little clearer.

sjacgit commented 2 years ago

Unless you're using an offline version or a service other than OSM you don't need to set that var. You can delete/comment that line in .env and should work.

hapee commented 2 years ago

You are correct (as always). It is working now so ticket closed, thanks for your support.