Cannot load a tiled map service

2661
5
Jump to solution
02-21-2013 02:55 PM
by Anonymous User
Not applicable
Original User: xintaoliu

I am using Flex Builder 4.6 + flex viewer 3.0 + agslib-3.1.swc.

When I use the config.xml file ([ATTACH=CONFIG]22064[/ATTACH]) to load the included tiled map service, it is okay. But, when I replace the layer in the basemaps by using the below tiled map service on my own server:

<layer label="Demographics" type="tiled" visible="true" alpha="1.0"
         url="http://141.117.248.106:6080/arcgis/rest/services/IceWaterLand/MapServer">
</layer>    

I always got an error as shown below:

[ATTACH=CONFIG]22063[/ATTACH]

I got stuck for some time. Any of your comments and suggestions are highly expected! Thanks!
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: xintaoliu

Try setting these two attributes on the map tag to false:

wraparound180="false" addarcgisbasemaps="false"

This is an issue in 3.1 when the base map layer is not geographic or web mercator.

By dpaddock at http://forums.arcgis.com/threads/73799-Issues-with-3.1-Flex-Viewer-and-App-Builder?highlight=access+...

View solution in original post

0 Kudos
5 Replies
by Anonymous User
Not applicable
Original User: rzufelt

Not sure, but I'm thinking it might be related to your spatial reference.  All the "working" basemaps that I have used have a wkid in there, not the entire SR string.  However, i don't see a WKID for the SR you are using.

I think it might be related as I can load any of you layers as an operational layer, it is only when you try to load as a basemap.

if I try to load your layer with the config you supplied, I get the error that you get.  However, if I change the extent of the map to match the extent of your IceWaterLand layer, it will load and display just fine.

It is not until I try to zoom in past the LOD3 that I get an error, and it is related to the geometry utils.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
 at com.esri.ags.geometry::Extent/http://www.esri.com/2008/ags/internal::getParts()
 at com.esri.ags.geometry::GeomUtils$/intersects()
 at com.esri.ags.symbols.supportClasses::PolygonDrawer/draw()
 at com.esri.ags.symbols::SimpleFillSymbol/draw()
 at com.esri.ags::Graphic/http://www.esri.com/2008/ags/internal::drawWithSymbol()
 at com.esri.ags::Graphic/commitProperties()
 at mx.core::UIComponent/validateProperties()
 at mx.managers::LayoutManager/validateProperties()
 at mx.managers::LayoutManager/doPhasedInstantiation()
 at mx.managers::LayoutManager/doPhasedInstantiationCallback()


So, thought maybe your cache is corrupt, but I can load it as an operational layer and it loads/zooms just fine.

Sorry I'm not more help, but in case this helps you figure it out,

R_
0 Kudos
XintaoLiu
Occasional Contributor II
Thanks for your reply! It is informative and helpful. However, I don't think the cached map service is corrupt. If you test this link: http://141.117.248.106:6080/arcgis/rest/services/IceWaterLand/MapServer?f=jsapi ,this map service loads/zooms just fine.

Regarding the spatial reference, the reason why it is a SR string, because it is a customized spatial reference. Therefore, these is no WKID to use.
0 Kudos
by Anonymous User
Not applicable
Original User: xintaoliu

Try setting these two attributes on the map tag to false:

wraparound180="false" addarcgisbasemaps="false"

This is an issue in 3.1 when the base map layer is not geographic or web mercator.

By dpaddock at http://forums.arcgis.com/threads/73799-Issues-with-3.1-Flex-Viewer-and-App-Builder?highlight=access+...
0 Kudos
by Anonymous User
Not applicable
Original User: rzufelt

I always have my wraparound and esribasemaps set to false.

Your test map service link finally times out with an internal server error.

R_
0 Kudos
TiagoRibeiro1
New Contributor
Try setting these two attributes on the map tag to false:

wraparound180="false" addarcgisbasemaps="false"

This is an issue in 3.1 when the base map layer is not geographic or web mercator.

By dpaddock at http://forums.arcgis.com/threads/73799-Issues-with-3.1-Flex-Viewer-and-App-Builder?highlight=access+...


Many thanks!!!! 🙂 This saved my day.
0 Kudos