Features not loading in Web Map

942
6
10-22-2012 07:37 AM
davidmetzler
New Contributor II
Greetings,
   I have run into a little spot of bother regarding the ArcGIS viewer for Flex. I am trying to display a points layer from one of our published map services. there are roughly 3500 Features. Nearest I can tell I have set up everything correctly on the server side. the mxd behind the service is displaying all of the points I need to see and the MSD has been republished.
   The web all itself will only display roughly 60% of these points. when I run the search widget all of the points can be accessed. If I do a graphical search all of the points will show up with the binoculars icon. To me it looks like the features I have loaded recently (Have higher Object ID's) are not showing up.
    Any thoughts?


Thanks,
    Dave
Tags (2)
0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Dave,

   What does your layer element in the main config.xml look like for this map service that is giving you this issue? Are you just reaching your max return features limit for that map service (by default it is set to 1000)?
0 Kudos
davidmetzler
New Contributor II
Dave,

   What does your layer element in the main config.xml look like for this map service that is giving you this issue? Are you just reaching your max return features limit for that map service (by default it is set to 1000)?


Thanks for the response. I am very new to all of this so please forgive my ignorance. In looking over the config files I see this with respect to the service I am putting the data into.




<layer label="PFS Survey Pending" type="dynamic" visible="false" imageFormat="png32" alpha="1" url="http://pam.petro-fs.com/ArcGIS/rest/services/PFS/PFS_Survey_v3_Pending/MapServer"/>




here is all of the config stuff for the web app I am building




  <?xml version="1.0" ?>
- <configuration>
  <title>Bear Tracker</title>
  <logo>assets/images/logo.png</logo>
- <style>
  <colors>0xffffff,0x333333,0x101010,0x0,0xffd700</colors>
  <alpha>0.8</alpha>
  <font name="Comic Sans MS" />
  <titlefont name="Arial" />
  <subtitlefont name="null" />
  </style>
- <!--  replace the following url with your own geometryservice
  -->
  <geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" useproxy="false" />
- <widgetcontainer layout="float">
  <widget icon="assets/images/i_target.png" label="Find an address" config="widgets/Locate/LocateWidget.xml" url="widgets/Locate/LocateWidget.swf" />
  <widget icon="assets/images/i_draw2.png" label="Draw and Measure" config="widgets/Draw/DrawWidget.xml" url="widgets/Draw/DrawWidget.swf" />
  <widget icon="assets/images/i_print.png" label="Print" config="widgets/Print/PrintWidget.xml" url="widgets/Print/PrintWidget.swf" />
  <widget url="widgets/LayerList/LayerListWidget.swf" config="widgets/LayerList/LayerListWidget_1.xml" label="Layer List" icon="assets/images/i_layers.png" />
  <widget url="widgets/Legend/LegendWidget.swf" config="widgets/Legend/LegendWidget_1.xml" label="Legend" icon="assets/images/Legend32.png" />
  <widget url="widgets/Search/SearchWidget.swf" config="widgets/Search/SearchWidget_1.xml" label="Search" icon="assets/images/i_search.png" />
  </widgetcontainer>
  <subtitle>Pipeline</subtitle>
  <widget url="widgets/Navigation/NavigationWidget.swf" config="widgets/Navigation/NavigationWidget.xml" left="10" top="50" />
  <widget url="widgets/OverviewMap/OverviewMapWidget.swf" config="widgets/OverviewMap/OverviewMapWidget.xml" right="-2" bottom="-2" />
  <widget url="widgets/MapSwitcher/MapSwitcherWidget.swf" config="widgets/MapSwitcher/MapSwitcherWidget.xml" right="20" top="55" />
  <widget url="widgets/HeaderController/HeaderControllerWidget.swf" config="widgets/HeaderController/HeaderControllerWidget.xml" left="0" top="0" />
- <map esrilogovisible="true" openhandcursorvisible="true" scalebarvisible="true" zoomslidervisible="false" wraparound180="true" addarcgisbasemaps="true" initialextent="-11567139.31931013 6102416.403950664 -11433298.082782969 6172356.284831506" wkid="102100" top="40">
- <basemaps>
  <layer type="tiled" label="Imagery" icon="https://www.arcgis.com/sharing/rest/content/items/86de95d4e0244cba80f0fa2c9403a7b2/info/thumbnail/te..." url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" visible="true" />
  </basemaps>
- <operationallayers>
  <layer type="dynamic" label="PLSS SupportingData" url="http://pam.petro-fs.com/arcgis/rest/services/SupportingServices/PLSS_SupportingData/MapServer" visible="true" />
  <layer type="dynamic" label="ND SupportingData v2" url="http://pam.petro-fs.com/arcgis/rest/services/SupportingServices/ND_SupportingData_v2/MapServer" visible="true" />
  <layer type="feature" label="Tracts" url="http://pam.petro-fs.com/arcgis/rest/services/PFS/PFS_Survey_v3_Pending/MapServer/5" popupconfig="popups/PopUp_4.xml" mode="snapshot" visible="true" />
  <layer type="feature" label="Kodiak Route Export 100312" url="http://pam.petro-fs.com/arcgis/rest/services/PFS/PFS_Survey_v3_Pending/MapServer/4" visible="true" />
  <layer type="feature" label="linework" url="http://pam.petro-fs.com/arcgis/rest/services/PFS/PFS_Survey_v3_Pending/MapServer/3" visible="true" />
  <layer type="feature" label="field points" url="http://pam.petro-fs.com/arcgis/rest/services/PFS/PFS_Survey_v3_Pending/MapServer/2" popupconfig="popups/PopUp_5.xml" mode="snapshot" visible="true" />
  </operationallayers>
  </map>
  </configuration>


I hope I am sniffing in the right spot here.

Thanks
0 Kudos
MattShetzer
New Contributor
Dave,
The number of records returned is in relation to the service running on the server, not the code itself. 

Each service can limit how many records are returned in a query (for performance).  You need to up this value to meet your needs.

Matt Shetzer



Thanks for the response. I am very new to all of this so please forgive my ignorance. In looking over the config files I see this with respect to the service I am putting the data into.




<layer label="PFS Survey Pending" type="dynamic" visible="false" imageFormat="png32" alpha="1" url="http://pam.petro-fs.com/ArcGIS/rest/services/PFS/PFS_Survey_v3_Pending/MapServer"/>




here is all of the config stuff for the web app I am building




  <?xml version="1.0" ?>
- <configuration>
  <title>Bear Tracker</title>
  <logo>assets/images/logo.png</logo>
- <style>
  <colors>0xffffff,0x333333,0x101010,0x0,0xffd700</colors>
  <alpha>0.8</alpha>
  <font name="Comic Sans MS" />
  <titlefont name="Arial" />
  <subtitlefont name="null" />
  </style>
- <!--  replace the following url with your own geometryservice
  -->
  <geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" useproxy="false" />
- <widgetcontainer layout="float">
  <widget icon="assets/images/i_target.png" label="Find an address" config="widgets/Locate/LocateWidget.xml" url="widgets/Locate/LocateWidget.swf" />
  <widget icon="assets/images/i_draw2.png" label="Draw and Measure" config="widgets/Draw/DrawWidget.xml" url="widgets/Draw/DrawWidget.swf" />
  <widget icon="assets/images/i_print.png" label="Print" config="widgets/Print/PrintWidget.xml" url="widgets/Print/PrintWidget.swf" />
  <widget url="widgets/LayerList/LayerListWidget.swf" config="widgets/LayerList/LayerListWidget_1.xml" label="Layer List" icon="assets/images/i_layers.png" />
  <widget url="widgets/Legend/LegendWidget.swf" config="widgets/Legend/LegendWidget_1.xml" label="Legend" icon="assets/images/Legend32.png" />
  <widget url="widgets/Search/SearchWidget.swf" config="widgets/Search/SearchWidget_1.xml" label="Search" icon="assets/images/i_search.png" />
  </widgetcontainer>
  <subtitle>Pipeline</subtitle>
  <widget url="widgets/Navigation/NavigationWidget.swf" config="widgets/Navigation/NavigationWidget.xml" left="10" top="50" />
  <widget url="widgets/OverviewMap/OverviewMapWidget.swf" config="widgets/OverviewMap/OverviewMapWidget.xml" right="-2" bottom="-2" />
  <widget url="widgets/MapSwitcher/MapSwitcherWidget.swf" config="widgets/MapSwitcher/MapSwitcherWidget.xml" right="20" top="55" />
  <widget url="widgets/HeaderController/HeaderControllerWidget.swf" config="widgets/HeaderController/HeaderControllerWidget.xml" left="0" top="0" />
- <map esrilogovisible="true" openhandcursorvisible="true" scalebarvisible="true" zoomslidervisible="false" wraparound180="true" addarcgisbasemaps="true" initialextent="-11567139.31931013 6102416.403950664 -11433298.082782969 6172356.284831506" wkid="102100" top="40">
- <basemaps>
  <layer type="tiled" label="Imagery" icon="https://www.arcgis.com/sharing/rest/content/items/86de95d4e0244cba80f0fa2c9403a7b2/info/thumbnail/tempimagery.jpg" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" visible="true" />
  </basemaps>
- <operationallayers>
  <layer type="dynamic" label="PLSS SupportingData" url="http://pam.petro-fs.com/arcgis/rest/services/SupportingServices/PLSS_SupportingData/MapServer" visible="true" />
  <layer type="dynamic" label="ND SupportingData v2" url="http://pam.petro-fs.com/arcgis/rest/services/SupportingServices/ND_SupportingData_v2/MapServer" visible="true" />
  <layer type="feature" label="Tracts" url="http://pam.petro-fs.com/arcgis/rest/services/PFS/PFS_Survey_v3_Pending/MapServer/5" popupconfig="popups/PopUp_4.xml" mode="snapshot" visible="true" />
  <layer type="feature" label="Kodiak Route Export 100312" url="http://pam.petro-fs.com/arcgis/rest/services/PFS/PFS_Survey_v3_Pending/MapServer/4" visible="true" />
  <layer type="feature" label="linework" url="http://pam.petro-fs.com/arcgis/rest/services/PFS/PFS_Survey_v3_Pending/MapServer/3" visible="true" />
  <layer type="feature" label="field points" url="http://pam.petro-fs.com/arcgis/rest/services/PFS/PFS_Survey_v3_Pending/MapServer/2" popupconfig="popups/PopUp_5.xml" mode="snapshot" visible="true" />
  </operationallayers>
  </map>
  </configuration>


I hope I am sniffing in the right spot here.

Thanks
0 Kudos
davidmetzler
New Contributor II
With the help of mighty MShetzer I have increased the limit and am still having the same issue. I have also brought in the same Map service into another map application and I am seeing all of the points that are in the feature class. Is there some performance settings in the flex builder application?
0 Kudos
RhettZufelt
MVP Frequent Contributor
I had to increase my service limit to more than the number of features in the feature class AND change my mode="OnDemand" to get all the features to show, especially the last added features.  (though it does slow it down some)

http://help.arcgis.com/en/webAPI/flex/help/index.html#//017p00000002000000

R_
0 Kudos
AnthonyGiles
Frequent Contributor
David,

After you changed the number of features in your service, did you refresh your REST cache:

http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/admin.html

Regards

Anthony
0 Kudos