feat: ability to read geojson polygon into initial drawing layer#70
Merged
jessicamcinchak merged 1 commit intomainfrom Oct 27, 2021
Merged
Conversation
|
✔️ Deploy Preview for oslmap ready! 🔨 Explore the source changes: 79f3384 🔍 Inspect the deploy log: https://app.netlify.com/sites/oslmap/deploys/617555a0a833ef0007a901b6 😎 Browse the preview: https://deploy-preview-70--oslmap.netlify.app |
gunar
approved these changes
Oct 26, 2021
Contributor
gunar
left a comment
There was a problem hiding this comment.
Awesome. Code looks good and it works. We probably need to bump minor version in package.json too right? Thank you!
Member
Author
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 will enable us to "go back" to the DrawBoundary component in PlanX and load the site boundary that was originally drawn. The initial shape will load with the modification & snap interactions enabled so that you can alter it. The "reset" control will clear the layer and display the draw cursor anew, same as it works now. The drawing layer is still limited to one feature at a time.
Introducing two new optional properties (both assume
drawModeis true/enabled):drawGeojsonData: an object that accepts a single GeoJSON Feature with projection "EPSG:3857"drawGeojsonDataBuffer: a number to control the extent of the map view, defaults to 100Example implementation: