Satellite imagery can be a powerful source of information, over and above traditional maps. Converting your GeoStream application to display satellite imagery can be as easy as adding a single line of code.

Each map is built from one or more layers. These layers include a canvas layer (used to draw custom shapes), a routing layer (to display vehicle routes) and a tile layer (to display mapping information). By default, each map is created with only a tile layer.

To display satellite imagery it’s a simple as setting the satellite property of a map’s tile layer to true. Similarly, to turn satellite imagery off set the satellite property to false.

var tileLayer = map.getTileLayer();
tileLayer.reconfigureTiles ({ satellite: true });

 

Published, Jun 28th 2010, 15:36

Tagged under: satellite imagery javascript maps