Skip to content

Commit

Permalink
No message
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsHolt committed Oct 31, 2023
1 parent 63ba431 commit bf30cc9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fcoo-maps",
"version": "1.31.15",
"version": "1.32.0",
"homepage": "https://github.com/fcoo/fcoo-maps",
"authors": [
"Niels Holt"
Expand Down
18 changes: 14 additions & 4 deletions dist/fcoo-maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -2038,6 +2038,10 @@ Methods to adjust and display latLng-values
icon: 'fa-copy',
text: {da:'Kopier til udklipsholder', en:'Copy to Clipboard'},
}],
footer: window.bsIsTouch ? null : {
icon: 'far fa-computer-mouse',
text: {da: 'Dobbelt-klik på format for at kopier', en: 'Double click on format to copy'}
},
show: false
};

Expand All @@ -2061,19 +2065,25 @@ Methods to adjust and display latLng-values
formatItems = [];

for (var formatId = window.latLngFormat.LATLNGFORMAT_FIRST; formatId <= window.latLngFormat.LATLNGFORMAT_LAST; formatId++){

window.latLngFormat.setTempFormat(formatId);
formatItems.push({ text: window.latLngFormat.options.text[formatId] });


var formatList = latLng.outputs();
$.each(formatList, function(index, format){
var id = 'format'+formatId+index;
latLngFormats[id] = format;
formatItems.push({id: id, text: format});
formatItems.push({
id: id,
text: format,
onDblClick: function(){
//Trigger copy to clipboard
clipboard.onClick( {currentTarget: $('#btn_copy_to_clipboard').get(0)} );
}
});
});
}


window.latLngFormat.setTempFormat(saveCurrentFormatId);

modalOptions.content.push({
Expand Down Expand Up @@ -6105,7 +6115,7 @@ Objects and methods to handle map-sync
if (zoomOffset == 0)
text = {da: 'Samme som hovedkort', en:'Same as main map'};
else
text = {da: zoomOffset+ ' x zoom ind', en: zoomOffset+ ' x zoom ind'};
text = {da: zoomOffset+ ' x zoom ind', en: zoomOffset+ ' x zoom in'};
zoomItems.push( {id: 'zoomOffset_'+zoomOffset, text: text} );
}
content.push({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fcoo-maps",
"version": "1.31.15",
"version": "1.32.0",
"homepage": "https://github.com/FCOO/fcoo-maps",
"author": "Niels Holt [email protected]",
"description": "package.json is only use for building the package. see bower.json for more info",
Expand Down

0 comments on commit bf30cc9

Please sign in to comment.