fredag den 6. marts 2009

Extending tiled layers in the ArcGIS API for Flex


Tiled cached layers er kommet for at blive ;-) Det bliver interessant den dag hvor man finder ud af at putte flere lag ned i den samme tile ... Det ville gøre det mere effektivt at skifte simple lag i viewer klienten ... Blot en tanke ...
/Sik


Tiled cached layers are here to stay ;-) More interesting will it be if they figured out a way to store more layers in the same image file ... that would make it more simple and more effective to switch simples layers in the viewer application ... Just a thought ...
/Sik


Quote

The ArcGIS API for Flex supports access to layer types not included with the API. Depending on what you are trying to connect to (or do), you might want to extend TiledMapServiceLayerDynamicMapServiceLayer or Layer.

  • Extend DynamicMapServiceLayer if you want to connect to a service that returns one complete image, usually created on the fly (for example, WMS).
  • Extend TiledMapServiceLayer if you want to connect to some system of (usually pre-created and cached) tiles (for example, an ArcGIS Server virtual cache directory). This is especially useful if you want to access 9.2 services, since 9.2 doesn't have REST support and thus isn't supported using the out-of-the-box ArcGIS API for Flex.

Today I will show how to create an example application that extends TiledMapServiceLayer to access tiles created in either ArcGIS 9.2 or 9.3 and which have been made available on the Web server (usually /arcgiscache/). [...]

 Example Flex application that extends TiledMapServiceLayer

2 kommentarer:

  1. "More interesting will it be if they figured out a way to store more layers in the same image file"
    ArcGIS Server already has the concept of a "multilayer cache".

    What it really is is just multiple caches put on top of each other.

    SvarSlet
  2. I'm thinking about the way layers are handled in programs like say PhotoShop. If a layer could be stored and handled the same way ... Fx switched on/off using say JavaScript ...

    SvarSlet