More examples | Use Packed | Unpacked Version of the script.

In many situations, tiled maps are best used as background map and dynamic maps are added on top. The following example loaded the default Google map types (Normal, Satellite, Hybrid), then a cached map service built on WGS84(4326) spatial reference system, then a cached map type built on Web-Mercator(102113) spatial reference system, and finally a dynamic map whose own spatial reference system was NAD83 GCS(4269) on top of all. As map type changes, the dynamic map will refresh itself to match the underline spatial reference.