As of version 1.13 October 18, 2012, this information reflects how each major modern browser works on these maps:
As of version 1.13 (Oct 2012), the following parameters may be passed to automatically generate a map for the county-map:
parameter name | description/ valid values | example |
---|---|---|
1-20 | comma-separated list of state_county to shade with this color number | 1=NC_Orange,NC_Alamance |
colorCount | Number of colors to use | colorCount=5 |
zoom | zoom level, automatically generated, but can be set manually. The higher the zoom, the more zoomed in the map shows. | zoom=6 |
monochrome | BETA! true if monochrome mode | monochrome=true |
hidden | list of hidden state abbreviations | hidden=CO,KS,UT |
cap | caption text for entire map | cap=this is a neat map |
capx, capy, capfont, capfontsize | caption metadata, x and y location of caption, font and size of font | capx=420px&capy=130px&capfont=tahoma&capfontsize=14pt |
colors | list of 6-character hex colors to use | colors=FFFFCC,FF0000,CCCCCC |
bgcolor | the background color of state/county shapes that are not custom-shaded in other parameters. | bgcolor=FFFFFF |
ccap1-ccap20 | captions for colors 1 to 20 | ccap1=red stuff&ccap2=green stuff |
ccapbgcolor | background color for color legend | ccapbgcolor=FF0000 |
ccaptitle | title of color legend | ccaptitle=colors mean this |
ccapx, ccapy | x and y of color legend box | ccapx=500px&ccapy=300px |
rotate | how much rotation to add, in degrees | rotate=6 |
readonly | true if the page should not be editable | readonly=true |
paramfile | path of the file on the server that stores any of the above parameters. You cannot use this term to link to an outside file, unfortunately. This is a jQuery limitation due to cross-site scripting problems. | paramfile=dist/a/acer-rubrum.txt |