Hi,I'm guessing this isn't possible for all layers but, I have a live and dev instance of a system and the services in each to point different urls.
Private Sub Map1_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim strAddress As String = Application.Current.Host.Source.ToString
Dim strServiceAddressOrganisations As Strin
'refresh of cluster boundaries dynamic map service layer endpoint
dynamicMapServiceLayerClusterBoundaries = Map1.Layers("Cluster Boundaries")
dynamicMapServiceLayerClusterBoundaries.DisableClientCaching = True
dynamicMapServiceLayerClusterBoundaries.Url = servicesAddress & "/Clusters/MapServer/"
'refresh of organisations feature layer endpoint
featureLayerOrganisations = Map1.Layers("Organisations")
featureLayerOrganisations.DisableClientCaching = True
featureLayerOrganisations.Url = strServiceAddressOrganisations
dt.Start()
End Sub
The code doesn't work and complains no URLS have been set, I'm guessing this is because in the XAML no urls are set?