-
Notifications
You must be signed in to change notification settings - Fork 14
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
Adding a new tool in the Geometry - Clone Search By Bounds and create new one #44
Comments
What do you want the sixth tool to do? SearchByBounds is the most complex of the search tools and would require quite a bit of code changes to implement. Another geometry search (such as circle) would be much easier to implement. you would add the toggle icon for the tool here: update the view model for the clicking of the toggle icon here (need to turn off other tools when clicked) then you create an instance of your new widget here (reference how i create an instance of SearchByBoundsWidget): follow the searchbyBounds widget for some geometry passing event: inside of ImageDiscoveryWidget you need to listen on an event that your new widget will publish when the user wants to search by their inputs (you convert the input to an esri geometry). in ImageDiscoveryWidget you can see that i am listening on "boundsGeometryCreated" to be called from the bounds widget. This passes the geometry with the event where i use it to call "performSearchCallback" which does the searching. this.searchByBoundsWidget.on("boundsGeometryCreated", this.performSearchCallback); Not too complicated but there are a lot of moving parts:
|
I will try to create and see if I can manage this. Thank you very much. |
Thanks. I was able to create another toolbox. I need to show footprints based on mgrs. Regards |
Thanks Rivera, I was able to create the search by coordinates tool but my search buffer is I have attached the screenshot. How can I implement search by x,y as a center point and radius buffer as a You can see in the image. On Tue, Jun 23, 2015 at 9:00 PM, Richard Rivera [email protected]
|
Any way to pass distance variable in return new Extent(minx, miny, maxx, maxy, new SpatialReference({ |
I want to clone SearchByBounds and create another tool or sixth tool in the geometry. I have tried but it looks very complex. Can you tell me quick way to create another tool of Search By Bounds
The text was updated successfully, but these errors were encountered: