Select to view content in your preferred language

Adding the "Locate" button to a custom toolbar

1171
3
Jump to solution
02-26-2021 12:47 PM
BrianBulla
Honored Contributor

Hi,

I add the Locate tool to my custom toolbar with the following code, but when it adds it, the pull down menu with "Seach", "Layer Search", and "Address Inspector" is missing.  How do I get that to show up too??

<insertButton refID="esri_mapping_showLocateDockPane"></insertButton>

 

Thanks,

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
KirkKuykendall1
Frequent Contributor

Did you try esri_mapping_locateSplitButton ?

When I put this in my DAML:

KirkKuykendall1_0-1614376967519.png

I see this:

KirkKuykendall1_1-1614377013438.png

 

See idea posted here to make this easier:

https://community.esri.com/t5/arcgis-pro-ideas/show-daml-id-when-hover-over-downarrow-on-splitbutton...

View solution in original post

3 Replies
KirkKuykendall1
Frequent Contributor

Did you try esri_mapping_locateSplitButton ?

When I put this in my DAML:

KirkKuykendall1_0-1614376967519.png

I see this:

KirkKuykendall1_1-1614377013438.png

 

See idea posted here to make this easier:

https://community.esri.com/t5/arcgis-pro-ideas/show-daml-id-when-hover-over-downarrow-on-splitbutton...

CharlesMacleod
Esri Regular Contributor

This is what I see in the ADMapping.daml.

<splitButton id="esri_mapping_locateSplitButton" keytip="L" extendedCaption="Search for addresses">
          <button refID="esri_mapping_showLocateDockPane"/>
          <gallery refID="esri_mapping_locateGallery"/>
        </splitButton>

 

So, I think if u reference the locateSplitButton rather than the showLocateDockPane u will be good to go.

 

 

BrianBulla
Honored Contributor

Thanks guys.  _locateSplitButton worked.

0 Kudos