feature/google-maps-in-mapeditor-added #33

Merged
bence merged 9 commits from feature/google-maps-in-mapeditor-added into develop 2021-05-02 13:38:17 +02:00
Member
  • Added Google Maps to MapEditor as the default map.
  • Added a button for selection between Google Maps and Leaflet based map.
  • Refactored to code to be able to handle modifications on different maps in the same editing session.
* Added Google Maps to MapEditor as the default map. * Added a button for selection between Google Maps and Leaflet based map. * Refactored to code to be able to handle modifications on different maps in the same editing session.
balazs added 6 commits 2021-05-01 20:37:37 +02:00
balazs requested review from bence 2021-05-01 20:37:44 +02:00
balazs added 1 commit 2021-05-01 20:37:53 +02:00
bence reviewed 2021-05-02 11:28:47 +02:00
@ -417,0 +507,4 @@
zoomControlOptions: {
position: google.maps.ControlPosition.LEFT_BOTTOM
},
streetViewControl: true,
Owner

I would remove this and add a permanent street view cover layer to the map so the available locations will be always shown. (This is the same how the competitor does.)

Reference: https://developers.google.com/maps/documentation/javascript/reference/street-view#StreetViewCoverageLayer

Example:

                var streetViewCover = new google.maps.StreetViewCoverageLayer();
                streetViewCover.setMap(GMapWrapper.map);

I would remove this and add a permanent street view cover layer to the map so the available locations will be always shown. (This is the same how the competitor does.) Reference: https://developers.google.com/maps/documentation/javascript/reference/street-view#StreetViewCoverageLayer Example: ```js var streetViewCover = new google.maps.StreetViewCoverageLayer(); streetViewCover.setMap(GMapWrapper.map); ``` ![](https://i.ibb.co/LPjP4rr/Bildschirmfoto-vom-2021-05-02-11-27-40.png)
Author
Member

I personally consider the permanent street view cover layer disturbing. Can we just add another switch to toggle it?

I personally consider the permanent street view cover layer disturbing. Can we just add another switch to toggle it?
Owner

For me it's OK, then it can be done later.

For me it's OK, then it can be done later.
bence marked this conversation as resolved
Owner

PNG files (as these are binaries) should be stored with git-lfs. I think you don't have git-lfs on your machine, otherwise they would have been committed that way.

Example if files are stored with LFS: https://gitea.e5tv.hu/esoko/mapguesser/compare/develop...git-lfs-example

To fix this, the commits should be created again on this branch after git-lfs is installed.

git reset --hard origin/develop
git cherry-pick --no-commit 1a49b365
git restore --staged -- public/static/img/markers/
git add public/static/img/markers/
git commit
# and cherry pick the remaining commits
git push --force

Rewriting the history and force push is neccessary otherwise binaries would still be stored in the index.

PNG files (as these are binaries) should be stored with git-lfs. I think you don't have git-lfs on your machine, otherwise they would have been committed that way. Example if files are stored with LFS: https://gitea.e5tv.hu/esoko/mapguesser/compare/develop...git-lfs-example To fix this, the commits should be created again on this branch after git-lfs is installed. ```bash git reset --hard origin/develop git cherry-pick --no-commit 1a49b365 git restore --staged -- public/static/img/markers/ git add public/static/img/markers/ git commit # and cherry pick the remaining commits git push --force ``` Rewriting the history and force push is neccessary otherwise binaries would still be stored in the index.
Owner

It is a very good feature because it seems that the editor is easier to use with Google Maps. Maybe it won't be neccessary to keep the Leaflet version at all so it might be removed in the future.

It is a very good feature because it seems that the editor is easier to use with Google Maps. Maybe it won't be neccessary to keep the Leaflet version at all so it might be removed in the future.
balazs force-pushed feature/google-maps-in-mapeditor-added from ac9b106c65 to 09d1f819a6 2021-05-02 12:14:50 +02:00 Compare
balazs force-pushed feature/google-maps-in-mapeditor-added from 09d1f819a6 to ef8ad69506 2021-05-02 12:32:28 +02:00 Compare
balazs added 5 commits 2021-05-02 12:35:12 +02:00
bence approved these changes 2021-05-02 12:48:34 +02:00
balazs added 1 commit 2021-05-02 12:56:37 +02:00
toggling of street view cover added
All checks were successful
default-pipeline default-pipeline #153
19a1b79b0a
bence added 2 commits 2021-05-02 13:30:02 +02:00
bence approved these changes 2021-05-02 13:30:29 +02:00
bence merged commit 55ec226407 into develop 2021-05-02 13:38:17 +02:00
bence deleted branch feature/google-maps-in-mapeditor-added 2021-05-02 13:38:25 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: esoko/mapguesser#33
No description provided.