The article explains how to configure the mstrGeoShapesConfig.xml for Strategy Web / Mobile Server for OOB and Custom shape data.
The purpose of this file is to introduce an abstract configuration object that is independent to map service providers. Both Google maps and ESRI maps can share the same configuration defined in the mstrGeoShapesConfig.xml. The Mobile code also access the shape configuration data from this XML. The file is located at folder WEB-INF/xml/config.
The components inside mstrGeoShapesConfig.xml.
The root element of the mstrGeoShapesConfig.xml is <shape-config>. The shape-config includes the following three elements.
The esriConfig.xml extends the elements from mstrGeoShapesConfig.xml. Only ESRI specific items are defined in esriConfig.xml.
<layers> <layer id="7" title="US-States kml" ml="US-States-View.kml"/> <layer id="8" title="US-Regions" ml="/US-Regions-View.kml"/> <layer id="9" title="Continents" ml="kml/World-Continents.kml"/> <layer id="10" title="Continents" ml="kml/test.kml"/> </layers>
Set the following attribute values accordingly: plugin, custom, and layerId.
<shape id="900" custom="true" plugin="ConnectorForMap" default="false" desc="My Shape" roleId="2" type="Polygon" shapeCat="101213" layerId="7" />
<layers> <layer id="11" title="Continents" ml="kml/US-States-View-With-Abbr.kml"> <shapeKeys> <shapeKey key="name" path="/ExtendedData/Data[@name='name']/Value"/> <shapeKey key="abbr" path="/ExtendedData/Data[@name='ISO_2DIGIT']/Value"/> <shapeKey key="id" path="/ExtendedData/Data[@name='OBJECTID']"/> </shapeKeys> </layer> </layers>
<shapes> <shape id="901" custom="true" plugin="ConnectorForMap" default="false" desc="US States KML" roleId="2" type="Polygon" descWeb="mstrweb.9229" descFlash="mstr.1622" descDesktop="26973" shapeCat="909" shapeKey="name" layerId="11" />
<shape id="902" custom="true" plugin="ConnectorForMap" default="false" desc="US States Abbreviation" roleId="2" type="Polygon" descWeb="mstrweb.9229" descFlash="mstr.1622" descDesktop="26973" shapeCat="910" shapeKey="abbr" layerId="11" /> </shapes>