Esri / nearby-javascript

ArcGIS API for JavaScript app to find places nearby and route to the nearest location.
Apache License 2.0
41 stars 24 forks source link

Center the search button at bottom of map view #12

Open mikewilburn opened 5 years ago

mikewilburn commented 5 years ago

The Search button is currently centered at the bottom of the entire application window. It would demonstrate a better practice to show how to center it at the bottom of just the map view.

It appears a bit oddly when it becomes offset: image

mikewilburn commented 5 years ago

This would make it consistent with how Google Maps behaves when we pan or otherwise move the initial searched map extent.

image

odoe commented 5 years ago

This will require I build a custom snackbar component rather than use the one that comes with @rmwc that I use. I can do this at a later date.

mikewilburn commented 5 years ago

Good to know @odoe. I don't think it's imperative that it's done right away anyway.

mikewilburn commented 5 years ago

It would also be nice for the snackbar (when/if implemented) to not auto-dismiss from view if the the user doesn't interact with it immediately. Google's "SEARCH THIS AREA" button remains visible until clicked.