October 28, 2020 at 5:47 pm
#5987

Keymaster
Hi Traci,
Thanks for the post as I’m sure others have wondered about this. And it is easy.
- Add a Boundary attribute to the dataset.
- Edit the formula of your new attribute as shown in the screen capture.
Here it is for copy/paste:
lookupBoundary(country_boundaries,Country) - When you Apply the formula you will see miniature maps appear as values for the attribute for most of the countries.
- Make a map! The countries should appear. Drag an attribute into the middle of the map to color the countries by the values of that attribute.
Caveats:
- Make the map after you add the Boundary attribute. An existing CODAP map might not pick up the change.
- The name of the attribute can be one of ‘boundary’, ‘boundaries’, ‘polygon’, ‘polygons’, ‘grenze’, ‘境界’
- If you want to name it something else, then you must set the attribute type to ‘boundary’ using the Edit Attribute Properties dialog box.
- Some countries may not appear on the map. This is because the name in your dataset doesn’t correspond exactly to the name in CODAP’s database. But you can fix that by looking up CODAP’s name in this document. (It helps to make a map so it’s easy to find the country you want.)