"+ t('photomap', 'Add photos to the cloud. Photos containing data about the geographical location will be automatically pinned to the map.') + "
" + 138 | ""+ t('photomap', 'If photos already are in cloud, You can pin them to the map using command {command}', {"command" : "occ photoMap:rescanPhotos"}, undefined, {escape: false}) + "
"; 139 | this.showPopup(latlng, message); 140 | } 141 | 142 | showPopup(latlng, message) { 143 | L.popup() 144 | .setLatLng(latlng) 145 | .setContent(message) 146 | .openOn(this.map); 147 | } 148 | 149 | getZoomLevel() { 150 | return this.map.getZoom(); 151 | } 152 | 153 | getBounds() { 154 | var bounds = this.map.getBounds(); 155 | return [[bounds.getSouth(), bounds.getWest()],[bounds.getNorth(), bounds.getEast()]]; 156 | } 157 | 158 | } -------------------------------------------------------------------------------- /js_src/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * PhotoMap 5 | * 6 | * This file is licensed under the Affero General Public License version 3 or 7 | * later. See the COPYING file. 8 | * 9 | * @author Piotr Bator10 | 11 |