Select to view content in your preferred language

Annotations not respecting visible scale range

558
2
04-29-2010 12:48 AM
HolgerSchade
Deactivated User
Hi,

I am exploring the Silverlight API with a REST map service (ArcGISDynamicMapServiceLayer) that contains annotations. I am able to display the map, but the annotations are always drawn, although I set a visible scale range in the Map Document. This means the annotations are drawn in a scale 1:5000 although I set the Scale Range to "Dont show layer when zoomed out beyond 1:1000". Additionally to that the fonts for the annotations are also automatically scaled, so that I get an Map where I can just see huge fonts if I zoom out to a small scale, which is extremely annoying.

I also tested the same service in a Web ADF application and with the Javascript API and in both cases the map renders fine in all scales.

Thanks for a hint to what I am doing wrong.
0 Kudos
2 Replies
HolgerSchade
Deactivated User
Since nobody answered I had to debug it further. Finally I found the problem.

ArcGIS Server cannot handle custom coordinate systems. You need to make sure that your map service is authored with a coordinate system with a well known ID (WKID) otherwise you run into a number of troubles. I would wish the API would check for that or even better it should handle custom coordinate systems. Anyhow, as soon as the service is authored with a WKID things seem o.k..
0 Kudos
LanceCrumbliss
Frequent Contributor
Since nobody answered I had to debug it further. Finally I found the problem.

ArcGIS Server cannot handle custom coordinate systems. You need to make sure that your map service is authored with a coordinate system with a well known ID (WKID) otherwise you run into a number of troubles. I would wish the API would check for that or even better it should handle custom coordinate systems. Anyhow, as soon as the service is authored with a WKID things seem o.k..


to be fair, ArcGIS Server does handle custom coordinate systems.  i think it's the REST API that doesn't.   i think i read somewhere that that is being addressed, thoough.

lance
0 Kudos