Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I notice if you have 2 services 1 cached and 1 dynamic you have to load the cache first for it to display.

Does anyone know why?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

Unless you explicitly specify LODs and a spatial reference in your map constructor, they're defined by the first layer added to the map. If you add a dynamic map service to your map first, there are no LODs defined. When you add a cached map service, the cached map service's LODs have to match the map's. If the map doesn't have any LODs, the tiled service can't be added.

As a general rule, add your cached services first, followed by your dynamic servies and then your graphics and/or feature layers.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.