-
Notifications
You must be signed in to change notification settings - Fork 46
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
add map page and add basic layers panel #40
add map page and add basic layers panel #40
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make a change in the repo so what even when we are raising the PR which gets merged against a feature branch, build check and other checks are run. This will ensure that those checks are not run when we merge the feature branch in the main branch.
The alignment of the Layers and Roadmap in the screenshot seems to be not correct. Please fix that. |
Also can we add the UX designer on this PR so that he can take a look at the screen shot only. So that there are no obvious alignment and other issues. |
The commits I pushed is for the basic functions, will follow up UX design and update the PR. |
Sure, since it's new plugin, currently there seems no check workflow related to this feature branch, will add some. |
Yes, we need verify on the UI. Currently this PR are more focus on the basic functions, will ask UX designer for review once we have the final UI component as designed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 🎉
export const MAP_VECTOR_TILE_URL = | ||
'https://dldbnqfps17cd.cloudfront.net/styles/basic-preview/compressedstyle.json'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we cannot replace it right now? If there is a tracking GH issue please attach a TODO here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the production vector tiles service uses OpenStreetMap, which is under review by legal team, will update then.
export const MAP_INITIAL_STATE = { | ||
lng: 11, | ||
lat: 49, | ||
zoom: 2, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please specify what these coordinates represents.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update to
lng: 0,
lat: 0,
zoom: 1,
</> | ||
<div> | ||
<Switch> | ||
<Route exact path="/create-map" render={(props) => <Map />} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we make constants for these path names?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
*/ | ||
|
||
@import "maplibre-gl/dist/maplibre-gl.css"; | ||
|
||
/* stylelint-disable no-empty-source */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need remain it for Maplibre right format https://maplibre.org/maplibre-gl-js-docs/api/#maplibre-css.
Signed-off-by: Junqiu Lei <[email protected]>
Signed-off-by: Junqiu Lei [email protected]
Description
Issue
#44
Screenshot
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.