Tiled and FeatureLayer, custom projection

583
3
09-06-2010 01:56 AM
MohammadAli
New Contributor
Hi

I am doing a simple thing...
--A map is included with a tiled and featurelayer service
--Both the services are in custom projection (without the WKID )
--Tiled service comes up without the featurelayer
--Tried the tiled service from ESRI (has the wkid), it shows the FeatureLayer from custom projection
--Tried the dynamic service with custom projection and it comes up also with FL custom projection service layer.

Anyone got any idea what is happening with the tiled + FL ? Why FL doesn't show up?

regards
Tags (2)
0 Kudos
3 Replies
BjornSvensson
Esri Regular Contributor
Are you using the viewer or the API directly?

What mode is your FeatureLayer in (snapshot or ondemand)?

In the case of the Tiled plus FeatureLayer (that's not shown), what does the exact REST request for the FeatureLayer look like (if you check it with httpfox/firebug/fiddler/charles etc)?  Does it contain the custom WKT that you would expect?
0 Kudos
MohammadAli
New Contributor
Are you using the viewer or the API directly?

What mode is your FeatureLayer in (snapshot or ondemand)?

In the case of the Tiled plus FeatureLayer (that's not shown), what does the exact REST request for the FeatureLayer look like (if you check it with httpfox/firebug/fiddler/charles etc)?  Does it contain the custom WKT that you would expect?


====i couldn't reply earlier..
I have used both of the Viewer and API (simple map in MXML with two services, one is tiled and other is the FL)
The mode is 'SNAPSHOT'
This is the request that httpfox shows...

http://serverurl:8399/arcgis/rest/services/aaa/aaa/MapServer/0?f=json

{"id" : 0,"name" : "lyr_PNT","type" : "Feature Layer","geometryType" : "esriGeometryPoint","description" : "","definitionExpression" : "","copyrightText" : "","minScale" : 0.0,"maxScale" : 0.0,"extent" :{"xmin" : 7583.17704152537,"ymin" : 2210207.697644813,"xmax" : 1968799.9887305717,"ymax" : 3881981.7264097948,"spatialReference" :{"wkt" : "PROJCS[\"lcc\",GEOGCS[\"GCS_Ain_el_Abd_1970\",DATUM[\"D_Ain_el_Abd_1970\",SPHEROID[\"International_1924\",6378388.0,297.0]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Lambert_Conformal_Conic\"],PARAMETER[\"False_Easting\",1000000.0],PARAMETER[\"False_Northing\",3000000.0],PARAMETER[\"Central_Meridian\",45.0],PARAMETER[\"Standard_Parallel_1\",21.0],PARAMETER[\"Standard_Parallel_2\",27.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",24.0],UNIT[\"Meter\",1.0]]"}},"displayField" : "Name","fields" : [{"name" : "OBJECTID", "type" : "esriFieldTypeOID", "alias" : "OBJECTID"},{"name" : "NAME", "type" : "esriFieldTypeString", "alias" : "NAME"},{"name" : "FTYPE", "type" : "esriFieldTypeString", "alias" : "FTYPE"},{"name" : "HYPERLINK", "type" : "esriFieldTypeString", "alias" : "HYPERLINK"},{"name" : "MODIFIED_BY", "type" : "esriFieldTypeString", "alias" : "MODIFIED_BY"},{"name" : "DATE_LAST_MODIFIED", "type" : "esriFieldTypeDate", "alias" : "DATE_LAST_MODIFIED"},{"name" : "SHAPE", "type" : "esriFieldTypeGeometry", "alias" : "SHAPE"},{"name" : "STN_ID", "type" : "esriFieldTypeSmallInteger", "alias" : "STN_ID"}],"parentLayer" : {"id" : -1, "name" : "-1"},"subLayers" : []}

I think this is what you wanted?

thanks for your help...
regards
0 Kudos
DasaPaddock
Esri Regular Contributor
You should also see a second request querying the layer. Is this the only request you're seeing?
0 Kudos