ArcGISTiledMapServiceLayer problem?

411
2
05-24-2012 07:54 AM
akpagaakpaga
New Contributor
Hi friends
I am using the below link for one my project
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/exp_localstora...


But at this line   var tiledLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://myservice.com/ArcGIS/rest/services/World_Street_Map/MapServer");

I am not able to see my map but when i change the code line to Dynamic Map service layer,it shows up but i lose the notes icon...

var tiledLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://myservice.com/ArcGIS/rest/services/World_Street_Map/MapServer");


What can be possibly wrong..Please shed some light..thank you
0 Kudos
2 Replies
derekswingley1
Frequent Contributor
The constructor you use (ArcGISTiledMapServiceLayer or ArcGISDynamicMapServiceLayer) needs to match your map service type. It sounds like you are using a dynamic service.

For the "notes" you mention, can you elaborate on that? Is that a feature layer? If you can post a simple html/css/js page to repro the issue that would be helpful.
0 Kudos
akpagaakpaga
New Contributor
Thanks Swingley But i got it fixed ,

The feature layer had  to be added toa  proxy.ashx page i was using and iT works fien now....Thank you
0 Kudos