Select to view content in your preferred language

FLEX VIEWER 1.3 Problems

1093
6
09-15-2010 04:11 AM
RamakrishnaBillakanti
Regular Contributor
I've published a map for the university of Akron changing the default links to ESRI map services in the config file. I've also changed the map extents in the config file. But unfortunately my map does not display in the flex viewer when I run it. Do I need to change any thing else in the config file before I run my project. Thank you.

Ramakrishna Billakanti
Tags (2)
0 Kudos
6 Replies
JoshCalhoun
Emerging Contributor
Make sure map extents match spatial reference (WKID).

Can you post your code?
0 Kudos
RamakrishnaBillakanti
Regular Contributor
Hi,

Here is the code I'm using to deploy the app

I'm editing only the config files to change the links to the map and setting up the extents to the UAkron Campus.

-------------------------------------------------------------------------------------------------
<configuration>
<userinterface>
  <banner>visible</banner>
  <title>The University of Akron</title>
  <subtitle>Campus Map</subtitle>
  <logo>com/esri/solutions/flexviewer/assets/images/logo.png</logo>
  <stylesheet>com/esri/solutions/flexviewer/themes/darkangel/style.swf</stylesheet>
  <menus>
   <menu id="menuMap" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_globe.png">Map</menu>
   <menu id="menuNav" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_nav.png">Navigation</menu>
   <menu id="menuWidgets" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_widget.png">Tools</menu>
   <menu id="menuHelp" visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_help.png">Help</menu>
  </menus>
</userinterface>

<map initialExtent="-12238341.457 2243325.457 518328.113 " fullExtent="131056669.23 -105282123.76 134993669.23 90708633.01">
<basemaps menu="menuMap">     
   <mapservice label="Campus Map" type="tiled" visible="true" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_highway.png">http://pfoc2.uanet.edu/ArcGIS/rest/services/Accessibility3/MapServer</mapservice>
   <!--mapservice label="Satellite Map" type="tiled" visible="false" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_shuttle.png">http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer</mapservice-->        
</basemaps>
</map>

<navtools>
  <navtool label="Zoom In" icon="com/esri/solutions/flexviewer/assets/images/icons/i_zoomin.png" menu="menuNav">zoomin</navtool>
  <navtool label="Zoom Out" icon="com/esri/solutions/flexviewer/assets/images/icons/i_zoomout.png" menu="menuNav">zoomout</navtool>
  <navtool label="Full Extent" icon="com/esri/solutions/flexviewer/assets/images/icons/i_zoomfull.png" menu="menuNav">zoomfull</navtool>
  <navtool label="Re-center Map" icon="com/esri/solutions/flexviewer/assets/images/icons/i_pan.png" menu="menuNav">pan</navtool>
</navtools>

<widgets>
  <widget label="Overview Map" preload="minimized" icon="com/esri/solutions/flexviewer/assets/images/icons/i_overview.png" menu="menuMap" config="com/esri/solutions/flexviewer/widgets/OverviewMapWidget.xml">com/esri/solutions/flexviewer/widgets/OverviewMapWidget.swf</widget>
  <widget label="Bookmarks" preload="minimized" icon="com/esri/solutions/flexviewer/assets/images/icons/i_bookmark.png" menu="menuMap" config="com/esri/solutions/flexviewer/widgets/BookmarkWidget.xml">com/esri/solutions/flexviewer/widgets/BookmarkWidget.swf</widget>
  <widget label="Print" icon="com/esri/solutions/flexviewer/assets/images/icons/i_print.png" menu="menuMap" config="com/esri/solutions/flexviewer/widgets/PrintWidget.xml">com/esri/solutions/flexviewer/widgets/PrintWidget.swf</widget> 
  <widget label="Locate" icon="com/esri/solutions/flexviewer/assets/images/icons/i_pushpin.png" menu="menuWidgets" config="com/esri/solutions/flexviewer/widgets/LocateWidget.xml">com/esri/solutions/flexviewer/widgets/LocateWidget.swf</widget>
  <widget label="Identify" icon="com/esri/solutions/flexviewer/assets/images/icons/i_info.png" menu="menuWidgets" config="com/esri/solutions/esa/widgets/IdentifyWidget.xml">com/esri/solutions/esa/widgets/IdentifyWidget.swf</widget>
  <widget label="Demographics" icon="com/esri/solutions/flexviewer/assets/images/icons/i_globe.png" menu="menuWidgets" config="com/esri/solutions/esa/widgets/ChartWidget.xml">com/esri/solutions/esa/widgets/ChartWidget.swf</widget>
  <widget label="About" icon="com/esri/solutions/flexviewer/assets/images/icons/i_about.png" menu="menuHelp" config="com/esri/solutions/flexviewer/widgets/AboutWidget.xml">com/esri/solutions/flexviewer/widgets/AboutWidget.swf</widget>
  <!--widget label="Query Builder" icon="com/esri/solutions/flexviewer/assets/images/icons/i_folder.png" menu="menuWidgets" config="com/esri/solutions/esa/widgets/QueryBuilderWidget.xml">com/esri/solutions/esa/widgets/QueryBuilderWidget.swf</widget-->
</widgets>

<links>
  <link label="Help" icon="com/esri/solutions/flexviewer/assets/images/icons/i_help.png" menu="menuHelp">help.html</link>
  <link label="Home" icon="com/esri/solutions/flexviewer/assets/images/icons/i_home.png" menu="menuHelp">http://www.uakron.edu</link>
  <link label="PFOC" icon="com/esri/solutions/flexviewer/assets/images/icons/i_resources.png" menu="menuHelp">http://www.uakron.edu/pfoc</link>
</links>
<proxytype>asp</proxytype> <!-- apache|jsp||php -->
</configuration>
-------------------------------------------------------------------------------------------------
0 Kudos
RamakrishnaBillakanti
Regular Contributor
Am I supposed to change anything in the code or do I need to edit any other files for my flex viewer to work.

Thank you Josh
0 Kudos
LeeAllen
Frequent Contributor
Does the Flex Viewer app work before you change any of the settings in the config file?
0 Kudos
JoshCalhoun
Emerging Contributor
Ramakrishna,

I noticed in your "map initial extent" value there are three values instead of four. Fix this and try it again.

Josh Calhoun
0 Kudos
RamakrishnaBillakanti
Regular Contributor
Hi Josh and Lee

I edited my code but it didn't worked.

I worked with the initial map services provided by esri but when I changed it to my map it didn't worked. Am I supposed to edit anything in the config.as or mapmanager.xml.

Thank you for all your help.
0 Kudos