Designing a map to overlay Google Maps or Microsoft Virtual Earth |
|
Release 9.3 |
ArcGIS Server 9.3 includes JavaScript extensions to the Google Maps and Microsoft Virtual Earth APIs. If you will use these extensions to overlay your map on Google Maps or Microsoft Virtual Earth, follow this workflow when you create your map:
You'll originally create the map in ArcMap by adding data and symbolizing it appropriately. When designing your map, you need to use the same coordinate system and scales used by Google Maps and Microsoft Virtual Earth.
The first thing you should do when designing the map is change the data frame coordinate system to the same one used by Google Maps and Microsoft Virtual Earth, which is WGS 1984 Web Mercator. To change the coordinate system, follow these steps:
Note: If the geographic coordinate system of your source data does not use the WGS 1984 datum or the GRS80 ellipsoid, you may need to apply a transformation to your data in order for it to align correctly with Google Maps and Virtual Earth. NAD83 is an example of a geographic coordinate system that uses the GRS80 ellipsoid. Examples of geographic coordinate systems that do not use the WGS 1984 datum or the GRS80 ellipsoid include NAD27, ED 50, and others. See ESRI Knowledge Base Article 34749 for instructions on performing the transformation.
Users of your map will see it at the scales used by Google Maps and Microsoft Virtual Earth, so you should only design your map at those scales. But how do you know what those scales are?
You can load the Google Maps and Microsoft Virtual Earth scales into ArcMap's dropdown list of scales by doing the following:
You only need to design your map to look good at the scales at which it will be cached. If you do not plan on caching your map at the larger scales, you do not need to do any design work at those scales.
Set scale ranges on your layers so that just the right amount of data and labels are visible at each scale, symbolized appropriately. When setting your scale ranges, avoid toggling layers on and off at or near the scales at which you are designing.
You may need to make copies of your layers so that you can symbolize them differently at various scales. The ArcMap table of contents can contain multiple copies of a layer, each with its own symbology and scale ranges. To copy a layer, right-click it in the ArcMap table of contents and click Copy. Then right-click the data frame name and click Paste Layer(s).
After you've finished authoring your map document (.mxd), you need to publish it as an ArcGIS Server map service before you can use it in your JavaScript application. One of the easiest ways to do this is to right-click the map document in ArcCatalog and click Publish to ArcGIS Server.
Learn more about publishing a GIS resource to the server.
One of the reasons that Google Maps and Microsoft Virtual Earth are so fast is that they use server-side map caching, meaning that predrawn images of the map are stored on the server so that you can quickly request them through a URL. With ArcGIS Server, you can create a similar cache for your map. Creating a map cache is recommended for optimum performance with all APIs and is required if you are using the ArcGIS JavaScript Extension for Virtual Earth.
The Map caches section contains much detail about planning, creating, and updating map caches. There are several ways to create a cache, but the following steps are essential:
Depending on how big your map is and the scales you've selected, it could take a long time to create all of the tiles. See Planning a map cache to learn about factors that influence cache creation time.
Once you've finished creating the cache, you're ready to use your map with Google Maps or Microsoft Virtual Earth. See Developing with ArcGIS Server: An Overview to learn how you can develop JavaScript applications that overlay your maps with Google Maps and Microsoft Virtual Earth.