For Developers

Assuming SVG container #foo, here are the config settings

$(‘#foo’).usaMap({
    ‘virginIslands’: default false, set to true to show #VI,
    ‘guam’: default false, set to true to show #GU,
    ‘puertoRico’: default false, set to true to show #PR,
    ‘mapTarget’: either ‘link’ or ‘form’
    ‘mapForm’: ‘formID’ (note: don’t use a hash)
    ‘linkTemplate’: add a link that you can append your form output to, if your links follow a convention
    ‘exceptions’: array of objects with keys ‘state’ and ‘link’. ‘state’ is two letter state abbreviation.
    ‘convertStates’: default false (will return state abbreviation), ‘name’ will return state’s name, ‘nospaces’ will return state’s name with spaces replaced with empty strings
});

Last Reviewed 2017-06-07