trailhead

What’s a Bounding Box?

Now it's time to tune the awesome zip-code map you created to get a better visualization. Ideally, you can zoom in on the areas for which you have data. Instead of a map that includes all of the geometry encoded in the GeoJSON, we want a map based on a subset of that geometry.

Bounding boxes redefine the area of the map to display by delimiting the boundaries of the new area using coordinates. The trick is figuring out the correct coordinates.

For the geographical map of zip-code areas, the coordinates of every shape encoded in the GeoJSON are simply longitude and latitude coordinates. Finding the longitude and latitude of an area of the map that includes only the relevant area of the map requires a tool that can display those coordinates on the map itself.

There are many tools available on the Internet that can do this for you. But we’ve already found the coordinates you’ll need to zoom in on the zip codes with the data.

Create the New Map

You can create the new map from the same GeoJSON file you already uploaded.

  1. Log in to your Salesforce DE org, and navigate to the URL formed by appending /analytics/wave/web/custommap.apexp to your org’s base URL.
    For example, if your org’s base URL is https://na30.salesforce.com, go to https://na30.salesforce.com/analytics/wave/web/custommap.apexp.
  2. Click New.
  3. Fill in Map Label and Map Name with Central L.A. Zipcodes. The map name and label appear in Analytics.
  4. Select Equirectangular from the Projection menu.
  5. In Bounding Box Top, enter 34.2. This is the latitudinal value defining the upper map boundary.
  6. In Bounding Box Bottom, enter 33.85. This is the latitudinal value defining the lower map boundary.
  7. In Bounding Box Right, enter -117.65. This is the longitudinal value defining the right map boundary.
  8. In Bounding Box Left, enter -118.65. This is the longitudinal value defining the left map boundary.
  9. Select the GeoJSON definition you created, la_zip_codes, from the GeoJSON menu.
  10. Click Insert Map. A confirmation appears that the map was successfully created.insert central los angeles zip codes cusutom map
Note

Note

You may need to log out and back in to your org to be able to access the new map.

Use the New Map in Analytics

Now it’s time to create your masterpiece!

  1. From the Analytics home page, click Browse All.
  2. On the browse page, locate and click the Los Angeles Tax Data by Zip Code dashboard.
  3. Click dashboard edit button to edit the dashboard.
    You can skip this step if your dashboard is already in edit mode.
  4. Click the map to enable editing.
  5. Open the Map panel and select Custom: Central L.A. Zipcodes from the Map Type menu.
    central los angeles zip-codes custom map
  6. Save the dashboard.

What a difference a bounding box makes!

central los angeles zip-codes custom map

This useful map never existed in Analytics before you created it. With so many GeoJSON map definitions freely available on the web, there’s no limit to what geographical data you can visualize with Analytics.

Time Estimate
Topics
retargeting