Repository navigation
Conversation
Member
easbar
reviewed
May 20, 2021
| 'pk.eyJ1IjoiamFuZWtkZXJlcnN0ZSIsImEiOiJjajd1ZDB6a3A0dnYwMnFtamx6eWJzYW16In0.9vY7vIQAoOuPj7rg1A_pfw', | ||
| accessToken: 'pk.eyJ1IjoiamFuZWtkZXJlcnN0ZSIsImEiOiJjajd1ZDB6a3A0dnYwMnFtamx6eWJzYW16In0.9vY7vIQAoOuPj7rg1A_pfw', | ||
| style: Mapbox.getStyle(mapStyle), | ||
| /* bounds: new LngLatBounds(bbox) */ |
Member
There was a problem hiding this comment.
I think we need something like this for #82, but the bbox seems to be [0, 0, 0, 0] (selectedPath.bbox is not properly set yet or something). We also have to make sure that we respect the current map position in case there was user interaction and a layer change before.
easbar
reviewed
May 20, 2021
| @@ -1,5 +1,6 @@ | |||
| import { LineString } from 'geojson' | |||
|
|
|||
| // min lat, min lng, max lat, max lng | |||
Member
There was a problem hiding this comment.
I think it is actually min lng, min lat, max lng, max lat, for example world = [-180, -90, 180, 90], but yes, adding such a comment might help :)
Member
Author
There was a problem hiding this comment.
oh, strange. I thought I did my research properly :/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this avoids the jump on load. the jump, when two points are specified, still exists.
TODO: zoom a bit into the world (if world boundary) to avoid seeing some continents twice.
related to #53