Select to view content in your preferred language

Map Service won't show up in FlexViewer

4891
22
05-27-2010 04:42 AM
PaulFrey
Emerging Contributor
So i have a published map service that is running fine, if I go to its actual URL in a browser it is there and it is running.  However when i link it into the FlexViewer it will not show up.  I have it programmed in as a Live Map and a basemap and neither of them show.  I'm really hoping someone else has had this problem and its an easy fix.  Does anyone have any clues as to what is going on?  Any help would be greatly appreciated.

-Paul
Tags (2)
0 Kudos
22 Replies
DaveKirkley
Occasional Contributor
Paul,
I'm Having the same problem. I can get the sample online map service to show no problem, but when I add my own service the map doesn't show. I believe it has something to do with the extents.

Here is a snippet of my code so far...

<?xml version="1.0" encoding="utf-8"?>
<mx:Application   
xmlns:mx="http://www.adobe.com/2006/mxml"   
xmlns:esri="http://www.esri.com/2008/ags"   
pageTitle="Example - ArcGIS API for Flex connecting to a dynamic AGS service">   
<esri:Map>       
  <esri:ArcGISDynamicMapServiceLayer           
    url="http://gis-server2/ArcGIS/services/GPS_2010/MapServer"/>   
</esri:Map>
</mx:Application>

Not much, but I'm at day one with this!

Dave
0 Kudos
DaveKirkley
Occasional Contributor
I just talked to tech support and the problem was my url was pointing to the wrong place.

Try http://YourServer/ArcGIS/rest/services/YourService/MapServer

Also, It was necessary to run Web Applications Post Install again for some reason

Start>ArcGIS>ArcGIS Server for the Microsoft .NET Framework> Web Applications Post Install

Hope this helps

Dave
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Paul,

   You may also need a crossdoamin.xml file if your ArcGIS server and your web application are not on the same machine.
0 Kudos
PaulFrey
Emerging Contributor
ok i put crossdomain.xml and policyfile.xsd in the same folder online as my config.xml.  Its still not showing up, the option to turn on the livemap isnt isnt even there anymore...do i need to put crossdomain somewhere else?  This is also what my cal to the map service looks like, from th config.xml file:

<mapservice label="Parcels" type="dynamic" visible="true" alpha="0.75">http://rptsweb.cattco.org/ArcGIS/rest/services/FlexTest1/MapServer</mapservice>

if that helps in anyway. I appreciate the tips guys, hopefully I can figure this out soon.

Paul
0 Kudos
DasaPaddock
Esri Regular Contributor
The crossdomain.xml file should go at: http://rptsweb.cattco.org/crossdomain.xml
0 Kudos
PaulLang
Deactivated User
ArcGIS Server 10.0
Flex Viewer 2.1
Machine #1:  SOC & SOM
Machine #2:  Dedicated Web server machine
Machine #3: my PC Flex 4.0 (not deployed)
None of my map services will show up; http://gcgis/ArcGIS/rest/services/Static/StartUp/MapServer
Sometimes the ESRI map services will show up.
0 Kudos
DanielOchoa
Regular Contributor
I am having the same problem as the title of this post.  I cant get any of the published maps from my server to load as a basemap.

Everything is on the same machine (ARCSOM/ARCSOC/ArcServer 9.3.1, SDE, Maps, Data, etc) so I do not believe a crossdomain xml file is necessary.

I am only trying to add one basemap and no operational layers; projection shouldnt be an issue.

I can add basemaps from ESRI and other ones (like pfrey17's)

When I try to add one of my services, I get a blank map (see attachment)

All services are listed in the services manager and are functioning.

Any suggestions?
0 Kudos
DasaPaddock
Esri Regular Contributor
Can you post your map config?
0 Kudos
DanielOchoa
Regular Contributor
dpaddock,

The only thing I did to the out of the box version was;

1. Comment out the default basemaps.
2. Add my code (I've obfusicated the sensitive parts with <> )
3. Delete all the operational layer entries (in the version on my server, they are commented out)

I'm thinking its a security or arcserver setting on the server, no? If you still need me to post the XML, I will.

Thanks

~ D

CHANGES:



<basemaps>
<layer label="<layername>" type="dynamic" visible="true" alpha="1"
url="http://<localhost>/ArcGIS/rest/services/<folder>/<mapname>/MapServer"/>

<!--

<layer label="Streets" type="tiled" visible="true" alpha="1"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
<layer label="Aerial" type="tiled" visible="false" alpha="1"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
<layer label="Topo" type="tiled" visible="false" alpha="1"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>

-->
</basemaps>

<operationallayers></operationallayers>
0 Kudos