# dokuwiki-plugin-imapmarkers This software is a plugin for [DokuWiki](https://www.dokuwiki.org/). You can make image maps with markers and links. It is inspired by [dokuwiki-plugin-imagemap](https://github.com/i-net-software/dokuwiki-plugin-imagemap/), whose author, Gerry Weißbach, suggested me to write an own plugin for my purposes. This plugin is a superset of the *dokuwiki-plugin-imagemap* plugin, simply use no references and omit area-identifiers. __*An interactive example can be found here*__: [http://insitu.w4f.eu/doku.php?id=imapmarkers:interactive-example](http://insitu.w4f.eu/doku.php?id=imapmarkers:interactive-example) This is a non-interactive sample of such a map: ![Acient World Map with Marker](readme/map-with-marker.png) Sourcecode in DokuWiki: ``` {{imapmarkers>https://upload.wikimedia.org/wikipedia/commons/f/fd/1744_Bowen_Map_of_the_World_in_Hemispheres_-_Geographicus_-_World-bowen-1744.jpg|Bowen Map of the World, 1744}} [[https://en.wikipedia.org/wiki/Asia|CON1|Asia @ 2775,804,30]] [[https://en.wikipedia.org/wiki/Africa|CON2|Africa @ 2145,966,30]] [[https://en.wikipedia.org/wiki/North_America|CON3|North America @ 1005,846,30]] [[https://en.wikipedia.org/wiki/South_America|CON4|South America @ 1368,1290,30]] [[https://en.wikipedia.org/wiki/Antarctica|CON5|Antarctica @ 947,2031,30]] [[https://en.wikipedia.org/wiki/Europe|CON6|Europe @ 2370,669,30]] [[wp>Australia|CON7|Australia @ 3138,1404,30]] {{cfg>}} { "marker" : "internal", "marker-color": "red", "clicked-reference-css": { "font-weight": "bold", "color": "red" }, "area-fillColor": "ff0000", "area-fillOpacity": 0.2 } {{CON1|Asia}} | {{imapmloc>CON2|Africa}} | {{imapmloc>CON3|North America}} | {{imapmloc>CON4|South America}} | {{imapmloc>CON5|Antarctica}} | {{imapmloc>CON6|Europe}} | {{imapmloc>CON7|Australia}} ``` ## Usage and Syntax ### Create a Map with Areas You start with ```{{imapmarkers>IMAGE-LINK|TITLE}}``` and end with ```{{}}``` and ends with ```{{}} { "marker-color": "red", "clicked-reference-css": { "font-weight": "bold", "color": "red" }, "area-fillColor": "ff0000", "area-fillOpacity": 0.2 } {{IDENTIFIER|TEXT}}``` ```IDENTIFIER``` refers to the **areas** identifier. You may define multiple references for one identifier. ```TEXT``` is the text shown in the page. Example: ```{{imapmloc>CON1|Asia}}``` -- Refers to the area with ```CON1``` as identifier. ## Installation Install the plugin using the [Plugin Manager](https://www.dokuwiki.org/plugin:extension) or the download URL above, which points to latest version of the plugin. ### Manual Installation Download: [https://github.com/kgitthoene/dokuwiki-plugin-imapmarkers/zipball/master/](https://github.com/kgitthoene/dokuwiki-plugin-imapmarkers/zipball/master/) Extract the zip file and rename the extracted folder to ```imapmarkers```. Place this folder in ```DOKUWIKI-SERVER-ROOT/lib/plugins/``` Please refer to [http://www.dokuwiki.org/extensions](http://www.dokuwiki.org/extensions) for additional info on how to install extensions in DokuWiki. ## Used Software and Attribution This plugin is based on [dokuwiki-plugin-imagemap](https://github.com/i-net-software/dokuwiki-plugin-imagemap/), [ImageMapster](http://www.outsharked.com/imagemapster/) and [PHP Simple HTML DOM Parser](https://sourceforge.net/projects/simplehtmldom/). ## License [MIT](https://github.com/kgitthoene/dokuwiki-plugin-imapmarkers/blob/master/LICENSE.md)