-
Notifications
You must be signed in to change notification settings - Fork 7
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
WAITP-1209: Map entities part 2 #4682
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.
This is looking really nice!
this.map?.fitBounds(bounds, { | ||
animate: true, | ||
}); | ||
this.map?.fitBounds(bounds, { animate: true }); |
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.
Did you end up finding a nice animation for this one?
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.
I did get it working pretty nicely with map.fitToBounds and it while it was nice and smooth it was much less snappy and a very different feel from how it currently works. So I just went for feature parity and added a note to the list of polish as a reminder to look at it later with Edwin.
export const useEntitiesWithLocation = (projectCode?: string, entityCode?: string) => | ||
useEntities(projectCode, entityCode, { | ||
params: { fields: ['parent_code', 'code', 'name', 'type', 'bounds', 'region'] }, | ||
}); |
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.
Nice, I like this
* setup map entites * wip * wip * re organise project view * mobile search layout * polygon layer * map animation * fix mini map * Update Dashboard.tsx * merging * map overlay data * add Map overlays feature folder * useEntitiesWithLocation * typescript * remove test code * Update InteractivePolygon.tsx
* setup map entites * wip * wip * re organise project view * mobile search layout * polygon layer * map animation * fix mini map * Update Dashboard.tsx * merging * map overlay data * add Map overlays feature folder * useEntitiesWithLocation * typescript * remove test code * Update InteractivePolygon.tsx
Issue #: WAITP-1209: Map entities part 2
Changes:
Screenshots: