Map pinning works.

Changed to use an array of map data instead of one variable.