Select to view content in your preferred language

Address Locator Issues

1131
4
02-03-2021 09:50 AM
GaryBilotta
Regular Contributor

Hello.  Has anyone been able to add an Address Locator (.loc file) through the Pro SDK that is on a network drive?  It seems to be hit and miss.  Most times after adding, it finishes adding, but the locator cannot be used and when attempting to view all map locators in the catalog tree (including esri built-in), they cannot be viewed and there is a spinning icon that persists.   I can add one from the local C drive though (same as the one copied from the network drive).  Also, has anyone been able to add a locator to their favorites in Pro (this would remove the need for the above).  Thank you.

Pretty straight forward code:

MapView mapView = MapView.Active;

LocatorManager locatorManager = mapView.LocatorManager;

await locatorManager.AddLocatorAsync(strLocatorPath);

 

 

Tags (3)
0 Kudos
4 Replies
MichaelVolz
Esteemed Contributor

Are you using a mapped network drive or a unc path?

0 Kudos
GaryBilotta
Regular Contributor

Hi Michael.  I have tried both a unc path and mapped network drive resulting with the same issue.  

0 Kudos
KirkKuykendall1
Frequent Contributor

Did you try it with write-access enabled on the UNC folder?

0 Kudos
GaryBilotta
Regular Contributor

Hi Kirk,

I have full access to the UNC folder.  Thank you.

0 Kudos