Select to view content in your preferred language

InteractiveMap tag in gpt.xml

2010
1
06-29-2012 12:38 PM
JulieRecker
Emerging Contributor
Hi,
Hi, We are using a custom map service in our geoportal 1.2 search page. I have defined the mapInitialExtent attribute in the InteractiveMap component in gpt.xml, and it is not reading it in. I use the example in the wiki, and that displays correctly, but when I try to add our own custom initial extent, it defaults the world view:

<interactiveMap
        jsapiUrl="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5"
        mapServiceUrl="http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer"
        mapServiceType="dynamic" 
        geometryServiceUrl="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"
        locatorUrl="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer"
        locatorSingleFieldParameter = "city"
 mapInitialExtent="xmin:-19941039.73,ymin:1999507.02,xmax:20013930.05,ymax:11539769.19,spatialReference:{wkid:102113}"
/>


Any thoughts?
Thanks,
0 Kudos
1 Reply
JulieRecker
Emerging Contributor
In case anyone else has this problem, the following response:

Thanks for your report. It seems there is an issue here that we need to look into further. Meanwhile, try to use geographic coordinate, for example: mapInitialExtent="xmin:-14.0276,ymin:35.4381,xmax:40.6062,ymax:63.4933,spatialReference:{wkid:4326}" Min Seong Kang
0 Kudos