Is there a way that I can specify the top and left css positions of either of these widgets. It seems as though there was a way in 3.28 but I can't seem to make it work in 4.11.
I only see the generic positions I can add: "top-trailing", "top-left"
You can use the manual option and provide the position via css. There's an example here: JS Bin - Collaborative JavaScript Debugging
I'm looking for the proper way to position it using pixels. NOT by using the defaults they provide
Hi Tony,
You can add UI position as per below:
Possible Values: bottom-leading | bottom-left | bottom-right | bottom-trailing | top-leading | top-left | top-right | top-trailing | manual
Here are the web help links:
https://developers.arcgis.com/javascript/latest/guide/view-ui/
https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#add
Example:
view.ui.add(search, "top-right");
Thanks,
Biraja
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.