Closed ThatIsAPseudo closed 1 month ago
After some testing it needs some more tweaking this part : https://github.com/maptiler/maptiler-sdk-js/blob/3588c8e55c4e1b253e70b544191be998e93b7391/src/MaptilerNavigationControl.ts#L15-L35 with this :
if (this._compass) {
// original code
}
Then it seems to work as expected
Hello @ThatIsAPseudo , Thanks for your feeback. Originaly, the idea of MaptilerNavigationControl
was to provide something simple with no confusing options and that just does the minimum, and you're right, the documentation is not aligned with this and shows the options of the parent class MaptilerNavigation
instead.
The best would probably be that it accepts the same options though so I'll make a ticket for this.
Hello, sorry for the late feedback, I kinda forgot to post the update here but this has been fixed
maptiler-sdk-js version: https://github.com/maptiler/maptiler-sdk-js/releases/tag/v2.1.0
Bug description
When creating a
MaptilerNavigationControl
the options given are not taken into account, whereas the MapTiler documentation says the constructor takes anoptions
object as argument.Moreover :
Problem
When creating a
MaptilerNavigationControl
you should be able to pass aNavigationControlOptions
to defineshowCompass
,showZoom
,visualizePitch
.Solution
https://github.com/maptiler/maptiler-sdk-js/blob/3588c8e55c4e1b253e70b544191be998e93b7391/src/MaptilerNavigationControl.ts#L8-L13
This should instead be something like