toga icon indicating copy to clipboard operation
toga copied to clipboard

Fix maxZoom

Open StyXman opened this issue 1 year ago • 9 comments

The documentation says:

and zoomed to the required level of detail using an integer from 0 (for global detail) to 20 (for building level detail)

but the HTML declares a maxZoom of 19.

PR Checklist:

  • [ ] All new features have been tested
  • [ ] All new features have been documented
  • [x] I have read the CONTRIBUTING.md file
  • [x] I will abide by the code of conduct

StyXman avatar May 06 '24 08:05 StyXman

Alternatively we could change the docs.

StyXman avatar May 06 '24 08:05 StyXman

Is it 'normal' that towncrier fails?

StyXman avatar May 06 '24 10:05 StyXman

Is it 'normal' that towncrier fails?

Yes - if you haven't provided a change note

freakboy3742 avatar May 07 '24 04:05 freakboy3742

I don't quite understand the thing about the towncrier file. The docs say:

every pull request needs to have a corresponding file in the changes/ directory

It doesn't mention how it should be named or what format.

You can also see existing examples of news fragments in the changes/ folder

The folder is empty except for the template that collects them all in one file, I guess.

StyXman avatar May 07 '24 09:05 StyXman

I don't quite understand the thing about the towncrier file. The docs say:

every pull request needs to have a corresponding file in the changes/ directory

It doesn't mention how it should be named or what format.

Those instructions could probably be clearer; it links to the Towncrier docs, which IIRC used to be a lot more concise about what filenames and content to use. As noted in my comment inline - it should be <ticket_number>.<type>.rst - so 2557.misc.rst in this case (since it's a minor change). It could be 2557.bugfix.rst if you feel it's worth a specific call out in the release notes - my inclination is that it isn't, but I'm willing to be convinced otherwise.

freakboy3742 avatar May 07 '24 09:05 freakboy3742

Those instructions could probably be clearer

I'll try some rephrasing.

StyXman avatar May 07 '24 09:05 StyXman

Is it normal that

The folder is empty except for the template that collects them all in one file, I guess.

?

StyXman avatar May 07 '24 09:05 StyXman

Those instructions could probably be clearer

I'll try some rephrasing.

WIP, will propose another PR:

https://github.com/StyXman/toga/compare/mapview-maxZoom-fix...contribute-code-towncrier

I still need some clarification about the emptiness of the changes/ directory.

StyXman avatar May 07 '24 09:05 StyXman

Only when you submit a pull request right after we cut a release :-)

If this PR had been submitted 24 hours ago, that folder would have had a hundred files in it. So, that's an edge case, to be sure.

freakboy3742 avatar May 07 '24 09:05 freakboy3742

Thanks for the fix!

freakboy3742 avatar May 07 '24 22:05 freakboy3742