Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gridmap - When zoomed in to 6 char colouring isn't shown #3136

Closed
magicbug opened this issue Jun 11, 2024 Discussed in #3130 · 3 comments
Closed

Gridmap - When zoomed in to 6 char colouring isn't shown #3136

magicbug opened this issue Jun 11, 2024 Discussed in #3130 · 3 comments
Assignees
Labels
Bug Ah shit, we broke something

Comments

@magicbug
Copy link
Owner

Discussed in #3130

Originally posted by emics June 7, 2024
With v2.6.14 in Gridmap i can see all grid worked and confirmed (red and green square).
If I zoom in a 4 chars square i can see detailed grid (6 chars) but i don't have the square coloured green and red although my QSO are correct with 6 chars grid.

have you the same ?
thanks

@magicbug magicbug added the Bug Ah shit, we broke something label Jun 11, 2024
@magicbug magicbug self-assigned this Jun 11, 2024
@emics
Copy link
Contributor

emics commented Jun 11, 2024

I Have investigated ,
the first thing is to enable: $config['map_6digit_grids'] = TRUE; in application/config/cloudlog.php
the second thing is wrong parameters in d3 variable (located in line 37 - assets/js/leaflet/L.MaidenheadColouredGridMap.js)

redraw: function () {
		var d3 = new Array(20, 10, 10, 1, 1, 1, 1, 1, 1, 1, 1 / 24, 1 / 24, 1 / 24, 1 / 24, 1 / 24, 1 / 240, 1 / 240, 1 / 240, 1 / 240, 1 / 240 / 24, 1 / 240 / 24);

zomming the map some 6digit square are green and red but in the wrong position.
the bounds variable in line 67 contains the corners of confirmed square and the coordinates are wrong.

i hope to help someone to fix the bug!!!

magicbug added a commit that referenced this issue Jun 19, 2024
@magicbug
Copy link
Owner Author

Fixed

@emics
Copy link
Contributor

emics commented Jun 27, 2024

Hi Peter,
in the new realease there is always the problem in 4 digit gridsqare.
I show you some screen in GridSquare Map:

This is the grid of Rome (Italy)
zoom1

if I zoom in the squares changes
zoom2

another level of zoom and change again
zoom3

the only QSO I have in JN61 grid are in

  • JN61is
  • JN61iu
  • JN61gu [confirmed]
  • JN61hv
  • JN61fv

there is somthing wrong in d3 variable (located in line 37 - assets/js/leaflet/L.MaidenheadColouredGridMap.js)
read my comment here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Ah shit, we broke something
Projects
None yet
Development

No branches or pull requests

2 participants