ArcGIS online services map does not display when the PrimaryResource is set to another mapResourceItem.
Last Published: August 25, 2014No Product Found
Bug ID Number
NIM038162
Submitted
September 4, 2008
Last Modified
March 19, 2025
Applies to
No Product Found
Version found
9.3
Status
Duplicate
The issue is a duplicate of an existing issue. See the issue's Additional Information section for details. Customers associated with the duplicate issue are automatically attached to the open issue.
Additional Information
NIM036189 - Remove code that restricts dynamic map generation for ArcGIS Online services
Workaround
If add the resourceItem using code, do not use Map1.PrimaryMapResource = "SanFrancisco"Try the following code instead: Dim localMapFunctionality As ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapFunctionality localMapFunctionality = Map1.GetFunctionality(0) Map1.Extent = ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Converter.ToAdfEnvelope(localMapFunctionality.MapDescription.MapArea.Extent) Map1.Extent = Map1.Extent.Expand(25)