beautypg.com

Removing duplicate folders, Adding height values, Creating a map legend – Google Earth User Guide User Manual

Page 110

background image

In this section, you modify the style template you've saved to apply icons that display the number of bedrooms for each listing.

1. Right-click (CTRL click on the Mac) on the top-most folder called MetroDetroitRE.csv and select Apply Style

Template... from the pop-up menu.

2. In the Style Template Options dialog box, select Use existing template.

3. Select the MetroDetroitRE template from the list if it is not already, and check edit selected template.

4. Click the OK button and in the Style Template Settings dialog box, click the Icon tab.

5. Choose the Set icon from field option and in the Select icon field selector, choose Bedroom from the list, or click on the

Bedroom column in the preview table.

6. Set the Number of buckets selector to 4. Notice the count display that shows how many listings have the

corresponding number of bedrooms per value.

7. From the Icon selector next to each bucket, choose the number icon that corresponds to the maximum value for each

field.

8. Click the OK button on the Style Template Settings dialog box.

9. In the Save Template dialog box, click Save, and when prompted to overwrite the existing template, click Yes. In the

3D viewer, you should see the icons change to reflect your settings.

Removing Duplicate Folders

Each time you modify a style template, any folders you have created using folder options are duplicated.

Because you might have hand-modified data within the parent folder (including manually created sub-folders), the style
template wizard avoids over writing your data and simply creates another set of folders, removing the visibility check from the
older ones. You can choose to retain this historical data (which will increase each time you modify and save a template), or
you can right-click (CTRL click on the Mac) on the folders you no longer want and select Delete from the pop-up menu.

Adding Height Values

In this section of the tutorial, you will modify the style template to create height values based on the price of the house.

1. Right-click (CTRL click on the Mac) on the top-most MetroDetroitRE.csv folder and select Apply Style Template... from

the pop-up menu.

2. Choose the Use existing template option, select the template, and check the edit selected template check box.

3. Click the Height tab in the Style Template Settings dialog box and choose the Set height from field option.

4. Click the Price column in the table preview to choose the price field for height.

5. Select Continuous as the mapping method.

6. Leave the Scaling factor slider to 1.0 and the Height units to meters.

7. Next to the minimum value row, replace 20.4005 with 100 as the value.

8. Next to the maximum value row, replace 2040.05 with 5000 as the value.

9. Click the OK button on the Style Template Settings dialog box and save the template, replacing the previous version.

10. If desired, remove the duplicate folders from the parent folder.

11. Tilt the view in the 3D viewer to see the effects of your settings.

Creating a Map Legend

In this final section of the tutorial, you can view the code behind a

sample KMZ file

designed to create a legend for the 3D

viewer so that users can readily view the meaning of the settings you've defined in the style template. If you click on the link
for this KMZ file, you can open it in your Google Earth browser to view the legend for the data you've created here. You can
also save the file to your computer and open it using a text editor to see the code that is described in this section.

The diagram that follows shows the code used to create the KMZ file. Using the KMZ file you opened as a model, you can
create your own screen overlay for your own data as follows (these tips assume you understand how to use basic web-
oriented tools such as FTP, image editors, and HTML editors):

Replace the referenced graphic with a graphic that you create using a graphics tool application such as Adobe
Photoshop or Microsoft Paint.

Save the graphic you create in a compatible format such as PNG, GIF, or JPEG.

If you want the graphic to be viewable on the web or a network, be sure to place the graphic in a location others can
access it, and use the correct URL to reference it (i.e., \\networkpath\folder\folder\imageFile.png for network files or
http://www.test.com/images/myScreenOverlay.png for web-based files).

Name the file with a meaningful name and an extension of .kmz.