-
Notifications
You must be signed in to change notification settings - Fork 5
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
Improve layout for querying neighbour addresses by polygon search #1243
Conversation
app/models/consultation.rb
Outdated
"#{polygon_colour}20" | ||
end | ||
|
||
def concatenate_geojsons(*geojsons) |
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.
Need this to represent one geosjon FeatureCollection with all the geosjon features (planning application red line boundary, consultation boundary etc) so we can present this on one map.
If the column type is polygon_geojson we insert the polygon colour so that the map component can distinguish the type of feature
92ef7ab
to
60da2cf
Compare
extend ActiveSupport::Concern | ||
|
||
class_methods do | ||
def format_geojson_epsg(column_name) |
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.
the map component introduces a breaking change here - https://github.com/theopensystemslab/map/pull/256/files
This is to ensure compatibility with the previous way we store geojson
ddcf3a8
to
d9872da
Compare
d9872da
to
8a1afc6
Compare
app/controllers/planning_application/consultations_controller.rb
Outdated
Show resolved
Hide resolved
app/controllers/planning_application/consultations_controller.rb
Outdated
Show resolved
Hide resolved
app/controllers/planning_application/consultations_controller.rb
Outdated
Show resolved
Hide resolved
8a1afc6
to
88e90aa
Compare
a550b24
to
90afc77
Compare
- Update previous longitude / latitude string values to use this new geographic format - These legacy columns are to be removed in a subsequent PR
90afc77
to
7144e62
Compare
Description of change
This PR allows multiple geojson features to be stored on a single map as part of a "FeatureCollection". This enables us to have the consultation polygon overlay the planning application red line boundary. In theory, if we allowed multiple geojson features for the polygon search we could combine this in one map too. We are also able to draw in a specified colour using drawColor and drawFillColor props.
The colour is now set differently for the polygon boundary to distinguish from the red line boundary. This has been done by setting a colour property attribute on the feature which the map component will dynamically set.
Some updates were necessary on the map component to achieve the above.
See: theopensystemslab/map#381 & theopensystemslab/map#379
Story Link
https://trello.com/c/IQsb3WNF/1908-improve-content-and-layout-for-querying-neighbour-addresses-by-polygon-search
Screenshots
Drawn polygon boundary is saved in another colour
Drawing the consultation polygon in another colour