Draft
Conversation
Member
|
Ok -- so my thoughts:
|
Contributor
Author
|
going to add a geoJSON layer next and get the EditWidget to work with it |
Open
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.
finally in a readable/workable state! still some bugs and might not be the optimal way of doing things. you can see the map here on the quote page where you're confirming field locations. i've been looking at this: https://localhost:5001/caes/quote/create/104
there's a map using their built in edit widget:

and one that adds features with react state. we could probably combine this with the edit widget or make our own custom interface. currently i just have a button that adds a predetermined polygon and one that deletes the most recent graphic

also was messing with using their sketch widget and their watch() util but that isn't functional.
pretty interesting, but we should talk about the data storage and what we want to host on ArcGIS (and how). currently we store geometry as a Location column in the db.
currently, here is what i have hosted for this:
Harvest Map which contains our basemap of satellite imagery. i don't think we have to specifically add the osm baselayer, but in the toggle we also use an OSM basemap.
Harvest Fields Feature Layer where the actual field shapes/graphics are stored.
Harvest Insight haven't looked into Insights very much or how we would be able to interface it, but pretty cool. i found a map on UCD's ArcGIS Online directory that has Yolo County crop maps and i cross referenced where our field locations are in the Harvest Fields Feature Layer ☝️ and it shows what crop data they have within those locations. that's the workbook but you can also export a report. though you have to manually refresh the data

i can't link to it but i also have an API key generated that we could use to access/query if we need that. seems like we can use the REST API to do spatial analysis
also, this is all hosted on my personal account and obviously we need a better system than that.
my opinion is that this is pretty cool and has a lot more potential than using Leaflet. my biggest questions are around how we want to store/interface with the GIS data, and what access users would have to those layers. also not sure about the licensing/use for GIS services