├── chrome ├── locale │ └── en-US │ │ └── zotero-maps │ │ ├── maps.dtd │ │ └── maps.properties ├── skin │ └── default │ │ └── zotero-maps │ │ ├── loading.gif │ │ ├── img │ │ ├── blank.gif │ │ ├── close.gif │ │ ├── marker.png │ │ ├── slider.png │ │ ├── zoombar.png │ │ ├── east-mini.png │ │ ├── marker-blue.png │ │ ├── marker-gold.png │ │ ├── north-mini.png │ │ ├── south-mini.png │ │ ├── west-mini.png │ │ ├── marker-green.png │ │ ├── zotero_16x28.png │ │ ├── panning-hand-off.png │ │ ├── panning-hand-on.png │ │ ├── zoom-minus-mini.png │ │ ├── zoom-plus-mini.png │ │ ├── zoom-world-mini.png │ │ ├── drag-rectangle-off.png │ │ ├── drag-rectangle-on.png │ │ ├── measuring-stick-on.png │ │ ├── cloud-popup-relative.png │ │ ├── measuring-stick-off.png │ │ ├── layer-switcher-maximize.png │ │ └── layer-switcher-minimize.png │ │ ├── zotero_z_32px.png │ │ ├── theme │ │ └── default │ │ │ ├── custom.css │ │ │ └── style.css │ │ └── zotero.cfg └── content │ └── zotero-maps │ ├── include.js │ ├── ui.html │ ├── overlay.xul │ ├── setup.js │ └── ui.js ├── Makefile ├── chrome.manifest ├── zotero.cfg ├── install.rdf ├── LICENSE └── README.rst /chrome/locale/en-US/zotero-maps/maps.dtd: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /chrome/locale/en-US/zotero-maps/maps.properties: -------------------------------------------------------------------------------- 1 | zoteromaps.noneSelected = You must select a collection or a saved search to view. 2 | -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/loading.gif -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/blank.gif -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/close.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/close.gif -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/marker.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/slider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/slider.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/zoombar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/zoombar.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/east-mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/east-mini.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/marker-blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/marker-blue.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/marker-gold.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/marker-gold.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/north-mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/north-mini.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/south-mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/south-mini.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/west-mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/west-mini.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/zotero_z_32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/zotero_z_32px.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/marker-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/marker-green.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/zotero_16x28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/zotero_16x28.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/panning-hand-off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/panning-hand-off.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/panning-hand-on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/panning-hand-on.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/zoom-minus-mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/zoom-minus-mini.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/zoom-plus-mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/zoom-plus-mini.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/zoom-world-mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/zoom-world-mini.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/drag-rectangle-off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/drag-rectangle-off.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/drag-rectangle-on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/drag-rectangle-on.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/measuring-stick-on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/measuring-stick-on.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/cloud-popup-relative.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/cloud-popup-relative.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/measuring-stick-off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/measuring-stick-off.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/layer-switcher-maximize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/layer-switcher-maximize.png -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/img/layer-switcher-minimize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schuyler/zotero-maps/HEAD/chrome/skin/default/zotero-maps/img/layer-switcher-minimize.png -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | XPI := zotero-maps 2 | 3 | all: 4 | rm -f $(XPI).xpi 5 | zip -9r $(XPI).xpi chrome chrome.manifest install.rdf 6 | 7 | html: 8 | rst2html README.rst README.html 9 | 10 | -------------------------------------------------------------------------------- /chrome.manifest: -------------------------------------------------------------------------------- 1 | content zotero-maps chrome/content/zotero-maps/ 2 | content zotero-maps chrome/content/zotero-maps/ contentaccessible=yes 3 | locale zotero-maps en-US chrome/locale/en-US/zotero-maps/ 4 | skin zotero-maps default chrome/skin/default/zotero-maps/ 5 | 6 | overlay chrome://browser/content/browser.xul chrome://zotero-maps/content/overlay.xul 7 | -------------------------------------------------------------------------------- /chrome/skin/default/zotero-maps/theme/default/custom.css: -------------------------------------------------------------------------------- 1 | .olControlLoadingPanel { 2 | background-image:url(chrome://zotero-maps/skin/loading.gif); 3 | background-position:center; 4 | background-repeat:no-repeat; 5 | } 6 | .olControlAttribution { 7 | font-size: smaller; 8 | right: 5px; 9 | bottom: 5px; 10 | position: absolute; 11 | display: block; 12 | } 13 | 14 | .olFramedCloudPopupContent { 15 | padding: 5px; 16 | overflow: auto; 17 | } 18 | -------------------------------------------------------------------------------- /chrome/content/zotero-maps/include.js: -------------------------------------------------------------------------------- 1 | var Zotero = Components.classes["@zotero.org/Zotero;1"] 2 | .getService(Components.interfaces.nsISupports) 3 | .wrappedJSObject; 4 | 5 | // Only create main object once 6 | if (!Zotero.Maps) { 7 | const loader_m = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] 8 | .getService(Components.interfaces.mozIJSSubScriptLoader); 9 | /* need to load OpenLayers first in order to get .loadURL and .Format.JSON */ 10 | loader_m.loadSubScript("chrome://zotero-maps/skin/OpenLayers.js"); 11 | loader_m.loadSubScript("chrome://zotero-maps/content/setup.js"); 12 | } 13 | -------------------------------------------------------------------------------- /chrome/content/zotero-maps/ui.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Zotero Maps 4 | 6 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | -------------------------------------------------------------------------------- /chrome/content/zotero-maps/overlay.xul: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 |