User:Tegnosis/Image Maps

When the browser size is reduced, the image shrinks and breaks the imagemap linking. Example from Template:OHimagemap2.

JS Solution
Adding the following to MediaWiki:Common.js should fix the issue for all imagemaps:

List of imagemaps in the Main namespace

 * AK Petersburg Borough
 * ARMartindale/sandbox/OneMore
 * Bornholm County, Denmark Color-blind Map
 * Denmark Ringkobing Color-blind Map
 * Haderslev County, Denmark Colorblind Map
 * Hjørring County, Denmark Color-blind Map
 * IA ALLAMAKEE(1).PNG
 * Kmmarshall/sandbox/clickablemaps prep
 * Panama Genealogy
 * Paraguay Genealogy
 * Psleavens/sandbox/clickablemap
 * Psleavens/sandbox/clickablemap2
 * R2d2love7/Sandbox/imagemapSpain
 * Ribe County, Denmark Color-blind Map
 * Search for Articles in the FamilySearch Research Wiki
 * Skanderborg County, Denmark Color-blind Map
 * Svendborg County, Denmark Colorblind Map
 * Temolate:TX Hays County
 * Templete:CO Crowley County
 * The Netherlands Clickable Map
 * VTCaledoniaKirby
 * Vejle County, Denmark Colorblind Map
 * Ålborg County, Denmark Color-blind Map
 * Århus County, Denmark Colorblind Map

Other namespaces

 * FamilySearch Wiki:Extension tests
 * FamilySearch Wiki:WikiProject Clickable County Maps
 * File:Brazil clickable map
 * File:Finland clickable map.png
 * File:Italy clickable map.png
 * File:MI CALHOUN.PNG
 * File:Paraguay Country Updated and Fixed.png
 * File:Poland 1967 image map
 * File:Portugal clickable map
 * File:Portugal clickable map 2
 * File:Spain clickable map.png
 * File:TNAnderson.JPG
 * File:WAmap1.JPG
 * File:Wisconsin-county-map.gif
 * File:Wisconsin Counties.png
 * Help:Help Options
 * Help:Image maps
 * Help:Wiki University Wikitext--Image Maps

Tests
Note, these didn't work, we needed to use the JS solution.

Replace Text
Not needed, see solution above If the Test section below works, this regex might be used with ReplaceText to update all the imagemaps:
 * Find:
 * Replace:
 * Note: Only the  is required, the   is already applied to the imagemap element.