Pandora-IsoMemo / DSSM

Pandora & IsoMemo spatiotemporal modeling (DSSM)
https://pandora-isomemo.github.io/DSSM/
GNU General Public License v3.0
4 stars 1 forks source link

Solution to center points #173

Closed arunge closed 9 months ago

arunge commented 1 year ago

Also not practical to have map points appearing in different "leaflets". One of the goals is to export a map with all points in a centred view. Please fix this.

Originally posted by @isomemo in https://github.com/Pandora-IsoMemo/iso-app/issues/168#issuecomment-1607347791

arunge commented 1 year ago

@isomemo Would it be ok to have a switch like in the modelling tabs?

image

arunge commented 1 year ago

As discussed, next: implement the option to change the center

arunge commented 1 year ago

This is strongly related to

and more complex than I thought. ~Please, let us discuss the current logic first.~

I am checking the options here.

arunge commented 9 months ago
With version 23.10.02 on the main and beta app, there is a new option to center the map at Pacific. See the same data centered differently: Atlantic Pacific
image image

In essence, Pacific data can centered around the Pacific center, and Atlantic data can be centered around the Atlantic center.

I am just shifting the longitudes: https://github.com/Pandora-IsoMemo/iso-app/blob/1e5df06a500a549c0954f80595983ec7fb3f4820/R/02-leafletSettings.R#L249-L257