This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Save this file with a jsx extension and access from the File > Scripts menu | |
Currently, this assumes your map utilizes a 24 mile hex. This is necessary to have a scale | |
factor by which to to multiply the area of your map shape to get the area in mi/km. | |
If your map uses a different scale, select a single hex and run this script. Replace the inches | |
value with the value in hexAreaInchesMap, select your shape, and run again to get sq mi / km. | |
By default, this rounds up the mi/km. Km is +/- 1 due to rounding. Will fix later. |