Esri / image-discovery-app-js

JavaScript Image Discovery Web Application. Use to search, discover, filter, and manipulate imagery.
23 stars 14 forks source link

Add Button Menu next to Discover and Analysis #43

Open soomro30 opened 9 years ago

soomro30 commented 9 years ago

I want to configure the Esri Discovery App and add map discovery into it. Where is the file to modify toolbar button menus (Discover, Analysis) and add other menus.

Rrivera5127 commented 9 years ago

@soomro30

Check out this code:

https://github.com/Esri/image-discovery-app-js/blob/master/site/js/imagediscovery/manager/base/ImageryViewerManager.js

processNavigationToolbarAddons:337

You can see how the discovery and analysis buttons are added to the menu. You will either need to write your code inside of this class, extend this class, or get a reference to "this.navigationToolbar" from this class to add your own buttons.

Use pub/sub for eventing on the button to other parts of the application

soomro30 commented 9 years ago

Thank you for the update. Is there any tutorial or class reference to add another Geometry accordion such as search by bound on a point instead of rectangle. Right now this tool has Search By Bounds on a rectangle. I need to add for a point. Regards,

soomro30 commented 9 years ago

fireshot screen capture 065 - base configuration application - 172_16_5_231_8080_image-discovery_site

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

Rrivera5127 commented 9 years ago

Can you elaborate on "search by bound on a point"? search by decimal degree and DMS? The application might support what you are looking for through a configuration change.

soomro30 commented 9 years ago

I mean i need to search a point using DD, DMS, UTM & MGRS but for a point instead of a rectangle. The tool currently in the app is Search by bound using rectangle . E.g in DD I need just x and y not lower left corner and upper right. Same for DMS, UTM and MGRS.

In simple term I need search by point and add DD DMS UTM AND MGRS into it plus distance and unit.

So I will create a sixth tool which will merger 2nd tool (Search By point) but will also add Bounds into it.

I will appreciate if you help me with this.

Thank you