Select to view content in your preferred language

Problem with dynamic and tiled map services in the same application.

1322
2
06-30-2010 11:45 AM
SreeS
by
Emerging Contributor
I have two map services in my application. One is dynamic and one is tiled.

1. <mapservice label="2009 Aerial" type="tiled" visible="false" alpha="1">http://www.vahgis.com/ArcGIS/rest/services/AERIALS/Images_2009/MapServer</mapservice>
2. <mapservice label="BaseDirect" type="dynamic" visible="true" alpha="1">http://www.vahgis.com/ArcGIS/rest/services/WEB/BaseDirect_0331/MapServer</mapservice>

I have 2 problems :
a. measurements using the DrawWidget and
b. GoogleStreetView.

I think it is to do with Projections and SpatialReference of the tiled layer.When I remove the tiled map service both the widgets seem to work fine.

Earlier I had problems with my Search and LiveLayer Widgets as well. But when I replaced all the "map.spatialReference" with "null" the widgets seemed to workfine.

The SpatialReference for my tiled map service looks like this in Rest:
Spatial Reference: PROJCS["NAD83 / Illinois East",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["false_easting",984250.0],PARAMETER["false_northing",0.0],PARAMETER["central_meridian",-88.33333333333333],PARAMETER["scale_factor",0.999975],PARAMETER["latitude_of_origin",36.66666666666666],UNIT["Foot_US",0.3048006096012192]]

SpatialReference for my dynamic layer is 3435.

The map services are public, so you can take a look at them.

The application is here: www.vahgis.com/flexviewer1.3/index.html

(The tiled map service is visible at 2188 - 500 scale.)
Tags (2)
0 Kudos
2 Replies
SreeS
by
Emerging Contributor
For the googleStreetView I get this error:

[FalutEvent fault=[RPC Fault faultString=""falutCode="400" faultDetail="'inSR' parameter is invalid"] messageId=null type-"falult" bubbles=false cancelable=true eventPhase=2]
0 Kudos
SreeS
by
Emerging Contributor
Problem solved!!

The problem was with the Spatial-reference of the Aerial Map.

I just added a blank layer to the Aerial Map and the spatial-reference came back to the original. Now the draw and googleStreetView work normally!!
0 Kudos