Select to view content in your preferred language

Layer is not shown in the TOC after load shapefile

3064
21
Jump to solution
12-13-2012 09:44 AM
LeonardoAraújo
Deactivated User
Hi all,

I'm trying to use the Load Shapefile widget (http://www.arcgis.com/home/item.html?id=bc6a88cf51364d9ea767347954363d7d) and am having a problem after loading a file. The features are loaded successfully but the TOC does not display the new layer. Could anyone help me on this?
Tags (2)
0 Kudos
21 Replies
LeonardoAraújo
Deactivated User
Leonardo,

   You are meaning to say Geometry Service right?... And you have you Flex Viewers main config.xml point to your Geometry Service?


Right, I meant Geometry Service. I'm pointing to my own service in the config.xml file.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Leonardo,

   Can you try and use my live preview site to test your shapefile zip?
0 Kudos
LeonardoAraújo
Deactivated User
Leonardo,

   Can you try and use my live preview site to test your shapefile zip?


I've done this and it worked perfectly.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Leonardo,

   Are you using ArcGIS Viewer for Flex 3.0 and Adobe Flex SDK 4.6?
0 Kudos
LeonardoAraújo
Deactivated User
Leonardo,

   Are you using ArcGIS Viewer for Flex 3.0 and Adobe Flex SDK 4.6?


Yes. agslib-3.0-2012-06-06 and sdk 4.6.0
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Leonardo,

  Can you try pointing your main config.xml  to this instead of your?

<geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" />
0 Kudos
LeonardoAraújo
Deactivated User
Leonardo,

  Can you try pointing your main config.xml  to this instead of your?

<geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" />


I did a deploy the application to my web server and there everything was fine. For some reason I am not able to run the application from my IDE.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Leonardo,

  Strange I run from my Flash Builder IDE all the time. Do you have your Flex Build Path in your project pointing to an"Output folder URL"?
0 Kudos
LeonardoAraújo
Deactivated User
Leonardo,

  Strange I run from my Flash Builder IDE all the time. Do you have your Flex Build Path in your project pointing to an"Output folder URL"?


No, I don't have any application server pointed in Flex server tab property of my my application.
0 Kudos
PetraKrsnik
Emerging Contributor
Hi,

I'm also having problems showing layer in the TOC. I use ArcGIS Viewer for Flex 3.0 and Adobe Flex SDK 4.6.  I use uncompiled versions of widgets. When I upload a .zip file it reproject and shows on the map correctly, but it does not show up in TOC. I get �??Generating TOC Legend�?� message which never ends. It does not stop showing this message even after I remove shape file. Otherwise TOC widget works perfectly. I tried using layer list and my shapefile does show up there. Any idea how to fix this?

Thank you,
Petra
0 Kudos